public void MoveDockedBarToFormBottomTest()
 {
     using (new SimplePadTestInitializer()) {
         DXMenu uIPaintStyleMenuBar1 = UIMap.UISimplePadCDemoWindow.UIBarDockControlCustom.UIPaintStyleMenuBar;
         Size   oldLocation          = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIPaintStyleMenuBar1.GetProperty("Location"), typeof(Size).FullName);
         this.UIMap.MoveDockedBarToFormBottom();
         DXMenu uIPaintStyleMenuBar = UIMap.UISimplePadCDemoWindow.UIBarDockControlCustom1.UIPaintStyleMenuBar;
         Size   newLocation         = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIPaintStyleMenuBar.GetProperty("Location"), typeof(Size).FullName);
         Assert.IsTrue(newLocation.Width > oldLocation.Width && newLocation.Height < oldLocation.Height);
     }
 }
 public void RestoreDefaultLayoutViaCustomizationFormTest()
 {
     using (new SimplePadTestInitializer()) {
         DXMenu uIFormatMenuBar = UIMap.UISimplePadCDemoWindow.UIBarDockControlCustom.UIFormatMenuBar;
         Size   originalSize    = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIFormatMenuBar.GetProperty("Size"), typeof(Size).FullName);
         this.UIMap.HideBarCommandsViaHoldDownALT();
         Size reducedSize = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIFormatMenuBar.GetProperty("Size"), typeof(Size).FullName);
         this.UIMap.InvokeCustomizationFormViaClickDropdownButton();
         this.UIMap.RestoreDefaultToolbarLayoutViaCustomizationForm();
         Size newSize = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIFormatMenuBar.GetProperty("Size"), typeof(Size).FullName);
         Assert.IsTrue(reducedSize.Width < newSize.Width);
         Assert.AreEqual(newSize.Width, originalSize.Width);
     }
 }
 public void HideBarCommandViaCustomizationFormTest()
 {
     using (new SimplePadTestInitializer()) {
         DXMenu uIFormatMenuBar = UIMap.UISimplePadCDemoWindow.UIBarDockControlCustom.UIFormatMenuBar;
         Size   oldSize         = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIFormatMenuBar.GetProperty("Size"), typeof(Size).FullName);
         this.UIMap.InvokeCustomizationFormViaClickBar();
         this.UIMap.HideBarCommandViaCustomizationForm();
         Size newSize = (Size)DevExpress.Utils.CodedUISupport.CodedUIUtils.ConvertFromString((String)uIFormatMenuBar.GetProperty("Size"), typeof(Size).FullName);
         Assert.IsTrue(newSize.Width < oldSize.Width);
     }
 }