private void BtnSaveOps_Click(object sender, EventArgs e) { var saveDialog = new SaveFileDialog(); var dialogResult = saveDialog.ShowDialog(); if (dialogResult == DialogResult.Cancel) { return; } var obfuscationOps = GetObfuscationOps(); var serializer = new FileSerializer(); serializer.SaveObfuscationOps(obfuscationOps, saveDialog.FileName); SetStatus($"FILE {Path.GetFileName(saveDialog.FileName)} SAVED at {DateTime.Now.ToShortTimeString()}", 0, 0); }