Exemplo n.º 1
0
        private void clickSwitchLayout(object sender, EventArgs e)
        {
            char layoutChar = ' ';

            if (layout is DarkLayout)
            {
                layout     = new LightLayout();
                layoutChar = 'L';
            }
            else
            {
                layout     = new DarkLayout();
                layoutChar = 'D';
            }
            updateLayout();
            m.saveLayout(layoutChar);
        }
Exemplo n.º 2
0
 public View(Controller inController, Model inModel)
 {
     c = inController;
     c.setView(this);
     m = inModel;
     InitializeComponent();
     if (m.loadLayout().Equals('D'))
     {
         layout = new DarkLayout();
     }
     else
     {
         layout = new LightLayout();
     }
     c.changeToARMode();
     updateLayout();
 }