Пример #1
0
        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;
            }
        }
Пример #2
0
 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));
     }
 }