private void ShowConfigureFrom_Click(object sender, EventArgs e) { if ((_frmConfigure == null) || (!_frmConfigure.Visible)) { _frmConfigure = new frmConfigure(); var result = _frmConfigure.ShowDialog(); if (result == DialogResult.OK) { _clientInfor = RegManager.LoadConfig(); } } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ScriptManager.Instance.InitScripts(); frmConfigure configureForm = new frmConfigure(); if (configureForm.ShowDialog() == DialogResult.OK) { int counter = 0; while (counter < 100) { counter++; System.Threading.Thread.Sleep(10); } frmRenderPanel mainWindow = new frmRenderPanel(configureForm.Config); Application.Run(mainWindow); } }
private void btnConfig_Click(object sender, EventArgs e) { frmConfigure frm = new frmConfigure(); frm.ShowDialog(); }