Ejemplo n.º 1
0
 private void buttonAddFeed_Click(object sender, RoutedEventArgs e)
 {
     using (var windowAddFeed = new WindowAddFeed())
     {
         var showDialog = windowAddFeed.ShowDialog();
         if (showDialog != null && showDialog.Value == true)
         {
             var newFeed = windowAddFeed.FeedOut;
             MessageBox.Show(newFeed.ToString());
         }
     }
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.WindowAddFeed1 = ((CSharpProject.Views.WindowAddFeed)(target));
     return;
     case 2:
     this.labelUrl = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.textBoxUrl = ((System.Windows.Controls.TextBox)(target));
     
     #line 15 "..\..\..\Views\WindowAddFeed.xaml"
     this.textBoxUrl.LostFocus += new System.Windows.RoutedEventHandler(this.textBoxUrl_LostFocus);
     
     #line default
     #line hidden
     return;
     case 4:
     this.labelTitle = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.labelTitleShow = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.buttonAdd = ((System.Windows.Controls.Button)(target));
     
     #line 18 "..\..\..\Views\WindowAddFeed.xaml"
     this.buttonAdd.Click += new System.Windows.RoutedEventHandler(this.buttonAdd_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.labelCategory = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.textBoxCategory = ((System.Windows.Controls.TextBox)(target));
     return;
     case 9:
     this.buttonClose = ((System.Windows.Controls.Button)(target));
     
     #line 21 "..\..\..\Views\WindowAddFeed.xaml"
     this.buttonClose.Click += new System.Windows.RoutedEventHandler(this.buttonClose_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }