Esempio n. 1
0
        private void mButton_Click(object sender, RoutedEventArgs e)
        {
            Eater     match = eaters[comboBox.SelectedIndex];
            CookerHub ch    = new CookerHub(c, mw, match);

            mw.Content = ch;
        }
Esempio n. 2
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            a.Name        = "c1";
            a.Password    = "******";
            a.HygieneCert = "OK";
            a.Pvg         = "AWAITING RESULT";
            a.H_Date      = new DateTime(2017, 12, 25);

            b.Name        = "c2";
            b.Password    = "******";
            b.HygieneCert = "OK";
            b.Pvg         = "REJECTED";
            b.H_Date      = new DateTime(2017, 12, 25);

            c.Name        = "c3";
            c.Password    = "******";
            c.HygieneCert = "OK";
            c.Pvg         = "OK";
            c.H_Date      = new DateTime(2017, 12, 25);

            if (nameBox.Text == "c1")
            {
                CookerHub ch = new CookerHub(a, mw);
            }
            else if (nameBox.Text == "c2")
            {
                CookerHub ch = new CookerHub(b, mw);
            }
            else if (nameBox.Text == "c3")
            {
                CookerHub ch = new CookerHub(c, mw);
            }
            else
            {
                MessageBox.Show("input error");
            }
        }