コード例 #1
0
        private void UpdateWatermark(HTMLPreferencesDlg prefs)
        {
            m_PrefsDlg.SetWatermark(prefs.WatermarkPath, prefs.WatermarkEnabled);
            m_HtmlEditControl.LastBrowsedImageFolder = prefs.LastBrowsedImageFolder;

            UpdateControlPreferences();
        }
コード例 #2
0
        // --------------------------------------------------------------------------------------

        public HTMLContentControlCore(String typeId, IntPtr hwndParent, Translator trans)
        {
            m_TypeID          = typeId;
            m_HwndParent      = hwndParent;
            m_Trans           = trans;
            m_ControlsFont    = new Font("Tahoma", 8);
            m_HtmlEditControl = new TDLHtmlEditorControl(m_ControlsFont, m_Trans);
            m_PrefsDlg        = new HTMLPreferencesDlg(m_ControlsFont, m_Trans);

            if (s_CoreList.Count > 0)
            {
                UpdateWatermark(s_CoreList.First().m_PrefsDlg);
            }

            s_CoreList.Add(this);

            InitializeComponent();
        }