4    chk    CheckBox    选择选项
代码如下:
    namespace AdvancedFTPServer
{
    public partial class frmCommonSettings : Form
    {
        public frmCommonSettings()
        {
            InitializeComponent();
            LoadSettings();
        }

        void LoadSettings()
        {
            txtDateTimeFormat.Text = ApplicationSettings.DateTimeFormat;

            chkDisplayNotifyIcon.Checked = ApplicationSettings.EnableNotifyIcon;
            chkChangeFTPFoldrsIcon.Checked = ApplicationSettings.ChangeFTPFoldersIcon;
            //chkEnableAPD.Checked = ApplicationSettings.DefineFileAccessPermission;
            //chkDisplayQuickConfigure.Checked = ApplicationSettings.EnableQuickConfigMenu;
            chkAutoSendErrorReport.Checked = ApplicationSettings.AutoSendErrorReport;
            chkMoveFilesToRecycleBin.Checked = ApplicationSettings.MoveDeletedFilesToRecycleBin;
        }//载入初始化设置

        void Save_Click(object sender, EventArgs e)
        {
            if (!chkDisplayNotifyIcon.Checked && !ApplicationSettings.AutoStartHTTP)
            {
                MessageBox.Show("HTTP service is already disabled. Notify icon option is required for Management.", "Advanced FTP Server");
                chkDisplayNotifyIcon.Checked = true;
                return;
            }

            ApplicationSettings.DateTimeFormat = txtDateTimeFormat.Text;

            ApplicationSettings.EnableNotifyIcon = chkDisplayNotifyIcon.Checked;
            ApplicationSettings.ChangeFTPFoldersIcon = chkChangeFTPFoldrsIcon.Checked;
            //ApplicationSettings.DefineFileAccessPermission = chkEnableAPD.Checked;
            //ApplicationSettings.EnableQuickConfigMenu = chkDisplayQuickConfigure.Checked;
            ApplicationSettings.AutoSendErrorReport = chkAutoSendErrorReport.Checked;
            ApplicationSettings.MoveDeletedFilesToRecycleBin = chkMoveFilesToRecycleBin.Checked;

            ApplicationSettings.SaveSettings();
            Close();
        }//保存设置
上一篇:造币机械生产车间信息管理系统分析与研究
下一篇:C#的家庭理财系统软件设计+ER图

基于Apriori算法的电影推荐

PHP+IOS的会议管理系统的设计+ER图

数据挖掘在电子商务中的应用

数据挖掘的主题标绘数据获取技术与实现

基于PageRank算法的网络数据分析

基于神经网络的验证码识别算法

基于网络的通用试题库系...

医院财务风险因素分析及管理措施【2367字】

中国学术生态细节考察《...

C#学校科研管理系统的设计

神经外科重症监护病房患...

承德市事业单位档案管理...

国内外图像分割技术研究现状

公寓空调设计任务书

志愿者活动的调查问卷表

10万元能开儿童乐园吗,我...

AT89C52单片机的超声波测距...