Example #1
0
        private void deleteBTN_Click(object sender, EventArgs e)
        {
            if (MetroMessageBox.Show(this, "Delete this record?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
            {
                return;
            }
            newcallinclass a = new newcallinclass(this);

            a.deletecallin(tempcin);
        }
Example #2
0
        private void addBTN_Click(object sender, EventArgs e)
        {
            cleanCallINEntry();
            newcallinclass a = new newcallinclass(this);

            a.addcallin(calldateTXT.Text, projectTXT.Text,
                        addressTXT.Text, recipientTXT.Text,
                        contactTXT.Text, emailTXT.Text,
                        foilTXT.Text, screenTXT.Text,
                        windowsTXT.Text, doorsTXT.Text,
                        otherTXT.Text, datevisitedTXT.Text,
                        assignedpersonnelTXT.Text);
        }
Example #3
0
 public void buttonsearchclick(Control objectname, string column)
 {
     objectname.Text = objectname.Text.Replace("'", "`");
     objectname.Text = objectname.Text.Replace("\"", "``");
     if (objectname.Text == "")
     {
         MetroMessageBox.Show(this, "Please enter " + column + " to search", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         CallinTableClass b   = new CallinTableClass(this);
         newcallinclass   a   = new newcallinclass(this);
         string           str = "select " + b.callintbcolumns + " from callintb where " + column + " like '%" + objectname.Text + "%' order by autonum desc";
         a.loadsearchresult(str);
     }
 }
Example #4
0
 private void updateBTN_Click(object sender, EventArgs e)
 {
     cleanCallINEntry();
     if (tempcin == "")
     {
     }
     else
     {
         if (MetroMessageBox.Show(this, "Save changes?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
         {
             return;
         }
         newcallinclass a = new newcallinclass(this);
         a.updatecallin(tempcin, calldateTXT.Text, projectTXT.Text,
                        addressTXT.Text, recipientTXT.Text,
                        contactTXT.Text, emailTXT.Text,
                        foilTXT.Text, screenTXT.Text,
                        windowsTXT.Text, doorsTXT.Text,
                        otherTXT.Text, datevisitedTXT.Text,
                        assignedpersonnelTXT.Text);
     }
 }