/// <summary> /// button to edit an existin server (currently selcted) server /// </summary> public void ButtonEditServer(object sender, RoutedEventArgs e) { var srvWindow = new ServerWindow(); srvWindow.SetInfo((ServerInfo)serverList.SelectedItem); srvWindow.ShowDialog(); RefreshServerList(); SaveServerList(); }
/// <summary> /// button to add a new server /// </summary> public void ButtonAddServer(object sender, RoutedEventArgs e) { var srvWindow = new ServerWindow(); srvWindow.SetInfo(new ServerInfo()); srvWindow.ShowDialog(); RefreshServerList(); SaveServerList(); }