/// <summary> /// constructor /// </summary> public AutoPilotViewModel() { //connect to model model = AutoPilotModel.Instance; //initialize params IsSent = false; }
public AutoPilotVM() { // init color is white autoPilotModel = new AutoPilotModel(); autoPilotModel.Back = Brushes.White; //Back = Brushes.White; }
/* the ViewModel that responsible of the Auto Pilot TextBox. * creates new AutoPilot model and registers itself to be * notified when its properties change, when the model's * properties change, the vm notifies it to the view. */ public AutoPilotViewModel() { model = new AutoPilotModel(); model.PropertyChanged += delegate(object sender, PropertyChangedEventArgs e) { NotifyPropertyChanged("VM_" + e.PropertyName); }; }
public AutoPilotViewModel(AutoPilotModel model) { this.model = model; model.PropertyChanged += delegate(Object sender, PropertyChangedEventArgs e) { NotifyPropertyChanged("VM_" + e.PropertyName); }; }
public AutoPilotViewModel() { this.model = new AutoPilotModel(); this.background = Brushes.LightPink; // 2 commands that written as default this.commands = "set controls/flight/rudder -1\r\nset controls/flight/rudder 1\r\n"; }
public AutoPilotViewModel() { autoPilotModel = new AutoPilotModel(); //Notify the fit property in the view model autoPilotModel.PropertyChanged += delegate(Object sender, PropertyChangedEventArgs e) { NotifyPropertyChanged("VM_" + e.PropertyName); }; }
public AutoPilotViewModel() { model = new AutoPilotModel(); model.PropertyChanged += delegate(Object sender, PropertyChangedEventArgs e) { NotifyPropertyChanged(e.PropertyName); }; _text = ""; BackgroundColor = Brushes.White; }
public AutoPilotViewModel(AutoPilotModel model) { this.model = model; this.autoPilotData = ""; }
public AutoPilotViewModel(AutoPilotModel model) { autoPilotModel = model; Commands = string.Empty; IsTyping = false; }
public AutoPilotViewModel() { model = new AutoPilotModel(); }
public AutoPilotViewModel() { this.autoPilotModel = AutoPilotModel.Instance; IsChanged = false; text = ""; }
// Constructor. public AutoPilotViewModel() { this.model = new AutoPilotModel(); this.VM_Change_Background = true; }
public AutoPilotViewModel(AutoPilotModel model) { this.model = model; }
public AutoPilotViewModel() { this.autoModel = new AutoPilotModel(); // clearCommand=new AutoPilotModel() }
public AutoPilotViewModel(AutoPilotModel m) { model = m; }