예제 #1
0
        public clsChildControlViewModel(clsChildControlModel objclsChildControlModel)
        {
            //ini for child control model
            //this.objclsChildControlModel = new clsChildControlModel();
            this.objclsChildControlModel = objclsChildControlModel;

            //Add notify change event handle
            this.objclsChildControlModel.PropertyChanged += (s, e) => { UpdateChangeFromModel(s, e); };

            //Register for ICommand
            this.btnNextCommand = new DelegateCommand(this.btnNextCommandHandle);

            this.ICommandResetCounter            = new DelegateCommand(this.ICommandResetCounterHandle);
            this.ICommandSkipCheckItem           = new DelegateCommand(this.ICommandSkipCheckItemHandle);
            this.ICommandMasterSequenceTester    = new DelegateCommand(this.ICommandMasterSequenceTesterHandle);
            this.ICommandChildSequenceTester     = new DelegateCommand(this.ICommandChildSequenceTesterHandle);
            this.ICommandSystemCommandMode       = new DelegateCommand(this.ICommandSystemCommandModeHandle);
            this.ICommandClearAllSkip            = new DelegateCommand(this.ICommandClearAllSkipHandle);
            this.ICommandSelectStepList          = new DelegateCommand(this.ICommandSelectStepListHandle);
            this.ICommandSelectProgramList       = new DelegateCommand(this.ICommandSelectProgramListHandle);
            this.ICommandSelectMasterProgramList = new DelegateCommand(this.ICommandSelectMasterProgramListHandle);
            this.ICommandExportOptionViewTable   = new DelegateCommand(this.ICommandExportOptionViewTableHandle);

            //Ini for bind view class
            this.clsBindingView = this.objclsChildControlModel.clsBindingView;
        }
예제 #2
0
 //Constructor
 public wdSystemCommand(clsChildControlModel objclsChildControlModel)
 {
     //
     InitializeComponent();
     //
     this.objclsChildControlModel = objclsChildControlModel;
     //
     this.tbSearch.Focus();
 }
예제 #3
0
 //Constructor
 public handleClient(clsChildControlModel objChildControlModel)
 {
     this.objChildControlModel = objChildControlModel;
 }
예제 #4
0
        /////////////////////////////////////////////////////////////////////////////////////////

        //Constructor
        public clsTcpIpHandle(clsChildControlModel objChildControlModel)
        {
            this.objChildControlModel = objChildControlModel;
        }
예제 #5
0
 public wdChildSequenceTest(clsChildControlModel clsChildControl)
 {
     InitializeComponent();
     //
     this.DataContext = clsChildControl;
 }