示例#1
0
        private void btn_newProject_Click(object sender, EventArgs e)
        {
            CompilerForm abrir_compiler = new CompilerForm();

            abrir_compiler.Show();
            this.Dispose();
        }
示例#2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     this.BackColor     = gunaColorTransition1.Value;
     this.lbl_load.Text = gunaColorTransition1.ProgessValue + "%";
     if (this.gunaColorTransition1.ProgessValue == 100)
     {
         timer1.Stop();
         this.Hide();
         CompilerForm compiler = new CompilerForm();
         compiler.Show();
     }
 }
 /// <summary>
 /// Функция, показывающая форму, если она закрыта, и закрывающая ее, если она открыта
 /// </summary>
 public void ChangeState()
 {
     if (_form == null)
     {
         _form = new CompilerForm(this);
         _form.Show();
         _form.SetCode(_code);
     }
     else
     {
         _form.Close();
     }
 }