/trunk/NReports.RdlDesign/DialogAbout.cs
C# | 248 lines | 169 code | 9 blank | 70 comment | 3 complexity | 8154b20d8aa8d3a82f078c26c0c65686 MD5 | raw file
Possible License(s): Apache-2.0
- /* ====================================================================
- Copyright (C) 2004-2008 fyiReporting Software, LLC
- Copyright (C) 2010-2011 Krzysztof Marecki
-
- This file is part of the NReports project.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
-
- For additional information,email dotnetreports@gmail.com
- */
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- using System.Reflection;
-
- namespace NReports.RdlDesign
- {
- /// <summary>
- /// Summary description for DialogAbout.
- /// </summary>
- public class DialogAbout : System.Windows.Forms.Form
- {
- private System.Windows.Forms.Button bOK;
- private System.Windows.Forms.TextBox tbLicense;
- private System.Windows.Forms.LinkLabel linkLabel3;
- private System.Windows.Forms.LinkLabel linkLabel4;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.PictureBox pictureBox2;
- private System.Windows.Forms.Label lVersion;
- private System.Windows.Forms.Label lVMVersion;
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.Container components = null;
-
- public DialogAbout()
- {
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
-
- tbLicense.Text = @"RDL Designer creates reports defined using the Report Definition Language Specification.
- Copyright (C) 2004-2008 fyiReporting Software, LLC
- Copyright (C) 2010-2011 Krzysztof Marecki
-
- Licensed under the Apache License, Version 2.0 (the ""License"");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an ""AS IS"" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- For additional information,email dotnetreports@gmail.com";
-
- lVersion.Text = "Version " + Assembly.GetExecutingAssembly().GetName().Version.ToString();
- this.lVMVersion.Text = ".NET " + Environment.Version.ToString();
- return;
- }
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if(components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
-
- #region Windows Form Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.bOK = new System.Windows.Forms.Button();
- this.tbLicense = new System.Windows.Forms.TextBox();
- this.linkLabel3 = new System.Windows.Forms.LinkLabel();
- this.linkLabel4 = new System.Windows.Forms.LinkLabel();
- this.label5 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.lVersion = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.pictureBox2 = new System.Windows.Forms.PictureBox();
- this.lVMVersion = new System.Windows.Forms.Label();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
- this.SuspendLayout();
- //
- // bOK
- //
- this.bOK.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.bOK.Location = new System.Drawing.Point(200, 272);
- this.bOK.Name = "bOK";
- this.bOK.Size = new System.Drawing.Size(75, 23);
- this.bOK.TabIndex = 0;
- this.bOK.Text = "OK";
- //
- // tbLicense
- //
- this.tbLicense.Location = new System.Drawing.Point(8, 120);
- this.tbLicense.Multiline = true;
- this.tbLicense.Name = "tbLicense";
- this.tbLicense.ReadOnly = true;
- this.tbLicense.ScrollBars = System.Windows.Forms.ScrollBars.Both;
- this.tbLicense.Size = new System.Drawing.Size(448, 136);
- this.tbLicense.TabIndex = 9;
- //
- // linkLabel3
- //
- this.linkLabel3.Location = new System.Drawing.Point(280, 88);
- this.linkLabel3.Name = "linkLabel3";
- this.linkLabel3.Size = new System.Drawing.Size(152, 16);
- this.linkLabel3.TabIndex = 15;
- this.linkLabel3.TabStop = true;
- this.linkLabel3.Tag = "mailto:comments@fyireporting.com";
- this.linkLabel3.Text = "dotnetreports@gmail.com";
- this.linkLabel3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnk_LinkClicked);
- //
- // linkLabel4
- //
- this.linkLabel4.Location = new System.Drawing.Point(72, 88);
- this.linkLabel4.Name = "linkLabel4";
- this.linkLabel4.Size = new System.Drawing.Size(148, 16);
- this.linkLabel4.TabIndex = 14;
- this.linkLabel4.TabStop = true;
- this.linkLabel4.Tag = "http://nreports.codeplex.com";
- this.linkLabel4.Text = "http://nreports.codeplex.com";
- this.linkLabel4.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnk_LinkClicked);
- //
- // label5
- //
- this.label5.Location = new System.Drawing.Point(240, 88);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(40, 23);
- this.label5.TabIndex = 13;
- this.label5.Text = "E-mail:";
- //
- // label6
- //
- this.label6.Location = new System.Drawing.Point(16, 88);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(56, 23);
- this.label6.TabIndex = 12;
- this.label6.Text = "Website:";
- //
- // lVersion
- //
- this.lVersion.Location = new System.Drawing.Point(264, 40);
- this.lVersion.Name = "lVersion";
- this.lVersion.Size = new System.Drawing.Size(136, 16);
- this.lVersion.TabIndex = 11;
- this.lVersion.Text = "Version x.x.x";
- this.lVersion.TextAlign = System.Drawing.ContentAlignment.TopCenter;
- //
- // label8
- //
- this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label8.Location = new System.Drawing.Point(240, 16);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(184, 24);
- this.label8.TabIndex = 10;
- this.label8.Text = "NReports Designer";
- //
- // pictureBox2
- //
- this.pictureBox2.Location = new System.Drawing.Point(8, 8);
- this.pictureBox2.Name = "pictureBox2";
- this.pictureBox2.Size = new System.Drawing.Size(212, 72);
- this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
- this.pictureBox2.TabIndex = 16;
- this.pictureBox2.TabStop = false;
- //
- // lVMVersion
- //
- this.lVMVersion.Location = new System.Drawing.Point(256, 64);
- this.lVMVersion.Name = "lVMVersion";
- this.lVMVersion.Size = new System.Drawing.Size(144, 16);
- this.lVMVersion.TabIndex = 17;
- this.lVMVersion.Text = ".NET x.x.xxxx.xxxx";
- this.lVMVersion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // DialogAbout
- //
- this.AcceptButton = this.bOK;
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.CancelButton = this.bOK;
- this.ClientSize = new System.Drawing.Size(466, 304);
- this.Controls.Add(this.lVMVersion);
- this.Controls.Add(this.linkLabel3);
- this.Controls.Add(this.linkLabel4);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.lVersion);
- this.Controls.Add(this.label8);
- this.Controls.Add(this.pictureBox2);
- this.Controls.Add(this.tbLicense);
- this.Controls.Add(this.bOK);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "DialogAbout";
- this.ShowInTaskbar = false;
- this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
- this.Text = "About";
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
- #endregion
-
- private void lnk_LinkClicked(object sender, LinkLabelLinkClickedEventArgs ea)
- {
- LinkLabel lnk = (LinkLabel) sender;
- lnk.Links[lnk.Links.IndexOf(ea.Link)].Visited = true;
- System.Diagnostics.Process.Start(lnk.Tag.ToString());
- }
- }
-
- }