public void New() { Root = new DataRoot(); Root.ClusterConnections.Add(new ClusterConnection() { Description = "kubectl proxy", Url = "http://localhost:8001/", Comments = "setup proxy with command: kubectl proxy --port=8001" }); }
public void Load() { try { Root = null; if (File.Exists(SettingsFullname)) { Root = DeSerializeObject <DataRoot>(SettingsFullname); } if (Root == null) { New(); } } catch (Exception exception) { MessageBox.Show(exception.Message, "Error while reading configuration", MessageBoxButton.OK, MessageBoxImage.Warning); New(); } }