Ejemplo n.º 1
0
 private void Delete_Click(object sender, EventArgs e)
 {
     Base.Rows.Clear();
     Base.Refresh();
     AT.ReadOnly = false;
     Process.Clear();
     AT.Clear();
     BT.Clear();
     WT.Clear();
     TT.Clear();
     panel2.BackColor  = Color.Transparent;
     panel3.BackColor  = Color.Transparent;
     panel4.BackColor  = Color.Transparent;
     panel5.BackColor  = Color.Transparent;
     panel6.BackColor  = Color.Transparent;
     panel7.BackColor  = Color.Transparent;
     label21.ForeColor = Color.WhiteSmoke;
     s1.ForeColor      = Color.WhiteSmoke;
     s2.ForeColor      = Color.WhiteSmoke;
     s3.ForeColor      = Color.WhiteSmoke;
     s4.ForeColor      = Color.WhiteSmoke;
     s5.ForeColor      = Color.WhiteSmoke;
     s6.ForeColor      = Color.WhiteSmoke;
     bs1.ForeColor     = Color.WhiteSmoke;
     bs2.ForeColor     = Color.WhiteSmoke;
     bs3.ForeColor     = Color.WhiteSmoke;
     bs4.ForeColor     = Color.WhiteSmoke;
     bs5.ForeColor     = Color.WhiteSmoke;
     p1.ForeColor      = Color.WhiteSmoke;
     p2.ForeColor      = Color.WhiteSmoke;
     p3.ForeColor      = Color.WhiteSmoke;
     p4.ForeColor      = Color.WhiteSmoke;
     p5.ForeColor      = Color.WhiteSmoke;
 }
Ejemplo n.º 2
0
 private void Delete_Click(object sender, EventArgs e)
 {
     Base.Rows.Clear();
     Base.Refresh();
     AT.ReadOnly = false;
     Process.Clear();
     AT.Clear();
     BT.Clear();
     WT.Clear();
     TT.Clear();
 }
Ejemplo n.º 3
0
 private void Sing_CheckedChanged(object sender, EventArgs e)
 {
     Base.Rows.Clear();
     Base.Refresh();
     AT.ReadOnly = false;
     Process.Clear();
     AT.Clear();
     BT.Clear();
     WT.Clear();
     TT.Clear();
     panel2.BackColor     = Color.Transparent;
     panel3.BackColor     = Color.Transparent;
     panel4.BackColor     = Color.Transparent;
     panel5.BackColor     = Color.Transparent;
     panel6.BackColor     = Color.Transparent;
     panel7.BackColor     = Color.Transparent;
     label21.ForeColor    = Color.WhiteSmoke;
     s1.ForeColor         = Color.WhiteSmoke;
     s2.ForeColor         = Color.WhiteSmoke;
     s3.ForeColor         = Color.WhiteSmoke;
     s4.ForeColor         = Color.WhiteSmoke;
     s5.ForeColor         = Color.WhiteSmoke;
     s6.ForeColor         = Color.WhiteSmoke;
     bs1.ForeColor        = Color.WhiteSmoke;
     bs2.ForeColor        = Color.WhiteSmoke;
     bs3.ForeColor        = Color.WhiteSmoke;
     bs4.ForeColor        = Color.WhiteSmoke;
     bs5.ForeColor        = Color.WhiteSmoke;
     p1.ForeColor         = Color.WhiteSmoke;
     p2.ForeColor         = Color.WhiteSmoke;
     p3.ForeColor         = Color.WhiteSmoke;
     p4.ForeColor         = Color.WhiteSmoke;
     p5.ForeColor         = Color.WhiteSmoke;
     progressBar1.Value   = 0;
     progressBar2.Value   = 0;
     progressBar3.Value   = 0;
     progressBar4.Value   = 0;
     progressBar5.Value   = 0;
     progressBar1.Visible = false;
     progressBar2.Visible = false;
     progressBar3.Visible = false;
     progressBar4.Visible = false;
     progressBar5.Visible = false;
 }
Ejemplo n.º 4
0
        private void Add_Click(object sender, EventArgs e)
        {
            int rows = Base.Rows.Count;

            if (Process.TextLength == 0 || BT.TextLength == 0)
            {
                MessageBox.Show("Fill up the textbox!", "Error");
            }
            else
            {
                if (Sing.Checked)
                {
                    if (rows == 1)
                    {
                        this.Base.Rows.Add(Process.Text, AT.Text, BT.Text);
                        this.label20.Text = Process.Text;
                        this.label19.Text = AT.Text;
                        this.label18.Text = BT.Text;
                    }
                    else if (rows == 2)
                    {
                        this.Base.Rows.Add(Process.Text, AT.Text, BT.Text);
                        this.label17.Text = Process.Text;
                        this.label6.Text  = label19.Text;
                        this.label7.Text  = BT.Text;
                    }
                    else if (rows == 3)
                    {
                        this.Base.Rows.Add(Process.Text, AT.Text, BT.Text);
                        this.label8.Text  = Process.Text;
                        this.label9.Text  = label19.Text;
                        this.label10.Text = BT.Text;
                    }
                    else if (rows == 4)
                    {
                        this.Base.Rows.Add(Process.Text, AT.Text, BT.Text);
                        this.label11.Text = Process.Text;
                        this.label12.Text = label19.Text;
                        this.label13.Text = BT.Text;
                    }
                    else if (rows == 5)
                    {
                        this.Base.Rows.Add(Process.Text, AT.Text, BT.Text);
                        this.label14.Text = Process.Text;
                        this.label15.Text = label19.Text;
                        this.label16.Text = BT.Text;
                    }
                    else
                    {
                        MessageBox.Show("Only minimum of 3 rows and maximum of 5 rows are accepted!", "Error");
                    }
                }
                else if (Multi.Checked)
                {
                    if (rows == 1)
                    {
                        this.Base.Rows.Add(Process.Text, AT.Text, BT.Text);
                        this.label20.Text = Process.Text;
                        this.label19.Text = AT.Text;
                        this.label18.Text = BT.Text;
                    }
                    else if (rows == 2)
                    {
                        this.Base.Rows.Add(Process.Text, AT.Text, BT.Text);
                        this.label17.Text = Process.Text;
                        this.label6.Text  = AT.Text;
                        this.label7.Text  = BT.Text;
                    }
                    else if (rows == 3)
                    {
                        this.Base.Rows.Add(Process.Text, AT.Text, BT.Text);
                        this.label8.Text  = Process.Text;
                        this.label9.Text  = AT.Text;
                        this.label10.Text = BT.Text;
                    }
                    else if (rows == 4)
                    {
                        this.Base.Rows.Add(Process.Text, AT.Text, BT.Text);
                        this.label11.Text = Process.Text;
                        this.label12.Text = AT.Text;
                        this.label13.Text = BT.Text;
                    }
                    else if (rows == 5)
                    {
                        this.Base.Rows.Add(Process.Text, AT.Text, BT.Text);
                        this.label14.Text = Process.Text;
                        this.label15.Text = AT.Text;
                        this.label16.Text = BT.Text;
                    }
                    else
                    {
                        MessageBox.Show("Only minimum of 3 rows and maximum of 5 rows are accepted!", "Error");
                    }
                }
            }
            Process.Clear();
            AT.Clear();
            BT.Clear();
        }