欢迎加我的QQ群:193522571,一起来讨论、交流!

增加新模块注意事项

  /// <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>

posted @ 2017-10-19 11:14  swtool  阅读(150)  评论(0编辑  收藏  举报
欢迎加我的QQ群:193522571,一起来讨论、交流!