Пример #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            var oper = allOperationBindingSource.Current as AllOperation;
            if (oper == null) return;

            if (oper.FlagBankOrKassa == BankOrKassa.Bank)
            {
                var frm = new frmBankOperation(oper.Id, oper.FlagOperation);
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    btnFind_Click(null, null);
                }
            }
            else
            {
                var frm = new frmKassaOperation(oper.Id, oper.FlagOperation);
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    btnFind_Click(null, null);
                }
            }
        }
Пример #2
0
        private void изменитьToolStripMenuItem6_Click(object sender, EventArgs e)
        {
            var oper = allOperationBindingSource.Current as AllOperation;
            if (oper == null) return;

            if (oper.FlagBankOrKassa == BankOrKassa.Bank)
            {
                var frm = new frmBankOperation(oper.Id, oper.FlagOperation);
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    ShowOperation(frm.CurrentOperation.Id);
                }
            }
            else
            {
                var frm = new frmKassaOperation(oper.Id, oper.FlagOperation);
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    ShowOperation(frm.CurrentOperation.Id);
                }
            }
        }
Пример #3
0
 private void новыйРасходToolStripMenuItem2_Click(object sender, EventArgs e)
 {
     var frm = new frmKassaOperation(0, FlagOperation.Kredit);
     if (frm.ShowDialog() == DialogResult.OK)
     {
         ShowOperation(frm.CurrentOperation.Id);
     }
 }
Пример #4
0
 private void изменитьToolStripMenuItem3_Click(object sender, EventArgs e)
 {
     var oper = kassaOperationBindingSource.Current as KassaOperation;
     if (oper == null) return;
     var frm = new frmKassaOperation(oper.Id, FlagOperation.Debet);
     if (frm.ShowDialog() == DialogResult.OK)
     {
         ShowOperation(frm.CurrentOperation.Id);
     }
 }