예제 #1
0
        public scrDashBoard()
        {
            InitializeComponent();
            var materialSkinManager = MaterialSkinManager.Instance;

            materialSkinManager.AddFormToManage(this);
            materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT;

            materialSkinManager.ColorScheme = new ColorScheme(
                Primary.Red900, //Color dialog
                Primary.Red900, //Color control buttons
                Primary.Blue400,
                Accent.LightBlue200,
                TextShade.WHITE
                );

            ucInventoryPanel1.principal = this;
            scrLogin scrLogin = new scrLogin {
                scrDashBoard = this
            };

            scrLogin.ShowDialog();
            lbUserName.Text = user_name;
            UserControlConfig(0);
        }
예제 #2
0
        private void btnChangeUser_Click(object sender, EventArgs e)
        {
            scrLogin scrLogin = new scrLogin {
                scrDashBoard = this
            };

            scrLogin.ShowDialog();
            lbUserName.Text = user_name;
            UserControlConfig(0);
        }