private void UIToConfig() { MFlexHelper.Instance.MachineName = this.tbMachineName.Text; MFlexHelper.Instance.LineNo = this.tbMachineLine.Text; MFlexHelper.Instance.Site = this.tbMachineSite.Text; MFlexHelper.Instance.OperName = this.tbOperatorName.Text; MFlexHelper.Instance.WorkArea = this.tbMachineSide.Text; MFlexHelper.Instance.EnableMES = this.cbEnable.Checked; MFlexHelper.Instance.Mac = this.tbMac.Text; MFlexHelper.Instance.CodeFunc = this.cbCodeList.Text; MFlexHelper.Instance.ProgramName = this.tbProgramName.Text; MFlexHelper.Save(); }
private void ConfigToUI() { MFlexHelper.Load(); this.tbMachineName.Text = MFlexHelper.Instance.MachineName; this.tbMachineLine.Text = MFlexHelper.Instance.LineNo; this.tbMachineSite.Text = MFlexHelper.Instance.Site; this.tbOperatorName.Text = MFlexHelper.Instance.OperName; this.tbMachineSide.Text = MFlexHelper.Instance.WorkArea; this.cbEnable.Checked = MFlexHelper.Instance.EnableMES; this.cbCodeList.Text = MFlexHelper.Instance.CodeFunc; this.tbMac.Text = MFlexHelper.Instance.Mac; this.tbProgramName.Text = MFlexHelper.Instance.ProgramName; }