Exemple #1
0
        private void InitializeNavibar()
        {
            z80_Navigation1 = new Z80_Navigation()
            {
                Dock = DockStyle.Left,
                Size = new Size(200, Width)
            };
            z80_Navigation1.Initialize(new List <NavBarItem>(), new ThemeSelector(Theme.RoyalBlue).CurrentTheme);
            Controls.Add(z80_Navigation1);

            NaviBarControl.SelectedItem += NaviBar_SelectedItem;
        }
        public PresentorMain(MetroViewMain view)
        {
            this._view        = view;
            _context          = new ApplicationContext();
            z80               = _view.Z80Navigation;
            z80.SelectedItem += NavigationBarSelectedItem;
            //определяем события кнопок
            _view.AddButtonClicked    += AddButtonClickedMainPresentor;
            _view.EditButtonClicked   += EditButtonClickedMainPresentor;
            _view.DeleteButtonClicked += DeleteButtonClickedMainPresentor;

            _view.ExcelButtonClicked += ExcelButtonClickedMainPresentor;
            ////////////////////////////////////////////////////////////////////////////////////
        }
Exemple #3
0
        public Form1()
        {
            InitializeComponent();
            var z80Navigation1 = new Z80_Navigation();

            splitContainer1.Panel1.Controls.Add(z80Navigation1);

            z80Navigation1.Dock     = DockStyle.Fill;
            z80Navigation1.Location = new Point(0, 0);
            z80Navigation1.Name     = "z80_Navigation1";
            z80Navigation1.TabIndex = 0;

            BackColor = new ThemeSelector(Theme.Dark).CurrentTheme.ItemDisableBackgroudColor;

            tabControl1.ItemSize = new Size(0, 1);
            tabControl1.SizeMode = TabSizeMode.Fixed;

            z80Navigation1.SelectedItem += Z80_Navigation1_SelectedItem;
            z80Navigation1.Initialize(new DemoItems().Sample1,
                                      new ThemeSelector(Theme.Dark).CurrentTheme);
            z80Navigation1.ItemSelect(0);
        }