Exemple #1
0
 /// <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);
     };
 }
Exemple #4
0
 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);
     };
 }
Exemple #7
0
 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;
 }
Exemple #10
0
 public AutoPilotViewModel()
 {
     model = new AutoPilotModel();
 }
Exemple #11
0
 public AutoPilotViewModel()
 {
     this.autoPilotModel = AutoPilotModel.Instance;
     IsChanged           = false;
     text = "";
 }
Exemple #12
0
 // 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()
 }
Exemple #15
0
 public AutoPilotViewModel(AutoPilotModel m)
 {
     model = m;
 }