private void LogOffScreen()
        {
            var objLogin = new Login();
            objLogin.MainInstance = this;
            Hide();
            objLogin.Show();
            _bLogout = true;

            AuditViewerBusiness.InsertAuditData(new Audit.Transport.Audit_History
            {
                AuditModuleName = ModuleName.Logout,
                Audit_Desc = "Logout Successful for User-" + SecurityHelper.CurrentUser.UserName,
                Audit_Screen_Name = "Logout",
                AuditOperationType = OperationType.ADD
            });

            Close();
            objLogin.DisposeMainInstanceIfAny();
        }
        private void btnLogout_PreviewMouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {

            this.DisposeFloorView();
            var objLogin = new Login();
            objLogin.MainInstance = this;
            objLogin.Show();
            _bLogout = true;

            AuditViewerBusiness.InsertAuditData(new Audit.Transport.Audit_History
            {
                AuditModuleName = ModuleName.Logout,
                Audit_Desc = "Logout Successful for User-" + SecurityHelper.CurrentUser.UserName,
                Audit_Screen_Name = "Logout",
                AuditOperationType = OperationType.ADD
            });

            Close();
            objLogin.DisposeMainInstanceIfAny();
        }