Beispiel #1
0
        public SelectStudent(SelectInstructor i_parent)
        {
            InitializeComponent();
            _parent_win = i_parent;

            SetInitConfigWindow();
            GetData();

            instance = this;
        }
Beispiel #2
0
        /// <summary>
        /// Description: Valida la selección de un instructor
        /// </summary>
        private void _nextButton_btn_Click(object sender, RoutedEventArgs e)
        {
            pilot pilotSelected = _pilotGridView_rgv.SelectedItem as pilot;

            if (pilotSelected != null)
            {
                SelectStudent selectStudent = new SelectStudent(this);
                selectStudent.Show();
                this.Hide();
            }
            else
            {
                RadWindow.Alert(new DialogParameters
                {
                    Header          = "Alert",
                    Content         = "Select instructor and press next",
                    OkButtonContent = "Ok",
                    Owner           = this
                });
            }
        }
Beispiel #3
0
 /// <summary>
 /// Description: Cuando se cierra la ventana muestra al padre
 /// </summary>
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     _parent_win.Show();
     instance = null;
 }