// -- Consturctor, 需實作所有ICommand public GetCD_ViewModel(Window_GetCD parent) { parentWindow = parent; Model_Instance = new GetCD_Model(this); Do_ExtractData = new RelayCommand(ExtractData, (x) => true); }
private void Button_Click(object sender, RoutedEventArgs e) { this.Hide(); var GetCD_instance = new Window_GetCD(this); GetCD_instance.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.WindowGetCD = ((NHIRD.Window_GetCD)(target)); #line 8 "..\..\..\..\WPF Forms\GetCD\window_GetCD.xaml" this.WindowGetCD.Unloaded += new System.Windows.RoutedEventHandler(this.WindowGetCD_Unloaded); #line default #line hidden #line 8 "..\..\..\..\WPF Forms\GetCD\window_GetCD.xaml" this.WindowGetCD.Loaded += new System.Windows.RoutedEventHandler(this.WindowGetCD_Loaded); #line default #line hidden return; case 2: this.inputFolderSelect = ((NHIRD.IOFolderSelector)(target)); return; case 3: this.fileListControl = ((NHIRD.FileListControl)(target)); return; case 4: this.criteriaStackPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 5: this.Cb_AgeL = ((System.Windows.Controls.CheckBox)(target)); return; case 6: this.Tx_AgeL = ((System.Windows.Controls.TextBox)(target)); #line 51 "..\..\..\..\WPF Forms\GetCD\window_GetCD.xaml" this.Tx_AgeL.KeyDown += new System.Windows.Input.KeyEventHandler(this.Textbox_FloatVerify_KeyDown); #line default #line hidden return; case 7: this.Cb_AgeU = ((System.Windows.Controls.CheckBox)(target)); return; case 8: this.Tx_AgeU = ((System.Windows.Controls.TextBox)(target)); #line 55 "..\..\..\..\WPF Forms\GetCD\window_GetCD.xaml" this.Tx_AgeU.KeyDown += new System.Windows.Input.KeyEventHandler(this.Textbox_FloatVerify_KeyDown); #line default #line hidden return; case 9: this.IDCrieteria_FolderSelect = ((NHIRD.EXT_FolderSelector)(target)); return; case 10: this.OrderCrieteria_FolderSelect = ((NHIRD.EXT_FolderSelector)(target)); return; case 11: #line 73 "..\..\..\..\WPF Forms\GetCD\window_GetCD.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetAll_Click); #line default #line hidden return; case 12: this.ouputFolderSelect = ((NHIRD.IOFolderSelector)(target)); return; } this._contentLoaded = true; }