예제 #1
0
파일: Main.cs 프로젝트: Rillanon/FP-PMS
        private void blankInvoiceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //var _myInvoiceController = new invoiceController();
            //_myInvoiceController.chooseClaimant();
            var claimantChoose = new Accounting.Invoice.claimantSelectViewForm();
            claimantChoose.ShowDialog();

            if (claimantChoose.DialogResult == DialogResult.OK)
            {
                var physioChoose = new Scheduling.physioSelectDialog();
                physioChoose.ShowDialog();
                if (physioChoose.DialogResult == DialogResult.OK)
                {
                    var newInvoice = new Accounting.Invoice.newInvoiceForm(claimantChoose.myClaimant, physioChoose.myPhysio);
                    newInvoice.ShowDialog();
                }

            }
        }
예제 #2
0
파일: Main.cs 프로젝트: Rillanon/FP-PMS
        private void appointmentsByPhysioToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var physioChoose = new Scheduling.physioSelectDialog();
            physioChoose.ShowDialog();
            if (physioChoose.DialogResult == DialogResult.OK)
            {
                var newDateInterval = new Report.dateIntervalDialog();
                newDateInterval.ShowDialog();

                if (newDateInterval.DialogResult == DialogResult.OK)
                {
                    var foo = new Scheduling.appointmentsByPhysioViewForm(newDateInterval.startDate, newDateInterval.endDate, physioChoose.myPhysio);
                    foo.MdiParent = this;
                    foo.Show();
                    //foo.Dispose();
                }
                newDateInterval.Dispose();
            }
            physioChoose.Dispose();
        }