public ttCongViecMI(string _id_rowindex, qlCongViecMI _ql) { InitializeComponent(); SetDefault(); ql = _ql; if (!string.IsNullOrEmpty(_id_rowindex)) { idViec = _id_rowindex.Split('_').GetValue(0).ToString(); rowindex = _id_rowindex.Split('_').GetValue(1).ToString(); btThem.Text = "Cập nhật"; DataTable dt = DA.Load_ViecMayIn(new string[] { idViec }); txtCongviec.Text = dt.Rows[0][1].ToString(); txtDongia.Text = dt.Rows[0][2].ToString(); } }
private void bt_qlCongViec_Click(object sender, EventArgs e) { ActiveForm.Hide(); var ql = new qlCongViecMI(); ql.Show(); }