public FormPropertiesPC() { InitializeComponent(); FormLoadSplash form = new FormLoadSplash("Загрузка..."); form.Show(); Application.DoEvents(); foreach (Label l in Data.Labels) comboBoxTPA.Items.Add(l.TPAName); Data.ListsLoad(); form.Close(); }
public FormPropertiesPC() { InitializeComponent(); FormLoadSplash form = new FormLoadSplash("Загрузка..."); form.Show(); Application.DoEvents(); foreach (Line l in Data.lines) { comboBoxTPA.Items.Add(l.name); } Data.ListsLoad(); form.Close(); }
public FormCustomLabel() { InitializeComponent(); FormLoadSplash form = new FormLoadSplash("Загрузка..."); form.Show(); Application.DoEvents(); Data.UsersLoad(); Data.ListsLoad(); //Заполнение комбобоксов списками Data.Users.ForEach(u => comboBoxUser.Items.Add(u.Name)); comboBoxUser.SelectedItem = null; numericUpDownCount.Maximum = Data.MaxLabels(comboBoxTPA.SelectedIndex); foreach (Label l in Data.Labels) comboBoxTPA.Items.Add(l.TPAName); textBoxNumber.Text = ""; ListFill(); comboBoxLimit.DataSource = Data.Limits; comboBoxLimit.SelectedItem = null; form.Close(); }
public FormCustomLabel() { InitializeComponent(); FormLoadSplash form = new FormLoadSplash("Загрузка..."); form.Show(); Application.DoEvents(); Data.UsersLoad(); Data.ListsLoad(); //Заполнение комбобоксов списками Data.users.ForEach(u => comboBoxUser.Items.Add(u.Name)); comboBoxUser.SelectedItem = null; numericUpDownCount.Maximum = Data.MaxLabels(comboBoxTPA.SelectedIndex); foreach (Line l in Data.lines) { comboBoxTPA.Items.Add(l.name); } textBoxNumber.Text = ""; ListFill(); comboBoxLimit.DataSource = Data.Limits; comboBoxLimit.SelectedItem = null; form.Close(); }