public void Load() { try { if (File.Exists <TacAtomicClockMain>(filename)) { ConfigNode config = ConfigNode.Load(filename); this.Log("loaded from file: " + config); settings.Load(config); mainWindow.Load(config); settingsWindow.Load(config); helpWindow.Load(config); if (Observers != null) { Observers(mainWindow.IsVisible()); } } else { this.Log("failed to load file: file does not exist"); } } catch (Exception ex) { this.LogWarning("failed to load config file: " + ex.Message + "\n" + ex.StackTrace); } }
private void Load() { if (File.Exists <FuelBalanceController>(configFilename)) { ConfigNode config = ConfigNode.Load(configFilename); settings.Load(config); mainWindow.Load(config); settingsWindow.Load(config); helpWindow.Load(config); } }
private void Load() { //if (File.Exists<FuelBalanceController>(configFilename)) if (System.IO.File.Exists(configFilename)) { ConfigNode config = ConfigNode.Load(configFilename); settings.Load(config); mainWindow.Load(config); #if false settingsWindow.Load(config); #endif helpWindow.Load(config); } }