public LoadAddEditForm(AllocateLoading ld_form) { InitializeComponent(); this.ld_form = ld_form; // Если задано редактирование - заполняем поля данными if (this.ld_form.curr_index != -1) { btn_add.Text = "Сохранить"; this.Text = "Редактировать запись"; FillData(); } }
private void btn_loading_Click(object sender, EventArgs e) { AllocateLoading allocLoading = new AllocateLoading(); allocLoading.ShowDialog(); }