예제 #1
0
        private void button_Copy1_Click(object sender, RoutedEventArgs e)
        {
            var win = new Window9();

            win.Show();
            this.Close();
        }
예제 #2
0
        private void button_Click_1(object sender, RoutedEventArgs e)
        {
            Window9 w = new Window9();

            w.Show();
            this.Close();
        }
예제 #3
0
        private void mdiz_Click(object sender, RoutedEventArgs e)
        {
            Window9 winTool = new Window9();

            //Назначение текущего окна владельцем.
            winTool.Owner = this;
            //Отображение окна, принадлежащего окну-владельцу.
            winTool.Show();
            this.Hide();
        }
예제 #4
0
        private void addButton_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                String name     = nameTextBox.Text;
                int    netValue = Int32.Parse(netValueTextBox.Text);

                Meal newMeal = new Meal(name, netValue);
                Data.meals.Add(newMeal);
                MessageBox.Show("New meal added!");
                HelperFunctions.serUsers();
                var win = new Window9();
                win.Show();
                this.Close();
            }
            catch
            {
                MessageBox.Show("Please enter correct data!");
            }
        }
예제 #5
0
        private void button4_Click(object sender, RoutedEventArgs e)
        {
            Window9 w = new Window9();

            w.Show();
        }