コード例 #1
0
        private void btnNotes_Click(object sender, EventArgs e)
        {
            frmNote DriverNote = new frmNote(System.Convert.ToInt32(txtDriverID.Text), Notes.NoteType.Driver);

            DriverNote.FormClosing  += delegate { this.Show(); };
            DriverNote.StartPosition = FormStartPosition.Manual;
            Sizer.ResizeForm(DriverNote);
            DriverNote.Show();
        }
コード例 #2
0
        private void btnDonations_Click(object sender, EventArgs e)
        {
            frmDonation clientDonation = new frmDonation(System.Convert.ToInt32(txtClientID.Text));

            clientDonation.FormClosed   += delegate { this.Show(); };
            clientDonation.StartPosition = FormStartPosition.Manual;
            Sizer.ResizeForm(clientDonation);
            clientDonation.Show();
        }
コード例 #3
0
        private void btnAddDestType_Click(object sender, EventArgs e)
        {
            frmMaintenanceDestinationType maint = new frmMaintenanceDestinationType();

            //maint.FormClosing += delegate { this.Show(); };
            maint.FormClosing += delegate { LoadDestinationTypeCombo(); };
            Sizer.ResizeForm(maint);
            maint.Show();
        }
コード例 #4
0
        private void btnNotes_Click(object sender, EventArgs e)
        {
            frmNote clientNote = new frmNote(System.Convert.ToInt32(txtClientID.Text), Notes.NoteType.Client);

            clientNote.FormClosing += delegate { this.Show(); };
            Sizer.ResizeForm(clientNote);
            clientNote.StartPosition = FormStartPosition.Manual;
            clientNote.ShowDialog();
        }
コード例 #5
0
        private void btnDriverAdd_Click(object sender, EventArgs e)
        {
            frmDriverAdd driverAdd = new frmDriverAdd();

            driverAdd.FormClosed   += delegate { this.Show(); };
            driverAdd.StartPosition = FormStartPosition.Manual;
            Sizer.ResizeForm(driverAdd);
            driverAdd.Show();
            this.Hide();
        }
コード例 #6
0
        private void btnDriverEdit_Click(object sender, EventArgs e)
        {
            frmDriverEdit driverEdit = new frmDriverEdit(user);

            driverEdit.FormClosed   += delegate { this.Show(); };
            driverEdit.StartPosition = FormStartPosition.Manual;
            Sizer.ResizeForm(driverEdit);
            driverEdit.Show();
            this.Hide();
        }
コード例 #7
0
        private void btnEditClient_Click(object sender, EventArgs e)
        {
            frmClientEdit clientEdit = new frmClientEdit();

            clientEdit.FormClosed   += delegate { this.Show(); };
            clientEdit.StartPosition = FormStartPosition.Manual;
            Sizer.ResizeForm(clientEdit);
            clientEdit.Show();
            this.Hide();
        }
コード例 #8
0
        private void btnInsuranceExpiry_Click(object sender, EventArgs e)
        {
            frmLicenceExpiry frmlicenceexpiry = new frmLicenceExpiry(Attribute.ExpiryType.insurance);

            frmlicenceexpiry.FormClosed   += delegate { this.Show(); };
            frmlicenceexpiry.StartPosition = FormStartPosition.Manual;
            Sizer.ResizeForm(frmlicenceexpiry);
            frmlicenceexpiry.Show();
            this.Hide();
        }
コード例 #9
0
        private void btnJobsExpired_Click(object sender, EventArgs e)
        {
            frmJobQueueExpired frmjobqueueexpired = new frmJobQueueExpired();

            frmjobqueueexpired.FormClosed   += delegate { this.Show(); PopulateJobCount(); };
            frmjobqueueexpired.StartPosition = FormStartPosition.Manual;
            Sizer.ResizeForm(frmjobqueueexpired);
            frmjobqueueexpired.Show();
            this.Hide();
        }
コード例 #10
0
        private void btnJobStatus_Click(object sender, EventArgs e)
        {
            frmMaintenance frmMaint = new frmMaintenance(Combo.ComboName.JobStatus);

            frmMaint.FormClosed   += delegate { this.Show(); };
            frmMaint.StartPosition = FormStartPosition.Manual;
            Sizer.ResizeForm(frmMaint);
            frmMaint.Show();
            this.Hide();
        }
コード例 #11
0
        private void btnJobEdit_Click(object sender, EventArgs e)
        {
            frmJobEdit frmJobEdit = new frmJobEdit();

            frmJobEdit.FormClosed   += delegate { this.Show(); PopulateJobCount(); };
            frmJobEdit.StartPosition = FormStartPosition.Manual;
            Sizer.ResizeForm(frmJobEdit);
            frmJobEdit.Show();
            this.Hide();
        }
コード例 #12
0
        private void btnDestDelete_Click(object sender, EventArgs e)
        {
            frmDestinationAdd frmDest = new frmDestinationAdd("Delete");

            frmDest.FormClosed   += delegate { this.Show(); };
            frmDest.StartPosition = FormStartPosition.Manual;
            Sizer.ResizeForm(frmDest);
            frmDest.Show();
            this.Hide();
        }
コード例 #13
0
        private void btnDriver_Click(object sender, EventArgs e)
        {
            if (this.txtDriverID.Text == "0")
            {
                MessageBox.Show("No driver selected", msgBoxTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            frmDriverDetails driverdetails = new frmDriverDetails(Convert.ToInt32(this.txtDriverID.Text), _user);

            driverdetails.FormClosing  += delegate { this.Show(); };
            driverdetails.StartPosition = FormStartPosition.Manual;
            Sizer.ResizeForm(driverdetails);
            driverdetails.Show();
            this.Hide();
        }