public PeekForm(FAES_File faesFile) { InitializeComponent(); titleLabel.Text += Program.GetVersion(); base.Text = titleLabel.Text; peekPanel.LockFileSelect(true); peekPanel.SetFileToDecrypt(faesFile); if (!Program.programManager.GetSkipUpdates()) { UpdateForm updateForm = new UpdateForm(); updateForm.CheckForUpdate(); } }
public EncryptForm(FAES_File faesFile) { InitializeComponent(); titleLabel.Text += Program.GetVersion(); base.Text = titleLabel.Text; encryptPanel.LockFileSelect(true); encryptPanel.setCloseAfterOperationSuccessful(true); encryptPanel.SetFileToEncrypt(faesFile); if (Program.programManager.GetSkipUpdates()) { return; } UpdateForm updateForm = new UpdateForm(); updateForm.CheckForUpdate(); }