Example #1
0
 public void setParent(pointCutAndAdviceChoose _parent)
 {
     parent = _parent;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Window = ((aspectJ.pointCutAndAdviceChoose)(target));
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.pointCutComboBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 23 "..\..\pointCutAndAdviceChoose.xaml"
     this.pointCutComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.pointCutComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     this.pointCutRichTextBox = ((System.Windows.Controls.RichTextBox)(target));
     
     #line 24 "..\..\pointCutAndAdviceChoose.xaml"
     this.pointCutRichTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.richTextBox_TextChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.addButton = ((System.Windows.Controls.Button)(target));
     
     #line 27 "..\..\pointCutAndAdviceChoose.xaml"
     this.addButton.Click += new System.Windows.RoutedEventHandler(this.addButton_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.editButton = ((System.Windows.Controls.Button)(target));
     
     #line 28 "..\..\pointCutAndAdviceChoose.xaml"
     this.editButton.Click += new System.Windows.RoutedEventHandler(this.editButton_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.deleteButton = ((System.Windows.Controls.Button)(target));
     
     #line 29 "..\..\pointCutAndAdviceChoose.xaml"
     this.deleteButton.Click += new System.Windows.RoutedEventHandler(this.deleteButton_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.adviceComboBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 38 "..\..\pointCutAndAdviceChoose.xaml"
     this.adviceComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.adviceComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 9:
     this.adviceRichTextBox = ((System.Windows.Controls.RichTextBox)(target));
     return;
     case 10:
     this.addButton1 = ((System.Windows.Controls.Button)(target));
     
     #line 42 "..\..\pointCutAndAdviceChoose.xaml"
     this.addButton1.Click += new System.Windows.RoutedEventHandler(this.addButton1_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.editButton1 = ((System.Windows.Controls.Button)(target));
     
     #line 43 "..\..\pointCutAndAdviceChoose.xaml"
     this.editButton1.Click += new System.Windows.RoutedEventHandler(this.editButton1_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.deleteButton1 = ((System.Windows.Controls.Button)(target));
     
     #line 44 "..\..\pointCutAndAdviceChoose.xaml"
     this.deleteButton1.Click += new System.Windows.RoutedEventHandler(this.deleteButton1_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.Button = ((System.Windows.Controls.Button)(target));
     
     #line 49 "..\..\pointCutAndAdviceChoose.xaml"
     this.Button.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.nameTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 15:
     this.generateButton = ((System.Windows.Controls.Button)(target));
     
     #line 53 "..\..\pointCutAndAdviceChoose.xaml"
     this.generateButton.Click += new System.Windows.RoutedEventHandler(this.generateButton_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Example #3
0
 private void cutOpenButton_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     pointCutAndAdviceChoose pcaac = new pointCutAndAdviceChoose();
     pcaac.ShowDialog();
     // 在此处添加事件处理程序实现。
 }