⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 namespaceprop.cs

📁 UML设计相关的源码。作UML相关开发的不容错过。
💻 CS
字号:
/* ---------------------------------------------------------------------------------------------------
 *  
 *                          PocketUML v0.01.0016
 *  
 *        
 *    Written by Jie Tang.
 *    Bug report : jiet@msn.com
 *  
 *
 * Copyright 2002 James <jiet@msn.com>
 * All rights reserved.
 *
 * This source file(s) may be redistributed unmodified by any means
 * PROVIDING they are not sold for profit without the authors expressed
 * written consent, and providing that this notice and the authors name
 * and all copyright notices remain intact.
 *
 * Any use of the software in source or binary forms, with or without
 * modification, must include, in the user documentation ("About" box and
 * printed documentation) and internal comments to the code, notices to
 * the end user as follows:
 *
 * "Portions Copyright 2002 Tang Jie
 *
 * An email letting me know that you are using it would be nice as well.
 * That's not much to ask considering the amount of work that went into
 * this.
 *
 * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
 * EXPRESS OR IMPLIED. USE IT AT YOUT OWN RISK. THE AUTHOR ACCEPTS NO
 * LIABILITY FOR ANY DATA DAMAGE/LOSS THAT THIS PRODUCT MAY CAUSE.
 *
 */
//-----------------------------------------------------------------------------------------------------
//										Update Information.
//-----------------------------------------------------------------------------------------------------

///
/// PocketUML Namespace
/// Namespace specification dialog
/// 
/// PocketUML v0.1
/// Created by Jie Tang  04/10/2002.
///

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace PocketUML
{
	namespace DataUI
	{
		using PocketUML.Data;
		/// <summary>
		/// Summary description for NamespaceProp.
		/// </summary>
		public class NamespaceProp : System.Windows.Forms.Form
		{
			private System.Windows.Forms.GroupBox groupBox1;
			private System.Windows.Forms.Label label1;
			private System.Windows.Forms.Label label2;
			private System.Windows.Forms.TextBox namespaceName;
			private System.Windows.Forms.TextBox namespaceProperty;
			private System.Windows.Forms.Button OK;
			/// <summary>
			/// Required designer variable.
			/// </summary>
			private System.ComponentModel.Container components = null;

			public NamespaceProp()
			{
				//
				// Required for Windows Form Designer support
				//
				InitializeComponent();

				//
				// TODO: Add any constructor code after InitializeComponent call
				//
			
			}

			/// <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.groupBox1 = new System.Windows.Forms.GroupBox();
				this.namespaceProperty = new System.Windows.Forms.TextBox();
				this.label2 = new System.Windows.Forms.Label();
				this.namespaceName = new System.Windows.Forms.TextBox();
				this.label1 = new System.Windows.Forms.Label();
				this.OK = new System.Windows.Forms.Button();
				this.groupBox1.SuspendLayout();
				this.SuspendLayout();
				// 
				// groupBox1
				// 
				this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
																						this.namespaceProperty,
																						this.label2,
																						this.namespaceName,
																						this.label1});
				this.groupBox1.Location = new System.Drawing.Point(8, 16);
				this.groupBox1.Name = "groupBox1";
				this.groupBox1.Size = new System.Drawing.Size(288, 272);
				this.groupBox1.TabIndex = 0;
				this.groupBox1.TabStop = false;
				this.groupBox1.Text = "General";
				// 
				// namespaceProperty
				// 
				this.namespaceProperty.AutoSize = false;
				this.namespaceProperty.Location = new System.Drawing.Point(8, 96);
				this.namespaceProperty.Name = "namespaceProperty";
				this.namespaceProperty.ReadOnly = true;
				this.namespaceProperty.Size = new System.Drawing.Size(272, 168);
				this.namespaceProperty.TabIndex = 3;
				this.namespaceProperty.Text = "Doc";
				// 
				// label2
				// 
				this.label2.Location = new System.Drawing.Point(8, 72);
				this.label2.Name = "label2";
				this.label2.Size = new System.Drawing.Size(100, 16);
				this.label2.TabIndex = 2;
				this.label2.Text = "Documentation:";
				// 
				// namespaceName
				// 
				this.namespaceName.Location = new System.Drawing.Point(56, 32);
				this.namespaceName.Name = "namespaceName";
				this.namespaceName.ReadOnly = true;
				this.namespaceName.Size = new System.Drawing.Size(224, 20);
				this.namespaceName.TabIndex = 1;
				this.namespaceName.Text = "Name";
				// 
				// label1
				// 
				this.label1.Location = new System.Drawing.Point(8, 32);
				this.label1.Name = "label1";
				this.label1.Size = new System.Drawing.Size(40, 16);
				this.label1.TabIndex = 0;
				this.label1.Text = "Name:";
				// 
				// OK
				// 
				this.OK.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
				this.OK.Location = new System.Drawing.Point(232, 296);
				this.OK.Name = "OK";
				this.OK.Size = new System.Drawing.Size(64, 24);
				this.OK.TabIndex = 1;
				this.OK.Text = "OK";
				this.OK.Click += new System.EventHandler(this.OK_Click);
				// 
				// NamespaceProp
				// 
				this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
				this.ClientSize = new System.Drawing.Size(306, 326);
				this.Controls.AddRange(new System.Windows.Forms.Control[] {
																			  this.OK,
																			  this.groupBox1});
				this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
				this.Name = "NamespaceProp";
				this.Text = "Namespace Property";
				this.Load += new System.EventHandler(this.NamespaceProp_Load);
				this.groupBox1.ResumeLayout(false);
				this.ResumeLayout(false);

			}
		#endregion

			public ElementData elementData = null;

			private void NamespaceProp_Load(object sender, System.EventArgs e)
			{
				if( elementData != null )
				{
					this.namespaceName.Text     = elementData.Name;
					this.namespaceProperty.Text = elementData.DocComment;
				}
			}

			private void OK_Click(object sender, System.EventArgs e)
			{
				this.Close();
			}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -