Example #1
0
 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();
 }
Example #2
0
 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();
     }
 }
Example #3
0
 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();
     }
 }
Example #4
0
 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();
 }