internal static void CreateNewFile(bool?value) { Cryption cryption; if (value.GetValueOrDefault()) { cryption = new Cryption(true); } else { cryption = new Cryption(false); } cryption.Show(); App.Current.MainWindow.Close(); }
internal static void OpenFile(string location, string pass) { byte[] data = CallOpenFileDialogB(location); Cryption cryption = new Cryption(false); DataCrypto dataCrypto = new DataCrypto(); cryption.dataContent.Text = dataCrypto.OpenSSLDecrypt(data, pass); data = null; dataCrypto = null; pass = ""; if (cryption.dataContent.Text.Equals("")) { cryption = null; return; } cryption.Show(); App.Current.MainWindow.Close(); }