Exemplo n.º 1
0
        public Form17()
        {
            InitializeComponent();

            // Initialize MaterialManager
            materialManager = MaterialManager.Instance;

            // Set this to false to disable backcolor enforcing on non-materialSkin components
            // This HAS to be set before the AddFormToManage()
            materialManager.EnforceBackcolorOnAllComponents = true;

            // MaterialManager properties
            materialManager.AddFormToManage(this);
            materialManager.Theme       = MaterialManager.Themes.LIGHT;
            materialManager.ColorScheme = new MaterialColorScheme(MaterialPrimary.Indigo500, MaterialPrimary.Indigo700, MaterialPrimary.Indigo100, MaterialAccent.Pink200, MaterialTextShade.WHITE);

            // Add dummy data to the listview
            seedListView();
            materialCheckListBox11.Items.Add("Item1", false);
            materialCheckListBox11.Items.Add("Item2", true);
            materialCheckListBox11.Items.Add("Item3", true);
            materialCheckListBox11.Items.Add("Item4", false);
            materialCheckListBox11.Items.Add("Item5", true);

            materialComboBox6.SelectedIndex = 0;
        }
Exemplo n.º 2
0
        public Material()
        {
            InitializeComponent();

            MManager = MaterialManager.Instance;
            MManager.AddFormToManage(this);
            MManager.Theme       = MaterialManager.Themes.DARK;
            MManager.ColorScheme = new MaterialColorScheme(MaterialPrimary.BlueGrey800, MaterialPrimary.BlueGrey900, MaterialPrimary.BlueGrey500, MaterialAccent.LightBlue200, MaterialTextShade.WHITE);
        }
Exemplo n.º 3
0
        private MaterialFlexibleForm()
        {
            InitializeComponent();

            //Try to evaluate the language. If this fails, the fallback language English will be used
            _ = System.Enum.TryParse <TwoLetterISOLanguageID>(CultureInfo.CurrentUICulture.TwoLetterISOLanguageName, out languageID);

            KeyPreview = true;
            KeyUp     += MaterialFlexibleForm_KeyUp;

            MaterialManager = MaterialManager.Instance;
            MaterialManager.AddFormToManage(this);
            FONT = MaterialManager.GetFontByType(MaterialManager.FontType.Body1);
        }