예제 #1
0
파일: MozPane.cs 프로젝트: filmee24/Paint
            public void Add(MozItemCollection mozItems)
            {
                if (mozItems == null)
                {
                    throw new ArgumentNullException("mozItems");
                }

                for (int i = 0; i < mozItems.Count; i++)
                {
                    Add(mozItems[i]);
                }
            }
예제 #2
0
파일: MozPane.cs 프로젝트: filmee24/Paint
        public MozPane()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // TODO: remove the following lines after you know the resource names

            // This call is required by the Windows.Forms Form Designer.
            components = new Container();

            SetStyle(ControlStyles.DoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            SetStyle(ControlStyles.ContainerControl, true);

            m_mozItemCollection = new MozItemCollection(this);

            // Enable Autoscroll
            AutoScroll = true;

            m_padding = new PaddingCollection(this);
            m_colorCollection = new ColorCollection(this);
            m_borderStyleCollection = new BorderStyleCollection(this);
            m_themeManager = new ThemeManager();
            m_selectButton = MozSelectButton.Left;
            m_style = MozPaneStyle.Vertical;
            m_toggle = false;
            m_maxSelectedItems = 1;
            m_selectedItems = 0;

            m_useTheme = false;
            m_theme = IntPtr.Zero;

            // Listen for changes to the parent
            ParentChanged += OnParentChanged;


            beginUpdateCount = 0;

            deserializing = false;
            initialising = false;

            m_borderColor = Color.FromArgb(127, 157, 185);
            BackColor = Color.White;
            m_borderStyle = ButtonBorderStyle.Solid;
        }
예제 #3
0
파일: MozPane.cs 프로젝트: filmee24/Paint
 public MozItemCollection(MozPane owner, MozItemCollection mozItems) : this(owner)
 {
     Add(mozItems);
 }