private void btnEditServerProfile_Click(object sender, RoutedEventArgs e) { var addServerDialog = new AddServerDialog(ManageProcess.Update, _config.GetServerProfile(new Guid(((Button)sender).Tag.ToString()))); if (addServerDialog.ShowDialog() == true) { ChangedServer = addServerDialog.ChangedProfile; } }
private void btnAddServerProfile_Click(object sender, RoutedEventArgs e) { try { var addServerDialog = new AddServerDialog(ManageProcess.Add); if (addServerDialog.ShowDialog() == true) { NewServer = addServerDialog.ChangedProfile; } } catch (Exception ex) { Task.Run(() => Logger.Log(ex.Message, true)); } }