Esempio n. 1
0
        private void button_Copy_Click(object sender, RoutedEventArgs e)
        {
            var win = new Window4();

            win.Show();
            this.Close();
        }
Esempio n. 2
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            bool goalSet = true;

            if ((bool)loseRadioButton.IsChecked)
            {
                Data.newUserGoal = "lose";
            }
            else if ((bool)maintainRadioButton.IsChecked)
            {
                Data.newUserGoal = "maintain";
            }
            else if ((bool)gainRadioButton.IsChecked)
            {
                Data.newUserGoal = "gain";
            }
            else
            {
                MessageBox.Show("Choose a goal!");
                goalSet = false;
            }
            if (goalSet)
            {
                Window4 w = new Window4();
                w.Show();
                this.Close();
            }
        }
Esempio n. 3
0
        private void textBlock_Copy6_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            Window4 W = new Window4();

            W.Show();
            this.Close();
        }
Esempio n. 4
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            Window4 winTool = new Window4();

            //Назначение текущего окна владельцем.
            winTool.Owner = this;
            //Отображение окна, принадлежащего окну-владельцу.
            winTool.Show();
            this.Hide();
        }
Esempio n. 5
0
        private void Add_Categories_Click(object sender, RoutedEventArgs e)
        {
            Window4 addCategories = new Window4();
            addCategories.Show();

        }