Example #1
0
        public void SaveToConfigObject(UdtConfig config)
        {
            int time = 0;

            if (App.GetOffsetSeconds(_startTimeOffsetEditBox.Text, out time))
            {
                config.CutStartOffset = time;
            }
            if (App.GetOffsetSeconds(_endTimeOffsetEditBox.Text, out time))
            {
                config.CutEndOffset = time;
            }

            config.OutputToInputFolder = _outputModeCheckBox.IsChecked ?? false;
            config.OutputFolder        = _outputFolderTextBox.Text;
            config.InputFolder         = _inputFolderTextBox.Text;
            config.UseInputFolderAsDefaultBrowsingLocation = _useInputFolderForBrowsingCheckBox.IsChecked ?? false;
            config.OpenDemosFromInputFolderOnStartUp       = _useInputFolderOnStartUpCheckBox.IsChecked ?? false;
            config.AnalyzeOnLoad = _analyzeOnLoadCheckBox.IsChecked ?? false;
            config.MergeCutSectionsFromDifferentPatterns = _mergeCutSectionsCheckBox.IsChecked ?? false;
            config.ColorLogWarningsAndErrors             = _colorLogMessagesCheckBox.IsChecked ?? false;
            GetMaxThreadCount(ref config.MaxThreadCount);
            config.JSONPlugInsEnabled     = CreateBitMask(_jsonEnabledPlugInsCheckBoxes);
            config.PerfStatsEnabled       = CreateBitMask(_enabledPerfStatsCheckBoxes);
            config.CSharpPerfStatsEnabled = CreateBitMask(_enabledCSharpPerfStatsCheckBoxes);
        }