Ejemplo n.º 1
0
 private void cancelToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Properties.Settings.Default.dev_qtx_gui_en == "1")
     {
         Form qtx = new Main();
         qtx.Show();
         tmr_int.Stop();
         Hide();
     }
     else
     {
         Form mn = new dev_gui();
         mn.Show();
         tmr_int.Stop();
         Hide();
     }
 }
Ejemplo n.º 2
0
 private void btn_agree_Click(object sender, EventArgs e)
 {
     if (Properties.Settings.Default.dev_qtx_gui_en == "1")
     {
         Form fm = new Main();
         fm.Show();
         this.Hide();
     }
     else
     {
         Form fm = new dev_gui();
         fm.Show();
         this.Hide();
     }
     Properties.Settings.Default.dev_agree = "1";
     Properties.Settings.Default.Save();
 }
Ejemplo n.º 3
0
 private void tmr_int_Tick(object sender, EventArgs e)
 {
     prg_prog.Value += 1;
     if (prg_prog.Value == 100)
     {
         if (Properties.Settings.Default.dev_def_prof_st_java == "1")
         {
             File.WriteAllText(cd + "\\profile.txt", Properties.Settings.Default.dev_def_prof);
             Process jre = new Process();
             jre.StartInfo.FileName    = cd + "\\start_mc_jre.bat";
             jre.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
             jre.Start();
             jre.WaitForExit();
         }
         else
         {
             File.WriteAllText(cd + "\\profile.txt", Properties.Settings.Default.dev_def_prof);
             Process sys = new Process();
             sys.StartInfo.FileName    = cd + "\\start_mc_sys.bat";
             sys.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
             sys.Start();
             sys.WaitForExit();
         }
         tmr_int.Stop();
         if (Properties.Settings.Default.dev_runbck == "1")
         {
             if (Properties.Settings.Default.dev_runbck_min == "1")
             {
                 if (Properties.Settings.Default.dev_qtx_gui_en == "1")
                 {
                     Form qtx = new Main();
                     qtx.Show();
                     qtx.WindowState = FormWindowState.Minimized;
                     tmr_int.Stop();
                     Hide();
                 }
                 else
                 {
                     Form mn = new dev_gui();
                     mn.Show();
                     mn.WindowState = FormWindowState.Minimized;
                     tmr_int.Stop();
                     Hide();
                 }
             }
             else
             {
                 if (Properties.Settings.Default.dev_qtx_gui_en == "1")
                 {
                     Form qtx = new Main();
                     qtx.Show();
                     tmr_int.Stop();
                     Hide();
                 }
                 else
                 {
                     Form mn = new dev_gui();
                     mn.Show();
                     tmr_int.Stop();
                     Hide();
                 }
             }
         }
         else
         {
             Application.Exit();
         }
     }
 }
Ejemplo n.º 4
0
        private void pnl_logo_DoubleClick(object sender, EventArgs e)
        {
            Form dg = new dev_gui();

            dg.Show();
        }