コード例 #1
0
        private void Launch()
        {
            var loaderDomain = AppDomainFactory.CreateWithShadowCopy();

            try
            {
                using (var dialog = RuleSetDialogFactory.Get(loaderDomain, (TypeInfo)ActivityTypesListBox.SelectedItem,
                                                             RuleSetFileNameTextBox.Text))
                {
                    Hide();
                    dialog.ShowDialog();
                }
            }
            finally
            {
                try
                {
                    Show();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }

                AppDomain.Unload(loaderDomain);
            }
        }
コード例 #2
0
 private Form GetRuleSetDialog(TypeInfo typeInfo)
 {
     return(RuleSetDialogFactory.Get(_loaderDomain, typeInfo, "test fileName"));
 }