Inheritance: System.Windows.Forms.Form
Example #1
0
        private void buttonEditFolders_Click(object sender, EventArgs e)
        {
            hMailServer.Settings settings = APICreator.Application.Settings;
             hMailServer.IMAPFolders publicFolders = settings.PublicFolders;

             formAccountFolders accountFoldersDlg = new formAccountFolders(publicFolders, true);
             accountFoldersDlg.ShowDialog();

             Marshal.ReleaseComObject(settings);
             Marshal.ReleaseComObject(publicFolders);
        }
Example #2
0
        private void buttonEditFolders_Click(object sender, EventArgs e)
        {
            if (_representedAccount == null)
            {
                MessageBox.Show("The account must be saved first.", EnumStrings.hMailServerAdministrator);
                return;
            }

            formAccountFolders accountFoldersDlg = new formAccountFolders(_representedAccount.IMAPFolders, false);
            accountFoldersDlg.ShowDialog();
        }