public MainForm() { InitializeComponent(); int XS = 68; ClientSize = new Size(XS * 16, XS * 9); fTimer = new Timer(this.components); fTimer.Interval = 1000; fTimer.Tick += this.Timer1Tick; fModel = new ALModel(this); fNavigationStack = new NavigationStack <DataPanel>(); fPanels = new Dictionary <Type, DataPanel>(); fDrawingHelper = new DrawingHelper(this); fTray = new ALTray(this); ALSettings.Instance.LoadFromFile(Path.Combine(AppHost.GetAppDataPath(), "AquaMate.ini")); SetSettings(); UpdateControls(); Icon = new Icon(UIHelper.LoadResourceStream("icon_aquamate.ico")); btnPrev.Image = UIHelper.LoadResourceImage("btn_left.gif"); btnNext.Image = UIHelper.LoadResourceImage("btn_right.gif"); miExit.Image = UIHelper.LoadResourceImage("btn_exit.gif"); miSettings.Image = UIHelper.LoadResourceImage("btn_tools.gif"); btnPrev.Tag = MainView.Prev; btnNext.Tag = MainView.Next; btnTanks.Tag = MainView.Tanks; btnInhabitants.Tag = MainView.Inhabitants; btnSpecies.Tag = MainView.Species; btnDevices.Tag = MainView.Devices; btnBudget.Tag = MainView.Budget; btnNotes.Tag = MainView.Notes; btnMaintenance.Tag = MainView.Maintenance; btnTransfers.Tag = MainView.Transfers; btnTSDB.Tag = MainView.TSDB; btnNutrition.Tag = MainView.Nutrition; btnMeasures.Tag = MainView.Measures; btnSchedule.Tag = MainView.Schedule; btnInventory.Tag = MainView.Inventory; btnSnapshots.Tag = MainView.Snapshots; SetView(MainView.Tanks, null); Localizer.FindLocales(); ApplySettings(); }