示例#1
0
 private void button4_Click(object sender, EventArgs e)
 {
     if (fromWhere.Equals("bart"))
     {
         BarTable otherform = new BarTable();
         otherform.Show();
         this.Close();
     }
     else if (fromWhere.Equals("bari"))
     {
         BarInteraction otherform2 = new BarInteraction();
         otherform2.Show();
         this.Close();
     }
     else if (fromWhere.Equals("user"))
     {
         MessageBox.Show("Δεν πραγματοποιήθηκε κράτηση στο  μπαρ!");
         File.WriteAllText(Application.StartupPath + "/barres.txt", "no");
         this.Close();
     }
     else
     {
         MessageBox.Show("Δεν πραγματοποιήθηκε κράτηση στο  μπαρ!");
         File.WriteAllText(Application.StartupPath + "/barres.txt", "no");
         ConfirmAsVisitor c = new ConfirmAsVisitor();
         c.Show();
         this.Close();
     }
 }
示例#2
0
        private void pictureBox2_Click_1(object sender, EventArgs e)
        {
            BarInteraction form = new BarInteraction();

            form.Show();
            this.Close();
        }
示例#3
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (fromWhere.Equals("bart"))
     {
         BarTable otherform = new BarTable();
         otherform.Show();
         otherform.label1.Text     = "Το σύνολο σας είναι " + Price.ToString() + " ευρώ. ";
         otherform.button3.Visible = true;
         otherform.button7.Visible = false;
         this.Close();
     }
     else if (fromWhere.Equals("bari"))
     {
         BarInteraction otherform2 = new BarInteraction();
         otherform2.Show();
         otherform2.label1.Text     = "Το σύνολο σας είναι " + Price.ToString() + " ευρώ.";
         otherform2.button1.Visible = true;
         otherform2.button2.Visible = true;
         otherform2.label2.Visible  = true;
         otherform2.button4.Visible = false;
         otherform2.button6.Visible = false;
         this.Close();
     }
     else if (fromWhere.Equals("user"))
     {
         MessageBox.Show("Επιτυχής καταχώρηση κράτησης εισητηρίων και παραγγελίας!");
         File.WriteAllText(Application.StartupPath + "/barres.txt", "yes");
         this.Close();
     }
     else
     {
         MessageBox.Show("Επιτυχής καταχώρηση κράτησης στο μπαρ!");
         File.WriteAllText(Application.StartupPath + "/barres.txt", "yes");
         ConfirmAsVisitor c = new ConfirmAsVisitor();
         c.Show();
         this.Close();
     }
 }