Beispiel #1
0
 private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (AddFunc.MsgQuesYESNO("Are you sure want to delet this order ?"))
     {
         _obj.Invoice_Detail.RemoveAll(x => x.Service_Name == dgResult.Rows[RowIndex].Cells["Service_Name"].Value.ToString());
     }
     RefreshDG();
 }
Beispiel #2
0
 private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (AddFunc.MsgQuesYESNO("Are you sure want to delete this record ?"))
     {
         Packages.DeletePackages(dgResult.Rows[RowIndex].Cells["Id"].Value.ToString());
         AddFunc.MsgInfo("Data Delete Succesfull");
     }
     RefreshDG();
 }
 private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (RowIndex > -1)
     {
         if (AddFunc.MsgQuesYESNO("Are sure want to delete this record ?"))
         {
             Employee.DeleteEmployee(dgResult.Rows[RowIndex].Cells["Id"].Value.ToString());
             AddFunc.MsgInfo("Data Delete Succesful");
             RefresDG();
         }
     }
     else
     {
         AddFunc.MsgError("No Row Detected!");
     }
 }
Beispiel #4
0
 private void btnProcess_Click(object sender, EventArgs e)
 {
     try {
         if (dgResult.Rows.Count > 0)
         {
             if (AddFunc.MsgQuesYESNO("Are you sure want to process this invoices ?"))
             {
                 _obj.CustomerName = txtCustomer.Text;
                 Invoices.AddInvoice(_obj);
                 AddFunc.MsgInfo("Thank For You Order");
             }
         }
         else
         {
             AddFunc.MsgError("No Package added !");
         }
     }
     catch (Exception ex)
     {
         AddFunc.MsgError(ex.Message);
     }
 }