Exemplo n.º 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();
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
 }