private void btnEdit_Click(object sender, EventArgs e) { frmClient fClient = new frmClient(GridClient.GetData(GridClient.Row, 0).ToString()); fClient.usr = usr; fClient.db_connection = db_connection; fClient.input = 1; fClient.ShowDialog(); fClient.Close(); }
private void btnEdit_Click(object sender, EventArgs e) { if (CheckState(db_connection)) { frmClient fClient = new frmClient(GridClient.GetData(GridClient.Row, 0).ToString()); fClient.usr = usr; fClient.db_connection = db_connection; fClient.input = 1; fClient.ShowDialog(); if (fClient.DialogResult == DialogResult.OK) { SelectClient(GridClient.GetData(GridClient.Row, 0).ToString(), ""); } fClient.Close(); } }
private void btnNew_Click(object sender, EventArgs e) { if (CheckState(db_connection)) { frmClient fClient = new frmClient(); fClient.usr = usr; fClient.db_connection = db_connection; fClient.input = 1; fClient.ShowDialog(); if (fClient.DialogResult == DialogResult.OK) { SelectClient("", fClient.guid); } fClient.Close(); ReBildTable(); } }
private void btnNew_Click(object sender, EventArgs e) { frmClient fClient = new frmClient(); fClient.usr = usr; fClient.db_connection = db_connection; fClient.input = 1; fClient.ShowDialog(); txtSearch.Text = fClient.txtName.Text; tmr.Stop(); tmr.Start(); fClient.Close(); //ReBildTable(); }