1. 程式人生 > >增加新模塊註意事項

增加新模塊註意事項

內容 nta err else void tool 註意事項 object 應用程序

/// <summary>
///
/// 應用程序的主入口點。
///
/// 增加容器控件定義
/// TableLayoutPanel tlp = new TableLayoutPanel();
/// bool is***Load = false;
/// PipeLength pipeLength;
/// 增加load中的實例化
/// pipeLength = new (PipeLength);
/// 增加點擊時的語句
///case ToolName.PipeLengthCal:
///UpdateUserRecord();
/// if (!isPipeLengthLoad)
/// {
/// scMain.Panel2.Controls.Add(tlpPipeLength);
/// pipeLength.tlpPipeLength = tlpPipeLength;
/// pipeLength.PipeLengthLoad();
/// isPipeLengthLoad = true;
/// }
/// else
/// {
/// scMain.Panel2.Controls.Add(tlpPipeLength);
/// }
/// break;
///
///
/// Form中
///
/// 應將構造函數中的InitializeComponent();註釋掉
/// 增加屬性public TableLayoutPanel tlp { get; set; }
/// //FormLoad前取消下行註釋
/// public void FormLoad()
/// //同時註釋掉下行
/// //private void FormLoad(object sender, EventArgs e)
/// //FormLoad中需要修改
/// //取消下行註釋
/// InitializeComponent();
///
///Form Designer.cs中
///
/// 註釋掉tlp的new的行
/// 註釋掉Form窗體部分的內容
/// </summary>

增加新模塊註意事項