示例#1
0
        private void BtnNew_Click(object sender, EventArgs e)
        {
            MembershipPaymentCreateForm paymentForm = new MembershipPaymentCreateForm(_accessToken, _client, null);

            paymentForm.MdiParent   = this.MdiParent;
            paymentForm.WindowState = FormWindowState.Maximized;
            paymentForm.ControlBox  = false;
            paymentForm.MaximizeBox = false;
            paymentForm.MinimizeBox = false;
            paymentForm.ShowIcon    = false;

            paymentForm.Show();
        }
示例#2
0
        private void DgvPayments_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int selectedRowIndex = dgvPayments.CurrentCell.RowIndex;
            int id = int.Parse(dgvPayments.Rows[selectedRowIndex].Cells[0].Value.ToString());

            MembershipPayment           payment     = _payments.Where(x => x.Id == id).FirstOrDefault();
            MembershipPaymentCreateForm paymentForm = new MembershipPaymentCreateForm(_accessToken, _client, payment);

            paymentForm.MdiParent   = this.MdiParent;
            paymentForm.WindowState = FormWindowState.Maximized;
            paymentForm.ControlBox  = false;
            paymentForm.MaximizeBox = false;
            paymentForm.MinimizeBox = false;
            paymentForm.ShowIcon    = false;

            paymentForm.Show();
        }