Ejemplo n.º 1
0
 private void button3_Click(object sender, EventArgs e)
 {
     button1.BackColor = Color.FromArgb(255, 255, 193, 7);
     button3.BackColor = Color.FromArgb(255, 255, 193, 7);
     if (targetPosition < stmp_list.Count)
     {
         currentPosition = 0;
         targetPosition++;
         draw = true;
         Ghannt_base.Paint += new PaintEventHandler(Ghannt_base_Paint);
         Ghannt_base.Refresh();
     }
     else
     {
         this.main.listBox1.Items.Insert(0, "프로세스의 끝입니다");
     }
     if (targetPosition == stmp_list.Count)
     {
         button3.BackColor = Color.Gray;
     }
     else
     {
         button3.BackColor = Color.FromArgb(255, 255, 193, 7);
     }
 }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     button3.BackColor = Color.FromArgb(255, 255, 193, 7);
     button1.BackColor = Color.FromArgb(255, 255, 193, 7);
     if (targetPosition > 0)
     {
         currentPosition = 0;
         targetPosition--;
         draw = true;
         if (!is_run)
         {
             Ghannt_base.Paint += new PaintEventHandler(Ghannt_base_Paint);
         }
         Ghannt_base.Refresh();
     }
     else
     {
         this.main.listBox1.Items.Insert(0, "프로세스의 처음입니다");
     }
     if (targetPosition == 0)
     {
         button1.BackColor = Color.Gray;
     }
     else
     {
         button1.BackColor = Color.FromArgb(255, 255, 193, 7);
     }
 }
Ejemplo n.º 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            targetPosition     = -1;
            currentPosition    = 0;
            draw               = true;
            Ghannt_base.Paint += new PaintEventHandler(Ghannt_base_Paint);
            Ghannt_base.Refresh();

            button1.BackColor = Color.FromArgb(255, 255, 193, 7);
            button3.BackColor = Color.Gray;
        }