// コンストラクタ public GetRSSCommand(MVCFileViewModel viewModel) { rssViewModel = viewModel; // コマンド実行の可否の変更を通知します。 rssViewModel.PropertyChanged += (sender, e) => CanExecuteChanged?.Invoke(sender, e); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.rssViewModel = ((MVCChecker.ViewModels.MVCFileViewModel)(target)); return; case 2: this._TextBoxPath = ((System.Windows.Controls.TextBox)(target)); #line 32 "..\..\MainWindow.xaml" this._TextBoxPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this._TextBoxPath_TextChanged); #line default #line hidden return; case 3: this.xamDataTree = ((Infragistics.Controls.Menus.XamDataTree)(target)); #line 35 "..\..\MainWindow.xaml" this.xamDataTree.SelectedNodesCollectionChanged += new System.EventHandler <Infragistics.Controls.Menus.NodeSelectionEventArgs>(this.xamDataTree_SelectedNodesCollectionChanged); #line default #line hidden return; case 4: this._ListViewFile = ((System.Windows.Controls.ListBox)(target)); #line 44 "..\..\MainWindow.xaml" this._ListViewFile.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this._ListViewFile_MouseDoubleClick); #line default #line hidden return; case 5: this._TextEditor = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.gridSplitter1 = ((System.Windows.Controls.GridSplitter)(target)); return; case 7: this.gridSplitter2 = ((System.Windows.Controls.GridSplitter)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.rssViewModel = ((MVCChecker.ViewModels.MVCFileViewModel)(target)); return; case 2: this._TextBoxPath = ((System.Windows.Controls.TextBox)(target)); #line 32 "..\..\MainWindow.xaml" this._TextBoxPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this._TextBoxPath_TextChanged); #line default #line hidden return; case 3: this.xamDataTree = ((Infragistics.Controls.Menus.XamDataTree)(target)); #line 35 "..\..\MainWindow.xaml" this.xamDataTree.SelectedNodesCollectionChanged += new System.EventHandler<Infragistics.Controls.Menus.NodeSelectionEventArgs>(this.xamDataTree_SelectedNodesCollectionChanged); #line default #line hidden return; case 4: this._ListViewFile = ((System.Windows.Controls.ListBox)(target)); #line 44 "..\..\MainWindow.xaml" this._ListViewFile.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this._ListViewFile_MouseDoubleClick); #line default #line hidden return; case 5: this._TextEditor = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.gridSplitter1 = ((System.Windows.Controls.GridSplitter)(target)); return; case 7: this.gridSplitter2 = ((System.Windows.Controls.GridSplitter)(target)); return; } this._contentLoaded = true; }