Example #1
0
        private void ButtonDelete_Click(object sender, RoutedEventArgs e)
        {
            // can't fetch assembly without an ID
            if (assemblyRegistration.Id == Guid.Empty)
            {
                DteHelper.ShowInfo("Can't delete a non-existent assembly.", "Non-existent assembly!");
                return;
            }

            if (DteHelper.IsConfirmed("Are you sure you want to UNregister this plugin?" +
                                      " This means that the plugin and all its steps will be deleted!", "Unregistration"))
            {
                new Thread(() =>
                {
                    try
                    {
                        assemblyRegistration.DeleteAssembly(assemblyRegistration.Id);
                        crmAssembly.Clear();
                    }
                    catch (Exception exception)
                    {
                        PopException(exception);
                    }
                    finally
                    {
                        UpdateStatus("", false);
                    }
                }).Start();
            }
        }
Example #2
0
        private void ButtonDuplicateSettings_Click(object sender, RoutedEventArgs e)
        {
            var newSettings = ObjectCopier.Clone(settingsArray.GetSelectedSettings());

            settingsArray.SettingsList.Add(newSettings);
            settingsArray.SelectedSettingsIndex = settingsArray.SettingsList.IndexOf(newSettings);

            DteHelper.ShowInfo("The profile chosen has been duplicated, and the duplicate is now the " +
                               "selected profile.", "Profile duplicated!");
        }
Example #3
0
        private void ButtonDuplicateFilter_Click(object sender, RoutedEventArgs e)
        {
            var newFilter = EntityFilter.Copy();

            newFilter.Prefix = "";
            newFilter.Suffix = "Contract";

            EntityFilterList.EntityFilters.Add(newFilter);
            DteHelper.ShowInfo("The selected profile has been duplicated, and the new profile has been selected instead.",
                               "Profile duplicated.");
            EntityFilterList.SelectedFilterIndex = EntityFilterList.EntityFilters.Count - 1;
        }
Example #4
0
        private void ButtonNewSettings_Click(object sender, RoutedEventArgs e)
        {
            var isMigrate = DteHelper.IsConfirmed("Current settings will be deleted and new settings will be created.\r\n\r\n"
                                                  + "Would you like to proceed?",
                                                  ">> WARNING << Settings Reset");

            if (isMigrate)
            {
                settings = Configuration.CreateNewSettings();
                Initialise();
                DteHelper.ShowInfo("Settings has been reset.",
                                   "Settings Reset");
            }
        }
Example #5
0
 private void ButtonSaveSettings_Click(object sender, RoutedEventArgs e)
 {
     Configuration.SaveConfigs(settingsArray);
     DteHelper.ShowInfo("All settings profiles have been saved to disk.", "Settings saved!");
 }