private void createSecureShareFileToolStripMenuItem_Click(object sender, EventArgs e) { ShareFileForm shareFileForm = new ShareFileForm(); if (!AccountForm.isAuthorized || AccountForm.isGuest) { AccountForm accountForm = new AccountForm(); accountForm.ShowDialog(); } shareFileForm.ShowDialog(); }