public void LoadData()
{
hMailServer.Settings settings = APICreator.Application.Settings;
hMailServer.Logging logging = settings.Logging;
checkEnableLogging.Checked = logging.Enabled;
chkLogApplication.Checked = logging.LogApplication;
checkLogSMTP.Checked = logging.LogSMTP;
checkLogPOP3.Checked = logging.LogPOP3;
checkLogIMAP.Checked = logging.LogIMAP;
checkLogTCPIP.Checked = logging.LogTCPIP;
checkLogDebug.Checked = logging.LogDebug;
checkLogAWStats.Checked = logging.AWStatsEnabled;
checkKeepFilesOpen.Checked = logging.KeepFilesOpen;
EnableDisable();
Marshal.ReleaseComObject(settings);
Marshal.ReleaseComObject(logging);
}