示例#1
0
        private void button_back_Click(object sender, EventArgs e)
        {
            // חוזר אחורה וסוגר את הדף הנוכחי
            this.Hide();
            menu f3 = new menu(label2.Text);

            f3.ShowDialog();
            this.Close();
        }
示例#2
0
        private void dicasSobreMudançasDeHábitosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            menu newMDIChild = new menu();

            //Set the Parent Form of the Child window.
            newMDIChild.MdiParent = this;
            // Display the new form.
            newMDIChild.Show();
        }
示例#3
0
        private void button1_Click(object sender, EventArgs e)
        {
            Dbworker DbWorkers1 = new Dbworker();
            worker   Workers1   = new worker();
            worker   Workers2   = new worker();
            int      x          = int.Parse(textBox1.Text);

            if (DbWorkers1.Found(x) == false)
            {
                MessageBox.Show("לא קיים עובד בעל ת.ז זה");
            }
            else
            {
                Dbworker db = new Dbworker();
                string   s  = "select * from worker where id =" + textBox1.Text + "";
                int      r  = Convert.ToInt32(db.GetQuery(s).Tables[0].Rows[0]["rank"].ToString());

                //string s = "select * from item where Itemname = '" + comboBox2.Text + "'";

                //textBox3.Text = db.GetQuery(s).Tables[0].Rows[0]["itemId"].ToString();



                // Workers1.ID = int.Parse(textBox1.Text);
                //Workers1.Rank= int.Parse(textBox2.Text);



                if ((r != 2) && (r != 1))
                {
                    MessageBox.Show("עובד לא קיים במערכת");
                }


                //else if ((Workers1.Rank != 2) && (Workers1.Rank != 1))
                //   MessageBox.Show("עובד לא קיים במערכת");

                else if (r == 1)

                //else if (Workers1.Rank == 1)
                {
                    MessageBox.Show("התחברת בהצלחה");
                    menuworker i = new menuworker();
                    i.Show();
                }

                else
                {
                    MessageBox.Show("התחברת בהצלחה");
                    menu i = new menu();
                    i.Show();
                }
            }
        }
 private void button1_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("¿Desea regresar?", "Salir", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == System.Windows.Forms.DialogResult.Yes)
     {
         using (menu lanzar = new menu(this.usuario))
         {
             lanzar.StartPosition = FormStartPosition.CenterScreen;
             this.Hide();
             lanzar.ShowDialog();
             this.Close();
         }
     }
 }
示例#5
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     rectangleShape2.Width += 5;
     // progressBar1.Increment(1);
     if (rectangleShape2.Width >= 256)
     {
         this.Hide();
         timer1.Stop();
         menu log = new menu(label4.Text);
         log.ShowDialog();
         this.Close();
     }
 }