Beispiel #1
0
        private void btnApproved_Click(object sender, EventArgs e)
        {
            if (dataGridViewX1.SelectedRows.Count != 1)
            {
                return;
            }
            ApprovedForm it = new ApprovedForm(DataRowList[dataGridViewX1.SelectedRows[0].Index]);

            if (it.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                it._cir.IsApproved = true;
                it._cir.ApprovedBy = FISCA.Authentication.DSAServices.UserAccount;
                it._cir.ApprovedAt = DateTime.Now;
                it._cir.Save();
                //RunSelect();
            }
        }
 private void btnApproved_Click(object sender, EventArgs e)
 {
     if (dataGridViewX1.SelectedRows.Count != 1)
         return;
     ApprovedForm it = new ApprovedForm(DataRowList[dataGridViewX1.SelectedRows[0].Index]);
     if (it.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         it._cir.IsApproved = true;
         it._cir.ApprovedBy = FISCA.Authentication.DSAServices.UserAccount;
         it._cir.ApprovedAt = DateTime.Now;
         it._cir.Save();
         //RunSelect();
     }
 }