private void tsbSet_Click(object sender, EventArgs e) { fm = this; frmSetting fs = new frmSetting(); fs.ShowDialog(); }
public static void Init(frmMain main) { if (INI == null) { var parser = new FileIniDataParser(); INI = parser.ReadFile("Config.ini"); } Servers = new Dictionary <string, ServerInfo>(); var items = INI["SETTING"]["SERVER"].Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries); foreach (var item in items) { var server = ServerInfo.Create(item.Split('|')); if (server == null || Servers.ContainsKey(server.Key)) { continue; } Servers.Add(server.Key, server); } Monitors = new Dictionary <string, Monitor>(); Main = main; StopNotify = new frmSetting(); }
private void vatDiscountToolStripMenuItem_Click(object sender, EventArgs e) { if (setting.IsDisposed) { setting = new frmSetting(); } setting.Show(); setting.BringToFront(); }
private void btnSetting_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (fr12 == null) { fr12 = new frmSetting(); fr12.MdiParent = this; fr12.Show(); } }
private void button2_Click(object sender, EventArgs e) { string tempStr = iCrype.CryptString(iniControl.IniReadValue("System", "CRMPassword")); if (textBox1.Text == tempStr) { var iSetting = new frmSetting(); iSetting.ShowDialog(); Show(); } }
private void buttonHocSinh_Click(object sender, EventArgs e) { if (m_HocSinh == null || m_HocSinh.IsDisposed) { m_HocSinh = new frmSetting(); m_HocSinh.MdiParent = frmMain.ActiveForm; m_HocSinh.Show(); } else m_HocSinh.Activate(); }
public static void Init() { //LogForm = new frmLog(); if (INI == null) { var parser = new FileIniDataParser(); INI = parser.ReadFile(CONFIGFILE); } _InitPATS(); LogForm = new frmLog(); SettingForm = new frmSetting(); OrderSettingForm = new frmOrderSetting(); OrderRPTForm = new frmOrderReport(); DealRPTForm = new frmDealReport(); CancelRPTForm = new frmCancelReport(); ErrRPTForm = new frmErrReport(); SummaryForm = new frmSummary(); }
/// <summary> /// 打开设置界面 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSetting_Click(object sender, EventArgs e) { try { frmSetting setting = new frmSetting(); if (setting.ShowDialog() == DialogResult.Yes) { server.StopServer(); server.Setting.InitialData(); StartServer(); qrcodeControl.SetServerInfo(this.txtNetAddress.Text, server.Setting.TcpServerPort, server.Setting.HttpServerPort); } } catch (Exception ex) { MessageBox.Show(ex.Message); Application.Exit(); } }
private void 系统设置ToolStripMenuItem_Click(object sender, EventArgs e) { var iCustem = new frmSetting { TopLevel = false, Dock = DockStyle.Fill, Parent = panelFunctiron }; /* * iCustem.MysqlAccount = MysqlAccount; * iCustem.MysqlDatabase = MysqlDatabase; * iCustem.MysqlPassword = MysqlPassword; * iCustem.MysqlURL = MysqlURL; * iCustem.FTPAccount = FTPAccount; * iCustem.FTPPassword = FTPPassword; * iCustem.FTPURL = FTPURL; * iCustem.PassCMS = PassCMS; * iCustem.PassCRM = PassCRM; * iCustem.PassTool = PassTool; */ iCustem.Show(); iCustem.BringToFront(); panelFunctiron.BringToFront(); //ReadSetting(); }
/// <summary> /// 工具菜单单击事件处理 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdTool_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (e.Item.Tag != null) { Cursor currentCursor = Cursor.Current; Cursor.Current = Cursors.WaitCursor; //退出按钮 if (e.Link.Item.Tag.ToString() == "Exit") { //common._its_accessdb = null; if (XtraMsgBox.Show("[" + this.Text + "]?", this.Text, MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.Cancel) return; this.Close(); return; } //安装按钮处理 if (e.Link.Item.Tag.ToString() == "frmSetup") { frmSetting frmSetup = new frmSetting(); frmSetup.ShowDialog(); frmSetup = null; return; } //关于 if (e.Link.Item.Tag.ToString() == "frmAbout") { return; } //帮助文档 if (e.Link.Item.Tag.ToString().IndexOf("help") >= 0) { try { System.Diagnostics.Process process = new System.Diagnostics.Process(); process.StartInfo.FileName = Common.GetSolutionPath(Application.StartupPath) + e.Link.Item.Tag.ToString() + ".pdf"; process.StartInfo.Verb = "Open"; process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal; process.Start(); return; } catch (Exception ex) { XtraMsgBox.Show(ex.ToString(), "", MessageBoxButtons.OK, MessageBoxIcon.Error); } } if (!CheckExistsForm(e.Item.Tag.ToString().ToString())) { ShowForm(e.Link.Item.Tag.ToString()); } Cursor.Current = currentCursor; } }
private void toolStripMenuItem46_Click(object sender, EventArgs e) { if (m_HocSinh == null || m_HocSinh.IsDisposed) { m_HocSinh = new frmSetting(); m_HocSinh.MdiParent = frmMain.ActiveForm; m_HocSinh.MaximizeBox = false; m_HocSinh.Show(); } else m_HocSinh.Activate(); }
private void toolStripButton1_Click(object sender, EventArgs e) { frmSetting formlog1 = new frmSetting(); formlog1.Show(); }
private void tsSetting_Click(object sender, EventArgs e) { frmSetting setting = new frmSetting(); setting.ShowDialog(); }
private void toolStripMenuItem63_Click(object sender, EventArgs e) { if (m_Setting == null || m_Setting.IsDisposed) { m_Setting = new frmSetting(); m_Setting.MdiParent = frmSetting.ActiveForm; m_Setting.Show(); } else m_Setting.Activate(); }
private void tsbSet_Click(object sender, EventArgs e) { frmSetting f = new frmSetting(); f.Show(); }
private void buttonItem4_Click(object sender, EventArgs e) { fm = this; frmSetting fs = new frmSetting(); fs.ShowDialog(); }
private void btnSetting_Click(object sender, EventArgs e) { frmSetting setting = new frmSetting(); setting.Show(); }