コード例 #1
0
ファイル: ColorPanel.cs プロジェクト: zhjh-stack/ogama
 ///////////////////////////////////////////////////////////////////////////////
 // Construction and Initializing methods                                     //
 ///////////////////////////////////////////////////////////////////////////////
 #region CONSTRUCTION
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="pt">Position of the new panel.</param>
 /// <param name="clrControl">owning control</param>
 /// <param name="currentColor">current color to use</param>
 public ColorPanel(Point pt, IColorControl clrControl, Color currentColor)
 {
     InitializeComponent();
     _currentColor      = currentColor;
     this._colorControl = clrControl;
     base.Width         = 0x9c;
     base.Height        = 100;
     if (this.autoButton != "")
     {
         base.Height += 0x17;
     }
     if (this.moreButton != "")
     {
         base.Height += 0x17;
     }
     base.CenterToScreen();
     base.Location = pt;
     base.Capture  = true;
 }
コード例 #2
0
ファイル: ColorPanel.cs プロジェクト: DeSciL/Ogama
 ///////////////////////////////////////////////////////////////////////////////
 // Construction and Initializing methods                                     //
 ///////////////////////////////////////////////////////////////////////////////
 #region CONSTRUCTION
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="pt">Position of the new panel.</param>
 /// <param name="clrControl">owning control</param>
 /// <param name="currentColor">current color to use</param>
 public ColorPanel(Point pt, IColorControl clrControl, Color currentColor)
 {
   InitializeComponent();
   _currentColor = currentColor;
   this._colorControl = clrControl;
   base.Width = 0x9c;
   base.Height = 100;
   if (this.autoButton != "")
   {
     base.Height += 0x17;
   }
   if (this.moreButton != "")
   {
     base.Height += 0x17;
   }
   base.CenterToScreen();
   base.Location = pt;
   base.Capture = true;
 }