示例#1
0
        private void FButton_Click_Manage(object sender, RoutedEventArgs e)
        {
            Window3 win = new Window3();

            win.getname = getname;
            win.Show();
        }
示例#2
0
        private void FButton_Click_Change(object sender, RoutedEventArgs e)
        {
            var item = gridList.SelectedItem as Food;

            if (item != null)
            {
                this.IsEnabled = false;
                Window3 win2 = new Window3(getname, sNumber, item.GetId(), item.GetName(), item.GetFoodClass(), item.GetSt(), item.GetPrice());
                win2.windowclose += new windowCloseEvent3(winclose);
                win2.ShowDialog();
                //FButton_Click_Fresh(this, e);
                //this.IsEnabled = true;
            }
            else
            {
                MessageBox.Show("请在列表中选择菜品!");
            }
        }