Exemple #1
0
        /// <summary>
        /// 添加注释
        /// </summary>
        private void AddNote(XBaseControl Control, int type)
        {
            int startX = 20;
            int startY = 310;

            foreach (XLabel item in this.noteList)
            {
                Control.RemoveRender(item);
                if (type <= 3)
                {
                    if (item.Tag != null && item.Tag.Equals(type))
                    {
                        item.Location = new Point(startX, startY);
                        startY       += item.Size.Height;
                        Control.AddRender(item);
                    }
                    else if (item.Tag == null)
                    {
                        item.Location = new Point(startX, startY);
                        startY       += item.Size.Height;
                        Control.AddRender(item);
                    }
                    else if (item.Tag != null && Convert.ToInt32(item.Tag) >= type && item.Equals(this.connectLabel))
                    {
                        item.Location = new Point(startX, startY);
                        startY       += item.Size.Height;
                        Control.AddRender(item);
                    }
                }
            }
            Control.Invalidate();
        }
Exemple #2
0
        void commonOrderListView_SizeChanged(object sender, EventArgs e)
        {
            Size size = (sender as OPMedicalTechnologyListView).Size;

            this.ContainerControl.Size = size;
            if (this.Container.Width <= this.ContainerControl.Width)
            {
                this.Container.Size = new Size(this.ContainerControl.Width, this.ContainerControl.Height);
            }
            Container.Invalidate();
            this.ContainerControl.Invalidate();
        }