Exemplo n.º 1
0
 public CustomDesign(Size SandBoxSizeValue, Point SandBoxLocationValue,
                     Image SandBoxBackGroundImageValue, Color SandBoxBackColorValue,
                     SandBoxBase TheSandBoxValue,
                     ControlCollection CustomControlCollectionValue = null,
                     ButtonsOnSandBox SandBoxButtonsValue           = null,
                     double SandBoxOpacityValue  = 1,
                     bool ShowInTaskBarValue     = false,
                     bool SandBoxKeyPreviewValue = false,
                     bool DontSetSize            = false,
                     bool DontSetLocation        = false,
                     bool supportTransParentBackGroundColorsValue = false)
 {
     SandBoxSize                        = SandBoxSizeValue;
     SandBoxLocation                    = SandBoxLocationValue;
     SandBoxBackGroundImage             = SandBoxBackGroundImageValue;
     SandBoxBackColor                   = SandBoxBackColorValue;
     TheSandBox                         = TheSandBoxValue;
     CustomControlCollection            = CustomControlCollectionValue;
     SandBoxButtons                     = SandBoxButtonsValue;
     SandBoxOpacity                     = SandBoxOpacityValue;
     ShowInTaskBar                      = ShowInTaskBarValue;
     SandBoxKeyPreview                  = SandBoxKeyPreviewValue;
     Dont_Set_Size                      = DontSetSize;
     Dont_Set_Location                  = DontSetLocation;
     SupportTransParentBackGroundColors = supportTransParentBackGroundColorsValue;
 }
Exemplo n.º 2
0
 public void SetTheHighestSandBox(SandBoxBase mySandBox)
 {
     if (IsShowingAnotherSandBox && ShowingAnotherSandBox != null)
     {
         Enabled = false;
         ShowingAnotherSandBox.Enabled = false;
         ShowingAnotherSandBox.SetTheHighestSandBox(mySandBox);
     }
     else
     {
         IsShowingAnotherSandBox = true;
         ShowingAnotherSandBox   = mySandBox;
         mySandBox.Focus();
     }
 }