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();
        }
        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();
        }
        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();
        }
        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();
        }
        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();
        }
        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();
        }
        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();
        }
        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();
        }
        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();
        }
        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();
        }
        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();
        }
        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();
        }
        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();
        }