Exemplo n.º 1
0
 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();
         }
     }
 }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
        private void btnConfig_Click(object sender, EventArgs e)
        {
            frmConfigure frm = new frmConfigure();

            frm.ShowDialog();
        }