Exemplo n.º 1
0
 private void BtnAddFrame_Click(object sender, EventArgs e)
 {
     try
     {
         if (TxtAddFrame.Text == "")
         {
             CommonFunctions.ShowError(this, "Please Enter Value In Textbox...");
         }
         else
         {
             technovisionDataSetTableAdapters.framesTableAdapter t = new technovisionDataSetTableAdapters.framesTableAdapter();
             t.Insert(TxtAddFrame.Text);
             this.framesTableAdapter.Fill(this.technovisionDataSet.frames);
             CommonFunctions.ShowSuccess(this, "New Frame Saved Successfully...");
             TxtAddFrame.Text = "";
             CommonFunctions.WriteUserLog(Session.Username, "Added new Frame" + TxtAddFrame.Text);
         }
     }
     catch (Exception ex)
     {
         CommonFunctions.WriteToErrorLog(ex.Message.ToString());
     }
 }