コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.windowAdd = ((Med.NewPerson)(target));
                return;

            case 2:

            #line 18 "..\..\NewPerson.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.tbFirstName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.tbDiagnos = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.tbSecondName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.dateFirst = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 7:
                this.timeFirst = ((Xceed.Wpf.Toolkit.MaskedTextBox)(target));
                return;

            case 8:
                this.dateOfBirth = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 9:
                this.dateSecond = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 10:
                this.timeSecond = ((Xceed.Wpf.Toolkit.MaskedTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
      private void testBtn_Click(object sender, RoutedEventArgs e)
      {
          NewPerson np = new NewPerson();

          np.Show();
      }