示例#1
1
 public Setting(Login login)
 {
     InitializeComponent();;
     _login = login;
     materialSkinManager = _login._main.materialSkinManager;
     materialSkinManager.AddFormToManage(this);
 }
示例#2
0
 public Notes(Login login)
 {
     InitializeComponent();
     login._main.materialSkinManager.AddFormToManage(this);
     _login = login;
     //metroLink1.BackColor = ColorTranslator.FromHtml("#42a5f5");
     metroLink1.Enabled = false;
 }
示例#3
0
 public Main()
 {
     InitializeComponent();
     materialSkinManager = MaterialSkinManager.Instance;
     materialSkinManager.ColorScheme = new ColorScheme(Primary.Blue400, Primary.LightBlue800, Primary.BlueGrey400,
                                                        Accent.LightBlue400, TextShade.WHITE);
     if (Settings.Default.LightTheme)
     {
         materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT;
     }
     else
     {
         materialSkinManager.Theme = MaterialSkinManager.Themes.DARK;
     }
     materialSkinManager.AddFormToManage(this);
     if (!DesignMode)
     {
         if (silentStart) System.Threading.Thread.Sleep(2000);
         _login = new Login(this);
     }
 }