private async void mIUpdatePluginAssembly_Click(object sender, RoutedEventArgs e)
        {
            var entity = GetSelectedEntity();

            if (entity == null)
            {
                return;
            }

            var service = await GetService();

            var repository = new PluginAssemblyRepository(service);

            var assembly = await repository.GetAssemblyByIdRetrieveRequestAsync(entity.Id);

            System.Threading.Thread worker = new System.Threading.Thread(() =>
            {
                try
                {
                    var form = new WindowPluginAssembly(_iWriteToOutput, service, assembly, null, null);

                    form.ShowDialog();
                }
                catch (Exception ex)
                {
                    DTEHelper.WriteExceptionToOutput(null, ex);
                }
            });

            worker.SetApartmentState(System.Threading.ApartmentState.STA);

            worker.Start();
        }
        private async void btnNewPluginAssembly_Click(object sender, RoutedEventArgs e)
        {
            var service = await GetService();

            var assembly = new PluginAssembly();

            var form = new WindowPluginAssembly(_iWriteToOutput, service, assembly, null, null);

            if (form.ShowDialog().GetValueOrDefault())
            {
                ShowExistingPluginAssemblies();
            }
        }