예제 #1
0
        public void AddPage(string Name, UserControl Content)
        {
            MaterialToolStripMenuItem objNeuesItem = new MaterialToolStripMenuItem();

            objNeuesItem.Text   = Name;
            objNeuesItem.Name   = Name;
            objNeuesItem.Tag    = Content;
            objNeuesItem.Click += OpenPage;
            objNeuesItem.PerformClick();
            SettingsDrawerItems.Items.Add(objNeuesItem);
        }
예제 #2
0
        public MaterialSettings(MaterialForm Parent)
        {
            _IgnoreActivate = false;
            StartPosition   = FormStartPosition.Manual;

            Opacity   = 0;
            _BaseForm = Parent;
            SkinManager.AddFormToManage(this);
            MinimizeBox = false;
            MaximizeBox = false;


            InitializeComponent();



            _ThemeSettingsToolStripItem      = new MaterialToolStripMenuItem();
            _ThemeSettingsToolStripItem.Text = "Theme";
            MaterialThemeSettings objSettings = new MaterialThemeSettings(_BaseForm, this);

            objSettings.Dock = DockStyle.Fill;
            _ThemeSettingsToolStripItem.Tag = objSettings;
        }