Esempio n. 1
0
        /// <summary>
        /// Description: Obtiene los datos de la base de datos
        /// </summary>
        private void GetData()
        {
            DataContext = this;

            pilotLogic = new PilotLogic();
            Pilots     = pilotLogic.ReadPilots();
        }
Esempio n. 2
0
        public SelectInstructor(MainWindow i_parent)
        {
            InitializeComponent();
            _parent_win = i_parent;

            pilotLogic = new PilotLogic();

            SetInitConfigWindow();
            GetData();

            instance = this;
        }
Esempio n. 3
0
        public NewPilot(bool i_isEdit = false)
        {
            _idEdit_boo = i_isEdit;

            InitializeComponent();

            if (_idEdit_boo == true)
            {
                _title_txt.Text        = "Edit Pilot";
                _addButton_btn.Content = "Edit";
            }

            pilotLogic = new PilotLogic();

            GetData();
        }
Esempio n. 4
0
 public ButtonViewModel()
 {
     this.DeleteCommand = new DelegateCommand(OnDeleteCommandExecuted);
     this.EditCommand   = new DelegateCommand(OnEditCommandExecuted);
     pilotLogic         = new PilotLogic();
 }