Exemplo n.º 1
0
        protected override void PutSettings()
        {
            ListItem.Select(CmbLanguages, GetString(OptionNames.Localization.LanguageID), StringComparer.OrdinalIgnoreCase);
            uiThemesDropDownList1.SelectedTheme = GetString(OptionNames.Appearances.UIThemeName);
            CmbSaveTabs.Value          = GetValue(OptionNames.Miscellaneous.SaveTabs, SaveTabsType.Ask);
            CkbAssociate.Checked       = AssociationHelper.TestBmdAssociation();
            CkbSaveRecentFiles.Checked = GetValue(OptionNames.Miscellaneous.SaveRecentFiles, true);

            CkbShowLineCap.Checked      = GetBool(OptionNames.Charts.ShowLineArrowCap);
            CkbShowRemarkIcon.Checked   = GetBool(OptionNames.Charts.ShowRemarkIcon);
            BtnDefaultFont.SelectedFont = GetValue <Font>(OptionNames.Charts.DefaultFont);

            CkbPrintDocumentTitle.Checked = GetBool(OptionNames.PageSettigs.PrintDocumentTitle);
        }
Exemplo n.º 2
0
 void CkbAssociate_CheckedChanged(object sender, EventArgs e)
 {
     if (!CkbAssociate_ChangeBySelf && CkbAssociate.Checked != AssociationHelper.TestBmdAssociation())
     {
         CkbAssociate_ChangeBySelf = true;
         try
         {
             AssociationHelper.RegisterDocType(CkbAssociate.Checked);
         }
         catch (System.Exception ex)
         {
             this.ShowMessage(ex);
         }
         Thread.Sleep(500);
         CkbAssociate.Checked      = AssociationHelper.TestBmdAssociation();
         CkbAssociate_ChangeBySelf = false;
     }
 }