public ChatView() { InitializeComponent(); ChatViewModel.Instance.Controller = this; ChatViewModelBindingSource.Add(ChatViewModel.Instance); ChatViewModel.Instance.View = this; ChatViewModel.Instance.Pages = ChatTabsControl.TabPages; MaterialSkinManager materialSkinManager = MaterialSkinManager.Instance; materialSkinManager.AddFormToManage(this); materialSkinManager.Theme = MaterialSkinManager.Themes.DARK; materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE); ChatViewModel.Instance.Start(); }
public ChatView() { InitializeComponent(); ChatViewModel.Instance.Controller = this; ChatViewModelBindingSource.Add(ChatViewModel.Instance); ChatViewModel.Instance.View = this; ChatViewModel.Instance.Pages = ChatTabsControl.TabPages; // Create a material theme manager and add the form to manage (this) MaterialSkinManager materialSkinManager = MaterialSkinManager.Instance; materialSkinManager.AddFormToManage(this); materialSkinManager.Theme = MaterialSkinManager.Themes.DARK; // Configure color schema materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey700, Primary.BlueGrey600, Primary.DeepOrange300, Accent.Amber700, TextShade.WHITE); ChatViewModel.Instance.Start(); }