Пример #1
0
        // Called in UI thread
        public override void PostInit()
        {
            RefreshProcess();
            InitProcessItems();

            // check user settings if a previous process has been selected
            string lastProcessName = MemoScopeSettings.Instance.LastProcessName;

            if (string.IsNullOrEmpty(lastProcessName))
            {
                return;
            }

            var lastProcess = cbProcess.Items.Cast <ProcessWrapper>().FirstOrDefault(pw => pw.Process.ProcessName == lastProcessName);

            if (lastProcess != null)
            {
                cbProcess.SelectedItem = lastProcess;
                proc = lastProcess;
            }
            processInfoViewer.ProcessWrapper  = proc;
            processTriggersControl.MessageBus = MessageBus;
        }
Пример #2
0
 public DumpRequest(ProcessWrapper processWrapper) => ProcessWrapper = processWrapper;