void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.NewPatient_W = ((Ekartoteka.NewPatient)(target)); return; case 2: this.FirstName_L = ((System.Windows.Controls.Label)(target)); return; case 3: this.LastName_L = ((System.Windows.Controls.Label)(target)); return; case 4: this.Pesel_L = ((System.Windows.Controls.Label)(target)); return; case 5: this.BirthDate_L = ((System.Windows.Controls.Label)(target)); return; case 6: this.Allergies_L = ((System.Windows.Controls.Label)(target)); return; case 7: this.Drugs_L = ((System.Windows.Controls.Label)(target)); return; case 8: this.Note_L = ((System.Windows.Controls.Label)(target)); return; case 9: this.FirstName_TB = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.LastName_TB = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.PESEL_TB = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.BirthDate_DP = ((System.Windows.Controls.DatePicker)(target)); return; case 13: this.Note_TB = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.SavePatient_B = ((System.Windows.Controls.Button)(target)); return; case 15: this.Allergies_TB = ((System.Windows.Controls.TextBox)(target)); return; case 16: this.DrugList_LB = ((System.Windows.Controls.ListBox)(target)); return; case 17: this.AddedDrugs_LV = ((System.Windows.Controls.ListView)(target)); return; case 18: this.AddDrug_B = ((System.Windows.Controls.Button)(target)); return; case 19: this.DeleteDrug_B = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
private void NewPatient_B_Click(object sender, RoutedEventArgs e) { NewPatient np = new NewPatient(); np.Show(); }