Example #1
0
 public SetRecord(Ataqm ataqm, XtraTabControl xtraTabControlStoresContent)
 {
     try
     {
         InitializeComponent();
         this.ataqm = ataqm;
         this.xtraTabControlStoresContent = xtraTabControlStoresContent;
         dbconnection = new MySqlConnection(connection.connectionString);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #2
0
 public SetUpdate(DataRowView setRow, Ataqm ataqm, XtraTabControl xtraTabControlStoresContent)
 {
     try
     {
         InitializeComponent();
         this.ataqm = ataqm;
         this.xtraTabControlStoresContent = xtraTabControlStoresContent;
         dbconnection   = new MySqlConnection(connection.connectionString);
         dbconnection1  = new MySqlConnection(connection.connectionString);
         dbconnection2  = new MySqlConnection(connection.connectionString);
         dbconnection3  = new MySqlConnection(connection.connectionString);
         this.updateRow = setRow;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     dbconnection.Close();
 }