コード例 #1
0
 /// <summary>
 /// Creates a new instance of FAMonthViewContainer which hosts a <see cref="FAMonthView"/> control in popup mode.
 /// </summary>
 /// <param name="ownerControl"></param>
 public FAMonthViewContainer(Control ownerControl)
 {
     hook    = new FAHookPopup(this);
     mv      = new FAMonthView(true);
     mv.Dock = DockStyle.Fill;
     Size    = new Size(mv.Size.Width - 2, mv.Size.Height - 2);
     Controls.Add(mv);
     mv.IsPopupMode  = true;
     serviceObject   = popupServiceControl;
     RealBounds      = new Rectangle(mv.Bounds.X, mv.Bounds.Y, mv.Bounds.Width, mv.Bounds.Height);
     Parent          = owner;
     FormBorderStyle = FormBorderStyle.FixedToolWindow;
     ControlBox      = false;
     owner           = ownerControl;
     SetStyle(ControlStyles.Opaque, true);
     ShadowSize  = 3;
     RightToLeft = ownerControl.RightToLeft;
 }
コード例 #2
0
 /// <summary>
 /// Creates a new instance of FAMonthViewContainer which hosts a <see cref="FAMonthView"/> control in popup mode.
 /// </summary>
 /// <param name="ownerControl"></param>
 public FAMonthViewContainer(Control ownerControl)
 {
     hook = new FAHookPopup(this);
     mv = new FAMonthView(true);
     mv.Dock = DockStyle.Fill;
     Size = new Size(mv.Size.Width - 2, mv.Size.Height - 2);
     Controls.Add(mv);
     mv.IsPopupMode = true;
     serviceObject = popupServiceControl;
     base.RealBounds = new Rectangle(mv.Bounds.X, mv.Bounds.Y, mv.Bounds.Width, mv.Bounds.Height);
     Parent = owner;
     FormBorderStyle = FormBorderStyle.FixedToolWindow;
     ControlBox = false;
     owner = ownerControl;
     SetStyle(ControlStyles.Opaque, true);
     base.ShadowSize = 3;
     base.RightToLeft = ownerControl.RightToLeft;
 }