Example #1
0
        private void ShowTab(InteractiveButton tab, UserControl tabContainer)
        {
            Array.ForEach(_tabList, t => t.TurnOff());

            tab.TurnOn();

            if (!panelMain.Controls.Contains(tabContainer))
            {
                panelMain.Controls.Add(tabContainer);
                tabContainer.Dock = DockStyle.Fill;
            }

            tabContainer.BringToFront();
        }
Example #2
0
        public FormMain()
        {
            InitializeComponent();

            _tabCvv       = new TabButton(new BasicButton(btnCvv));
            _tabPvv       = new TabButton(new BasicButton(btnPvv));
            _tabPinBlock  = new TabButton(new BasicButton(btnPinBlock));
            _tabTripleDes = new TabButton(new BasicButton(btnTripleDes));
            _tabXor       = new TabButton(new BasicButton(btnXor));

            _tabList = new InteractiveButton[] { _tabCvv, _tabPvv, _tabPinBlock, _tabTripleDes, _tabXor };

            ShowTab(_tabCvv, UcCvv.Instance);
        }
Example #3
0
 public ButtonDecorator(InteractiveButton decorated)
 {
     Decorated = decorated;
 }
Example #4
0
 public TabButton(InteractiveButton decorated)
     : base(decorated)
 {
 }