public CellEditForm(CellsListForm instance) { this.instance = instance; InitializeComponent(); query = new QueryStore(); this.Text = Properties.Resources.Cell; label1.Text = Properties.Resources.Storage; label2.Text = Properties.Resources.Description; List <ObjectComboBox> lObj = new List <ObjectComboBox>(); foreach (var item in query.querySelectStorehouses()) { lObj.Add(new ObjectComboBox(item.Id, item.Name)); } comboBoxStorages.DataSource = lObj; comboBoxStorages.ValueMember = "Id"; comboBoxStorages.DisplayMember = "Name"; buttonCancel.Text = Properties.Resources.Cancel; buttonOK.Text = Properties.Resources.OK; }
public CellEditForm(CellsListForm instance, int Id) : this(instance) { this.Id = Id; addDataForUpdate(); }
private void button3_Click(object sender, EventArgs e) { CellsListForm f = new CellsListForm(); f.ShowDialog(); }