コード例 #1
0
        private void comboBoxProfiler_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (_isInitializing)
            {
                return;
            }
            var setup = ProfilerSettings.RUNANDAUTODETECT;

            if (comboBoxProfiler.SelectedIndex == 0)
            {
                setup = ProfilerSettings.RUN;
            }
            if (comboBoxProfiler.SelectedIndex == 1)
            {
                setup = ProfilerSettings.DONTRUN;
            }
            if (comboBoxProfiler.SelectedIndex == 2)
            {
                setup = ProfilerSettings.RUNANDAUTODETECT;
            }
            _writer.SetProfilerSetup(setup);
        }