コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            TabPress form = new TabPress();

            form.Show();
            this.Hide();
        }
コード例 #2
0
ファイル: TabPress.cs プロジェクト: jpjames13/CleaningApp
        public static void changeQTY(int two)
        {
            //TabPress.TBmaxShot = one;
            TabPress.TBshotcounter = two;

            TabPress form = new TabPress();

            form.Show();
        }
コード例 #3
0
        private void changeBTN_Click(object sender, EventArgs e)
        {
            try
            {
                int x;

                if ((Int32.TryParse(resetcounterboxTBX.Text, out x)) && TabPress.GBcounter == false && TabPress.TBcounter == true)
                {
                    //Form1.resetCounter(Convert.ToInt32(resetcounterboxTBX.Text) - 1);
                    //this.Hide();
                    //Form1.changeLabel(processTBX.Text, Convert.ToInt32(resetcounterboxTBX.Text));
                    TabPress.changeQTY(Convert.ToInt32(resetcounterboxTBX.Text));
                    this.Hide();
                }
                else if ((Int32.TryParse(resetcounterboxTBX.Text, out x)) && TabPress.GBcounter == true && TabPress.TBcounter == false)
                {
                    //Form1.resetCounter(Convert.ToInt32(resetcounterboxTBX.Text) - 1);
                    //this.Hide();
                    //Form1.changeLabel(processTBX.Text, Convert.ToInt32(resetcounterboxTBX.Text));
                    GB.changeQTY(Convert.ToInt32(counterTBX.Text), TabPress.GBshotcounter = Convert.ToInt32(resetcounterboxTBX.Text));

                    this.Hide();
                }
                else
                {
                    MessageBox.Show("Please enter number");
                }
                //you know why I commented this out? cause it overrides the change label method and count
                //Form1 form = new Form1();
                //form.Show();
                //this.Hide();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Program got bugs please feedback to IE JON");
            }
        }