void ReleaseDesignerOutlets()
        {
            if (AppraisalTableView != null)
            {
                AppraisalTableView.Dispose();
                AppraisalTableView = null;
            }

            if (AppraisalTypeSegment != null)
            {
                AppraisalTypeSegment.Dispose();
                AppraisalTypeSegment = null;
            }

            if (BtnAddNew != null)
            {
                BtnAddNew.Dispose();
                BtnAddNew = null;
            }

            if (BtnCancel != null)
            {
                BtnCancel.Dispose();
                BtnCancel = null;
            }

            if (VinSearch != null)
            {
                VinSearch.Dispose();
                VinSearch = null;
            }
        }
Ejemplo n.º 2
0
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            switch (keyData)
            {
            case (Keys.Control | Keys.N):
            {
                BtnAddNew.PerformClick(); break;
            }

            case (Keys.Control | Keys.E):
            {
                BtnEdit.PerformClick(); break;
            }

            case (Keys.Control | Keys.D):
            {
                BtnDelete.PerformClick(); break;
            }

            case (Keys.Control | Keys.S):
            {
                BtnSave.PerformClick(); break;
            }

            case (Keys.Control | Keys.U):
            {
                BtnUndo.PerformClick(); break;
            }

            case (Keys.Control | Keys.F):
            {
                BtnFind.PerformClick(); break;
            }

            case (Keys.Control | Keys.R):
            {
                BtnReload.PerformClick(); break;
            }

            case (Keys.Control | Keys.P):
            {
                BtnPrint.PerformClick(); break;
            }
            }
            return(base.ProcessCmdKey(ref msg, keyData));
        }
Ejemplo n.º 3
0
        void ReleaseDesignerOutlets()
        {
            if (BtnAddNew != null)
            {
                BtnAddNew.Dispose();
                BtnAddNew = null;
            }

            if (BtnCloseNew != null)
            {
                BtnCloseNew.Dispose();
                BtnCloseNew = null;
            }

            if (BtnBrowseCertificate != null)
            {
                BtnBrowseCertificate.Dispose();
                BtnBrowseCertificate = null;
            }

            if (TxtCertificatePath != null)
            {
                TxtCertificatePath.Dispose();
                TxtCertificatePath = null;
            }

            if (TxtDescription != null)
            {
                TxtDescription.Dispose();
                TxtDescription = null;
            }

            if (TxtUsername != null)
            {
                TxtUsername.Dispose();
                TxtUsername = null;
            }
        }