public MainForm(int IdDoc) { InitializeComponent(); userDoctor = new Doctor(connectionClass, IdDoc); labelDoctor.Text = "Doctor: " + userDoctor.Name + " " + userDoctor.LastName; helperForm = new HelperForm(this); patientDetails(false); //ActiveControl = textBoxSearchN; }
private void startForm(ConnectionClass connectionClass, int IdDoc) { InitializeComponent(); this.connectionClass = connectionClass; this.IdDoc = IdDoc; buttonAddP.Enabled = false; newPatient = null; ActiveControl = textBoxName; helperForm = new HelperForm(this); }
public LoginForm() { InitializeComponent(); helperForm = new HelperForm(this); }