Beispiel #1
0
 /// <summary> 窗体构造函数
 /// </summary>
 /// <param name="wa">工作区域对象实例</param>
 public frmSystemConfig(WorkArea wa)
 {
     InitializeComponent();
     _wa = wa;
     #region 基本设置
     txtWWith.Text       = _wa.Width.ToString();
     txtWHeight.Text     = _wa.Height.ToString();
     txtGWith.Text       = _wa.GridWidth.ToString();
     txtGHeight.Text     = _wa.GridHeight.ToString();
     lblWBC.BackColor    = _wa.BackColor;
     lblGLC.BackColor    = _wa.GridColor;
     ckbShowGrid.Checked = _wa.ShowGrid;
     #endregion
     #region 元素设置
     txtLnWidth.Text    = _wa.LineWidth.ToString();
     txtLgDiameter.Text = _wa.LightDiameter.ToString();
     #endregion
 }
Beispiel #2
0
        //static private string filename = System.Text.RegularExpressions.Regex.Replace(Application.ExecutablePath, "\\.exe$", ".cfg", System.Text.RegularExpressions.RegexOptions.IgnoreCase);

        #endregion

        #region 窗体事件
        /// <summary> 窗体构造函数
        /// </summary>
        public frmPicture()
        {
            _wa = new WorkArea();
            InitializeComponent();
        }