/// <summary> /// Description: Obtiene los datos de la base de datos /// </summary> private void GetData() { DataContext = this; pilotLogic = new PilotLogic(); Pilots = pilotLogic.ReadPilots(); }
public SelectInstructor(MainWindow i_parent) { InitializeComponent(); _parent_win = i_parent; pilotLogic = new PilotLogic(); SetInitConfigWindow(); GetData(); instance = this; }
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(); }
public ButtonViewModel() { this.DeleteCommand = new DelegateCommand(OnDeleteCommandExecuted); this.EditCommand = new DelegateCommand(OnEditCommandExecuted); pilotLogic = new PilotLogic(); }