private IEnumerable <Entities.ObfuscationInfo> LoadOperations() { var serializer = new FileSerializer(); var obfuscationOps = serializer.LoadObfuscationOps(fileOfuscationOps); return(obfuscationOps); }
private void BtnLoadOps_Click(object sender, EventArgs e) { var loadDialog = new OpenFileDialog(); var dialogResult = loadDialog.ShowDialog(); if (dialogResult == DialogResult.Cancel) { return; } if (_cancellationTokenSource?.Token.CanBeCanceled ?? false) { _cancellationTokenSource.Cancel(); } var serializer = new FileSerializer(); var obfuscationOps = serializer.LoadObfuscationOps(loadDialog.FileName); SetObfuscationOps(obfuscationOps.Select(x => new ObfuscationParser(x))); lbObfuscationOps.Focus(); SetStatus($"FILE: {Path.GetFileName(loadDialog.FileName)}", 0, 0); }