private void OnCutClicked(bool fileMode) { var cutLists = fileMode ? GetFileMatches() : GetCutMatches(); if (cutLists.FileCuts.Count == 0) { _app.LogError("No cut/file selected or none has a protocol that can be written"); return; } _app.SaveBothConfigs(); _app.DisableUiNonThreadSafe(); _app.JoinJobThread(); _app.StartJobThread(DemoCutThread, cutLists); }
private void OnGoClicked() { var demos = _app.SelectedWriteDemos; if (demos == null) { return; } _app.SaveBothConfigs(); _app.DisableUiNonThreadSafe(); _app.JoinJobThread(); var filePaths = new List <string>(); foreach (var demo in demos) { filePaths.Add(demo.FilePath); } _app.StartJobThread(DemoCutThread, filePaths); }
private void DoAction(PatternAction action) { _app.SaveBothConfigs(); DoAction(action, (uint)_app.Config.PatternsSelectionBitMask, false); }