public ContractorEditForm(ContractorsListForm instance) { this.instance = instance; InitializeComponent(); query = new QueryContractors(); this.Text = Properties.Resources.Contractor; label1.Text = Properties.Resources.ContractorType; label2.Text = Properties.Resources.Title; comboBox1.DataSource = new List <String> { Properties.Resources.Customer, Properties.Resources.Provider }; buttonCancel.Text = Properties.Resources.Cancel; buttonOK.Text = Properties.Resources.OK; }
private void buttonContragentsList_Click(object sender, EventArgs e) { ContractorsListForm f = new ContractorsListForm(); f.ShowDialog(); }
public ContractorEditForm(ContractorsListForm instance, int Id) : this(instance) { this.Id = Id; addDataForUpdate(); }