Exemplo n.º 1
0
        /// <summary>
        /// The background image list has changed.
        /// E.g., by having an image added or deleted.
        /// </summary>
        public void HandleBackgroundImageListChanged(BgImages bgis)
        {
            m_doc.HasUnsavedChanges = true;
            BgImageListForm win = bgis.BgImageListWindow;

            if (win != null)
            {
                win.RecalcScrollHeights();
                win.AdjustScrollbar();
            }
        }
Exemplo n.º 2
0
        public BgImages(Document doc)
        {
            m_doc = doc;
            m_bgimages = new Dictionary<int, BgImage>();
            m_bgiCurrent = null;

            if (m_doc.Owner != null)
            {
                m_winBgImageList = new BgImageListForm(m_doc.Owner, this); ;
                m_winBgImage = new BgImageForm(m_doc.Owner, null);
            }
        }
Exemplo n.º 3
0
        public BgImages(Document doc)
        {
            m_doc        = doc;
            m_bgimages   = new Dictionary <int, BgImage>();
            m_bgiCurrent = null;

            if (m_doc.Owner != null)
            {
                m_winBgImageList = new BgImageListForm(m_doc.Owner, this);;
                m_winBgImage     = new BgImageForm(m_doc.Owner, null);
            }
        }