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; }
//Constructor public wdSystemCommand(clsChildControlModel objclsChildControlModel) { // InitializeComponent(); // this.objclsChildControlModel = objclsChildControlModel; // this.tbSearch.Focus(); }
//Constructor public handleClient(clsChildControlModel objChildControlModel) { this.objChildControlModel = objChildControlModel; }
///////////////////////////////////////////////////////////////////////////////////////// //Constructor public clsTcpIpHandle(clsChildControlModel objChildControlModel) { this.objChildControlModel = objChildControlModel; }
public wdChildSequenceTest(clsChildControlModel clsChildControl) { InitializeComponent(); // this.DataContext = clsChildControl; }