Пример #1
0
        private void btnUpdate_Click(object sender, RoutedEventArgs e)
        {
            if (findGrid.SelectedItem == null)
            {
                MessageBox.Show("יש לבחור מבחן לעידכון");
                return;
            }
            Window addTest = new AddTestWindow((Test)findGrid.SelectedItem);

            addTest.Show();
        }
        /// <summary>
        /// This function adds a new test when we press on the button "Add Test"
        /// This is a sighnup function for a click event
        /// </summary>
        /// <param name="sender">Who is sensing the event</param>
        /// <param name="e">Details of the event occurred</param>
        private void TestAddButton_Click(object sender, RoutedEventArgs e)
        {
            AddTestWindow addTestWind = new AddTestWindow();

            addTestWind.ShowDialog();
        }
Пример #3
0
        private void AddTest_Click(object sender, RoutedEventArgs e)
        {
            Window AddTestWindow = new AddTestWindow();

            AddTestWindow.Show();
        }