예제 #1
0
 public FirstDataConverter(AirControlList aircontrollist)
 {
     this.AirControlList = aircontrollist;
     this.Timer          = new System.Timers.Timer();
     this.Timer.Interval = 200;
     // this.Timer.Elapsed += Timer_Elapsed;
 }
예제 #2
0
        public ListWindow(object obj, IDataConverterable DataConverter)
        {
            InitializeComponent();
            if (obj is AirControlList)
            {
                this.ACL = obj as AirControlList;

                this.list.DataContext = this.ACL;
            }
            this.DataContext = new ListWindowViewModel(ACL, DataConverter);
        }
예제 #3
0
        public ListWindowViewModel(AirControlList AirControllist, IDataConverterable DataConver)
        {
            this.ListWindowMode = new ListWindowModel(AirControllist, DataConver);
            this.GetTest        = new ListWindowDelegateCommand();

            this.Lc = new ListWindowDelegateCommand();

            //simple batch command
            this.SimpleBatchCommand = new ListWindowDelegateCommand();
            this.SimpleBatchCommand.ExecuteCommand = new Action <object>(this.ListWindowMode.Simplebatch);

            // to controller command
            this.ToControllerCommand = new ListWindowDelegateCommand();
            this.ToControllerCommand.ExecuteCommand = new Action <object>(this.ListWindowMode.ToController);

            //TopView command
            this.TopViewCommand = new ListWindowDelegateCommand();
            this.TopViewCommand.ExecuteCommand = new Action <object>(this.ListWindowMode.TOPView);

            // multi batch command

            this.MultiBatchCommand = new ListWindowDelegateCommand();
            this.MultiBatchCommand.ExecuteCommand = new Action <object>(this.ListWindowMode.MulitBatch);
        }
예제 #4
0
 public ListWindowModel(AirControlList aircontrollist, IDataConverterable DataConverter)
 {
     this.AirControlList = aircontrollist;
     this.DataConverter  = DataConverter;
 }