public CForm() { GridVisible = false; GridSize = 8; m_ElementType = LCElementType.FORM; m_Location = new PointF(0, 0); RefreshPeriod = 1000; m_Background = new CBackground(); //this.Width = ((Form)Owner).Width; //this.Height = ((Form)Owner).Height; this.BorderStyle = FormBorderStyle.Sizable; this.Dragable = true; this.PopMenuEnabled = true; this.TopMost = false; this.Scaleable = true; DrawPen.Color = System.Drawing.Color.Black; //this.ScrollVisible = false; scale = 1; Screen[] screens = Screen.AllScreens; System.Drawing.Rectangle g = screens[0].Bounds; OrgScrollSize.Width = g.Width; OrgScrollSize.Height = g.Height; }
public CBackground Clone() { CBackground clone = new CBackground(); clone.m_ImageFile = m_ImageFile != null ? (String)m_ImageFile.Clone() : null; clone.Layout = Layout; if (m_ImageFile != null && File.Exists(m_ImageFile)) { BackImage = (Bitmap)(Image.FromFile(m_ImageFile, true)); } return(clone); }