private void SettingEnvChanged2() { if (this.ShowModalMessage("C504", null, null) == DialogResult.No) { this.rdbUseShareChange(); } else if (!this.FormClosing_Check()) { this.rdbUseShareChange(); } else if (!this.TabPage_Save()) { this.ShowModelessMessage("E581", null, null); this.rdbUseShareChange(); } else { if (this.rdbUseShare.Checked) { this.DivType = SettingDivType.AllUsers; } else { this.DivType = SettingDivType.User; } this.DlgRes_No(); } }
private void OptionDialog_Load(object sender, EventArgs e) { if (!this.isDesigning) { systemEnvironment = SystemEnvironment.CreateInstance(); if (systemEnvironment.TerminalInfo.UserKind == 2) { this.IsBank = true; } if (systemEnvironment.TerminalInfo.UserKind == 4) { this.Protocol = ProtocolType.netNACCS; this.tbcRoot.TabPages.Remove(this.tbpMsgCls); this.tbcRoot.TabPages.Remove(this.tbpReceiveInform); this.tbcRoot.TabPages.Remove(this.tbpUserKey); } else { this.Protocol = systemEnvironment.TerminalInfo.Protocol; this.tbcRoot.TabPages.Remove(this.tbpHelp); } user = User.CreateInstance(); this.DivType = user.Application.SettingsDiv; this.Msdg = new MessageDialog(); this.TabPage_Load(); if (this.defaultTab != null) { this.tbcRoot.SelectTab(this.defaultTab); } } }
private void SettingEnvChanged() { DialogResult result = this.ShowModalMessage("C501", null, null); if (result == DialogResult.Cancel) { this.rdbUseShareChange(); } else if (!this.FormClosing_Check()) { this.rdbUseShareChange(); } else if (!this.TabPage_Save()) { this.ShowModelessMessage("E545", null, null); this.rdbUseShareChange(); } else { if (this.rdbUseShare.Checked) { this.DivType = SettingDivType.AllUsers; } else { this.DivType = SettingDivType.User; } if (result == DialogResult.Yes) { this.DlgRes_Yes(); } else { this.DlgRes_No(); } } }
private void LoadTerm() { this.txbTermLogicalName.Text = userEnvironment.TerminalInfo.TermLogicalName; this.txbTermLogicalName.Enabled = !this.IsLogOn; if (this.Protocol == ProtocolType.Mail) { this.lblTermAccessKey.Visible = false; this.txbTermAccessKey.Visible = false; } else { this.txbTermAccessKey.Text = userEnvironment.TerminalInfo.TermAccessKey; this.txbTermAccessKey.Enabled = !this.IsLogOn; } this.txbTermType.Text = systemEnvironment.TerminalInfo.Protocol.ToString(); this.gpbOptionShare.Enabled = !this.IsLogOn; if (this.DivType == SettingDivType.User) { this.rdbNoUseShare.Checked = true; this.rdbUseShare.Checked = false; this.DivType = SettingDivType.User; } else { this.rdbNoUseShare.Checked = false; this.rdbUseShare.Checked = true; this.DivType = SettingDivType.AllUsers; } this.nudSaveTerm.Value = userEnvironment.TerminalInfo.SaveTerm; this.nudDiskWarning.Value = userEnvironment.TerminalInfo.DiskWarning; UserPathNames names = UserPathNames.CreateInstance(); this.ckbCommonFolder.Checked = names.CommonPath.Specify; this.txbCommonFolder.Text = names.CommonPath.Folder; }