Пример #1
0
        public UIParent()
        {
            InitializeComponent();
            AutoScaleMode = AutoScaleMode.Dpi;
            MDIForm       = this;

            CreateStandardControls();
            m_deserializeDockContent             = new DeserializeDockContent(GetContentFromPersistString);
            vsToolStripExtender1.DefaultRenderer = _toolStripProfessionalRenderer;
            this.dockPanel.Theme = this.vS2015LightTheme1;
            this.EnableVSRenderer(VisualStudioToolStripExtender.VsVersion.Vs2015, vS2015LightTheme1);
            this.dockPanel.AllowEndUserDocking = !dockPanel.AllowEndUserDocking;
            SetSchema("VS2015Blue");
            m_toolbox.Show(dockPanel);
            m_toolbox.CloseButtonVisible = false;
            m_toolbox.Dock           = DockStyle.None;
            toolStripStatusDate.Text = DateTime.Today.ToString("dddd dd MMM yyyy");
            //  CreateStatusBar();
        }
        private void btnLogin_Click(object sender, EventArgs e)
        {
            bool flag = this.ControlValidation();

            if (flag)
            {
                bool flag2 = !string.IsNullOrWhiteSpace(this.txtUserID.Text.Trim()) && !string.IsNullOrWhiteSpace(this.txtPassword.Text.Trim());
                if (flag2)
                {
                    bool flag3 = this.ValidateUser();
                    if (flag3)
                    {
                        base.Hide();
                        UIParent uIParent = new UIParent();
                        uIParent.Show();
                    }
                    else
                    {
                        MessageBox.Show("Wrong User Id or Password, Please try again.", "User Login", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                        this.txtUserID.Select();
                    }
                }
            }
        }