Beispiel #1
0
        private void btnAuthorized_Click(object sender, EventArgs e)
        {
            if (dataGridViewX1.SelectedRows.Count != 1)
            {
                return;
            }

            AuthorizeForm it = new AuthorizeForm(DataRowList[dataGridViewX1.SelectedRows[0].Index]);

            if (it.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                it._cir.IsAuthorized = true;
                it._cir.AuthorizedBy = FISCA.Authentication.DSAServices.UserAccount;
                it._cir.AuthorizedAt = DateTime.Now;
                it._cir.Save();
                //RunSelect();
            }
        }
        private void btnAuthorized_Click(object sender, EventArgs e)
        {
            if (dataGridViewX1.SelectedRows.Count != 1)
                return;

            AuthorizeForm it = new AuthorizeForm(DataRowList[dataGridViewX1.SelectedRows[0].Index]);
            if (it.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                it._cir.IsAuthorized = true;
                it._cir.AuthorizedBy = FISCA.Authentication.DSAServices.UserAccount;
                it._cir.AuthorizedAt = DateTime.Now;
                it._cir.Save();
                //RunSelect();
            }
        }