示例#1
0
 private void menuFileConfigureSymbols_Click(object sender, EventArgs e)
 {
     using (ConfigureSymbolsForm frm = new ConfigureSymbolsForm())
     {
         frm.ShowDialog(this);
     }
 }
示例#2
0
 private void ConfigureSymbols()
 {
     if (!Properties.Settings.Default.SymbolsConfigured)
     {
         if (MessageBox.Show(this, "Symbol support has not been configured, would you like to do that now?",
                             "Configure Symbols", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             using (ConfigureSymbolsForm frm = new ConfigureSymbolsForm())
             {
                 frm.ShowDialog(this);
             }
         }
     }
 }
示例#3
0
        private void LoadProcesses <TKey>(Func <COMProcessEntry, TKey> orderby_selector)
        {
            if (!Properties.Settings.Default.SymbolsConfigured)
            {
                if (MessageBox.Show(this, "Symbol support has not been configured, would you like to do that now?",
                                    "Configure Symbols", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    using (ConfigureSymbolsForm frm = new ConfigureSymbolsForm())
                    {
                        frm.ShowDialog(this);
                    }
                }
            }

            IEnumerable <COMProcessEntry> processes = COMUtilities.LoadProcesses(this);

            if (processes != null && processes.Count() > 0)
            {
                OpenView(COMRegistryViewer.DisplayMode.Processes, processes.OrderBy(orderby_selector));
            }
        }