Exemplo n.º 1
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     if (this.IsCorrectData())
     {
         using (clsCluster cluster = new clsCluster())
         {
             cluster.ClusterName = txtClusterName.Text;
             cluster.Description = txtDescription.Text;
             cluster.Enabled     = "1";
             cluster.Insert();
         }
         _frmClusterList.BindClusterGrid();
         this.Close();
     }
 }
Exemplo n.º 2
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     if (IsCorrectData())
     {
         using (clsCluster cluster = new clsCluster())
         {
             cluster.ClusterCode = _strClusterCode;
             cluster.ClusterName = txtClusterName.Text;
             cluster.Description = txtDescription.Text;
             cluster.Enabled     = (chkEnabled.Checked ? "1" : "0");
             cluster.Update();
         }
         _frmClusterList.BindClusterGrid();
         this.Close();
     }
 }