public Setting(Login login) { InitializeComponent();; _login = login; materialSkinManager = _login._main.materialSkinManager; materialSkinManager.AddFormToManage(this); }
public Notes(Login login) { InitializeComponent(); login._main.materialSkinManager.AddFormToManage(this); _login = login; //metroLink1.BackColor = ColorTranslator.FromHtml("#42a5f5"); metroLink1.Enabled = false; }
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); } }