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); }
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(); }