private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { this.Invoke(new MethodInvoker(delegate() { label3.Text = "بیمارستان " + Informations.read().HospitalName; comboBoxEx1.DataSource = BL.Read().Select(a => new { a.Id, a.Name }).ToList(); comboBoxEx1.DisplayMember = "Name"; comboBoxEx1.ValueMember = "Id"; comboBoxEx1.SelectedValue = -1; })); }
private void MainForm_Shown(object sender, EventArgs e) { labelX1.Text = "بیمارستان " + Informations.read().HospitalName; }
private void Form1_Activated(object sender, EventArgs e) { label2.Text = Informations.read().ManagerName; label3.Text = "بیمارستان " + Informations.read().HospitalName; }
public Manager_Settings() { InitializeComponent(); info = Informations.read(); }