Example #1
0
        public WeblogAccountPreferencesPanel()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            groupBoxOptions.Text              = Res.Get(StringId.Options);
            checkBoxAllowAutoUpdate.Text      = Res.Get(StringId.AllowAutoUpdate);
            checkBoxAllowProviderButtons.Text = Res.Get(StringId.AllowProviderExtensions);
            PanelName = Res.Get(StringId.PanelNameAccounts);

            PanelBitmap = ResourceHelper.LoadAssemblyResourceBitmap("Configuration.Accounts.Images.AccountPanelBitmap.png");

            // initialize preferences
            _weblogAccountPreferences = new WeblogAccountPreferences();
            _weblogAccountPreferences.PreferencesModified += new EventHandler(_weblogAccountPreferences_PreferencesModified);

            checkBoxAllowAutoUpdate.Checked         = _weblogAccountPreferences.AllowSettingsAutoUpdate;
            checkBoxAllowAutoUpdate.CheckedChanged += new EventHandler(checkBoxAllowAutoUpdate_CheckedChanged);

            checkBoxAllowProviderButtons.Checked         = _weblogAccountPreferences.AllowProviderButtons;
            checkBoxAllowProviderButtons.CheckedChanged += new EventHandler(checkBoxAllowProviderButtons_CheckedChanged);
        }
        public WeblogAccountPreferencesPanel()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            groupBoxOptions.Text = Res.Get(StringId.Options);
            checkBoxAllowAutoUpdate.Text = Res.Get(StringId.AllowAutoUpdate);
            checkBoxAllowProviderButtons.Text = Res.Get(StringId.AllowProviderExtensions);
            PanelName = Res.Get(StringId.PanelNameAccounts);

            PanelBitmap = ResourceHelper.LoadAssemblyResourceBitmap("Configuration.Accounts.Images.AccountPanelBitmap.png");

            // initialize preferences
            _weblogAccountPreferences = new WeblogAccountPreferences();
            _weblogAccountPreferences.PreferencesModified += new EventHandler(_weblogAccountPreferences_PreferencesModified);

            checkBoxAllowAutoUpdate.Checked = _weblogAccountPreferences.AllowSettingsAutoUpdate;
            checkBoxAllowAutoUpdate.CheckedChanged += new EventHandler(checkBoxAllowAutoUpdate_CheckedChanged);

            checkBoxAllowProviderButtons.Checked = _weblogAccountPreferences.AllowProviderButtons;
            checkBoxAllowProviderButtons.CheckedChanged += new EventHandler(checkBoxAllowProviderButtons_CheckedChanged);

        }