• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# WinWindow类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中WinWindow的典型用法代码示例。如果您正苦于以下问题:C# WinWindow类的具体用法?C# WinWindow怎么用?C# WinWindow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



WinWindow类属于命名空间,在下文中一共展示了WinWindow类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ComboBoxDistributionTerms

 private static WinComboBox ComboBoxDistributionTerms()
 {
     var combobxDistTermsParent = new WinWindow(CommonUiMap.WindowMaintance());
     combobxDistTermsParent.SearchProperties[WinControl.PropertyNames.ControlName] = "cboDistributionTerms";
     var combobxDistTerms = new WinComboBox(combobxDistTermsParent);
     return combobxDistTerms;
 }
开发者ID:Free1man,项目名称:FilmHire,代码行数:7,代码来源:FilmHireContractsUIMap.cs


示例2: Main

        static void Main(string[] args)
        {

            Playback.Initialize();
            WinWindow GetCUITWindow = new WinWindow();
             GetCUITWindow.SearchProperties.Add(WinWindow.PropertyNames.ControlName, "BrowserMain");
             //UITestControlCollection allwnds = GetCUITWindow.FindMatchingControls();
             //GetCUITWindow = (WinWindow)allwnds[0];
            #region usingautoid
            //UITestControlCollection wndCollection = GetCUITWindow.FindMatchingControls();
            //foreach (UITestControl inwin in wndCollection)
            //{
            //   if (inwin.TechnologyName == "MSAA" && ((WinWindow)inwin).ControlName == "BrowserMain")
            //    {
            //        GetCUITWindow = (WinWindow)inwin;
            //    }
            //}
            #endregion
         //   GetCUITWindow.SearchProperties.Add(WinWindow.PropertyNames.Name, "LOWIS:", PropertyExpressionOperator.Contains);
            WinButton btn = new WinButton(GetCUITWindow);
            btn.SearchProperties.Add(WinButton.PropertyNames.Name, "Add a New Well");
            Mouse.Click(btn);
            Playback.Cleanup();

        }
开发者ID:prasannarhegde2015,项目名称:C-Advanced-Learning,代码行数:25,代码来源:Program.cs


示例3: ComboBoxFilm

 private static WinComboBox ComboBoxFilm()
 {
     var combobxFilmParent = new WinWindow(CommonUiMap.WindowMaintance());
     combobxFilmParent.SearchProperties[WinControl.PropertyNames.ControlName] = "cboFilm";
     var combobxFilm = new WinComboBox(combobxFilmParent);
     return combobxFilm;
 }
开发者ID:Free1man,项目名称:FilmHire,代码行数:7,代码来源:FilmHireContractsUIMap.cs


示例4: FormModel

 public FormModel()
 {
     MainWindow = new WinWindow(By.Name("Form1"));
     lbl_ChangingText = MainWindow.Find<WinText>(By.Name("lbl_ChangingText"));
     btn_ChangeTxt = MainWindow.Find<WinButton>(By.Name("btn_ChangingText"));
     txtBox_ChangingBox = MainWindow.Find<WinEdit>(By.Name("txtBox_ChangingText"));
 }
开发者ID:kraidleyaran,项目名称:SampleCodedUI,代码行数:7,代码来源:FormModel.cs


示例5: GetOutlookAfterFeedbackWindow

 private WinWindow GetOutlookAfterFeedbackWindow()
 {
     WinWindow theWindow = new WinWindow();
     theWindow.SearchProperties[WinWindow.PropertyNames.Name] = "Some Real Live Feedback : Feedback - Message (Plain Text) ";
     theWindow.Find();
     return theWindow;
 }
开发者ID:FerdinandOlivier,项目名称:Warewolf-ESB,代码行数:7,代码来源:ExternalUIMap.Designer.cs


示例6: ComboBoxSalesTax

 private static WinComboBox ComboBoxSalesTax()
 {
     var salesTaxParent = new WinWindow(CommonUiMap.WindowMaintance());
     salesTaxParent.SearchProperties[WinControl.PropertyNames.ControlName] = "cboSalesTax";
     var comboBoxSalesTax = new WinComboBox(salesTaxParent);
     return comboBoxSalesTax;
 }
开发者ID:Free1man,项目名称:FilmHire,代码行数:7,代码来源:FilmHireContractsUIMap.cs


示例7: GetWordRibbon

 static WinWindow GetWordRibbon(WinWindow window)
 {
     var ribbonWindow = new WinWindow(window);
     ribbonWindow.SearchProperties[WinWindow.PropertyNames.AccessibleName] = "Ribbon";
     ribbonWindow.SearchProperties[WinWindow.PropertyNames.ClassName] = "NetUIHWND";
     ribbonWindow.WindowTitles.Add("Document1 - Word");
     return ribbonWindow;
 }
开发者ID:beachandbytes,项目名称:GorillaDocs,代码行数:8,代码来源:RibbonTests.cs


示例8: ShowDialogWindow

    protected override void ShowDialogWindow(WinWindow window)
    {
        //см. #4697
            Form form = window.Form;
            form.StartPosition = FormStartPosition.CenterParent;

            base.ShowDialogWindow(window);
    }
开发者ID:Rukhlov,项目名称:DataStudio,代码行数:8,代码来源:SdiWithModalDetailViewStrategy.cs


示例9: ClickToolBar

 public static void ClickToolBar(string windowtitle, string toolbarname)
 {
     WinWindow addposn = new WinWindow();
     addposn.SearchProperties.Add(WinWindow.PropertyNames.Name, windowtitle, PropertyExpressionOperator.Contains);
     WinToolBar addposbtn = new WinToolBar(addposn);
     addposbtn.SearchProperties.Add(WinToolBar.PropertyNames.Name, toolbarname);
     Mouse.Click(addposbtn);
 }
开发者ID:prasannarhegde2015,项目名称:MySQLBackupCsharpScript,代码行数:8,代码来源:LowisUMapplyHF.cs


示例10: ClickWindowButton

 public static void ClickWindowButton(string windowtitle, string buttontext)
 {
     WinWindow addposn = new WinWindow();
     addposn.SearchProperties.Add(WinWindow.PropertyNames.Name, windowtitle, PropertyExpressionOperator.Contains);
     WinButton addposbtn = new WinButton(addposn);
     addposbtn.SearchProperties.Add(WinButton.PropertyNames.Name, buttontext);
     Mouse.Click(addposbtn);
 }
开发者ID:prasannarhegde2015,项目名称:C-Advanced-Learning,代码行数:8,代码来源:Program.cs


示例11: EnterDatainTextbox

 public static void EnterDatainTextbox(string windowtitle, string buttontext,string val)
 {
     WinWindow addposn = new WinWindow();
     addposn.SearchProperties.Add(WinWindow.PropertyNames.Name, windowtitle, PropertyExpressionOperator.Contains);
     WinEdit addposbtn = new WinEdit(addposn);
     addposbtn.SearchProperties.Add(WinEdit.PropertyNames.Name, buttontext);
     Mouse.Click(addposbtn);
     addposbtn.Text = val;
 }
开发者ID:prasannarhegde2015,项目名称:MySQLBackupCsharpScript,代码行数:9,代码来源:LowisUMapplyHF.cs


示例12: GetWindowExistStatus

 public bool GetWindowExistStatus()
 {
     this.mUIAXCWindow = new UIAXCWindow();
     WinClient uIClientName = new WinClient(mUIClientName);
     uIClientName.TechnologyName = "MSAA";
     uIClientName.SearchProperties.Add("ControlType", "WinWindow");
     uIClientName.SearchProperties.Add("Name", "Filter", PropertyExpressionOperator.Contains);
     mUIClientName = uIClientName;
     return true;
 }
开发者ID:pjagga,项目名称:SeleniumMSTestVS2013,代码行数:10,代码来源:FilterPage.cs


示例13: GetTable

 public static WinTable GetTable(string name, string itemWindowID, WinWindow parent)
 {
     WinWindow ItemWindow = new WinWindow(parent);
     ItemWindow.SearchProperties[WinWindow.PropertyNames.ControlId] = itemWindowID;
     ItemWindow.WaitForControlReady();
     WinTable mUITable = new WinTable(ItemWindow);
     mUITable.SearchProperties[WinTable.PropertyNames.Name] = name;
     mUITable.WaitForControlReady();
     return mUITable;
 }
开发者ID:pjagga,项目名称:SeleniumMSTestVS2013,代码行数:10,代码来源:Table.cs


示例14: ClickMaximizeButton

 public static void ClickMaximizeButton(WinWindow parentWindow)
 {
     if (parentWindow.Maximized == false)
     {
         WinTitleBar titleBar = new WinTitleBar(parentWindow);
         WinButton maxButton = new WinButton(titleBar);
         maxButton.SearchProperties.Add("Name", "Maximize");
         maxButton.WaitForControlReady();
         Mouse.Click(maxButton, new Point(maxButton.Width / 2, maxButton.Height / 2));
     }
 }
开发者ID:pjagga,项目名称:SeleniumMSTestVS2013,代码行数:11,代码来源:UIControls.cs


示例15: ClickClose

        /// <summary>
        /// Click Close method is to click Close on the title bar of all windows
        /// </summary>
        /// <param name="window"></param>
        public static void ClickClose(WinWindow window)
        {
            #region Variable Declarations

            Window.Name = window.Name;
            var uICloseButton = UIEllisWindow.UIEllisTitleBar.UICloseButton;
            #endregion

            // Click 'Close' button
            Mouse.Click(uICloseButton);
        }
开发者ID:k3foru,项目名称:WinAppTestingFramework,代码行数:15,代码来源:TitlebarActions.cs


示例16: SelectWinTab

 public static void SelectWinTab(string wintitle ,string tabname)
 {
     WinWindow wnd = new WinWindow();
     wnd.SearchProperties.Add(WinWindow.PropertyNames.Name, wintitle, PropertyExpressionOperator.Contains);
     wnd.SearchProperties.Add(WinWindow.PropertyNames.ClassName, "WindowsForms10.Window", PropertyExpressionOperator.Contains);
     wnd.SetFocus();
     wnd.Maximized = true;
     WinTabPage wtbpg = new WinTabPage(wnd);
     wtbpg.SearchProperties.Add(WinTabPage.PropertyNames.Name, tabname, PropertyExpressionOperator.Contains);
     Mouse.Click(wtbpg);
 }
开发者ID:prasannarhegde2015,项目名称:C-Advanced-Learning,代码行数:11,代码来源:Program.cs


示例17: ClickMinimizeMenuGroup

        public static void ClickMinimizeMenuGroup(string groupName, WinWindow parent)
        {
            //Minimise all group controls
            WinGroup group = UIControls.GetGroupControl(groupName, parent);

            if (group.Height > 29)
            {
                WinButton arrowButton = new WinButton(UIControls.GetGroupedControl("CollapseChevron", "Button", groupName, parent));
                Mouse.Click(arrowButton, new Point(arrowButton.Width / 2, arrowButton.Height / 2));

            }
        }
开发者ID:pjagga,项目名称:SeleniumMSTestVS2013,代码行数:12,代码来源:UIControls.cs


示例18: ClickYesConsolidatedMessageBoxButton

 public void ClickYesConsolidatedMessageBoxButton()
 {
     mUIAXCWindow = new WinWindow();
     mUIAXCWindow.SearchProperties.Add("Name", "Microsoft Dynamics");
     mUIAXCWindow.SearchProperties.Add("ClassName", "#32770");
     mUIAXCWindow.WindowTitles.Add("Microsoft Dynamics");
     WinButton yesButton = new WinButton(mUIAXCWindow);
     yesButton.SearchProperties.Add("Name", "Yes");
     yesButton.SearchProperties.Add("ControlType", "Button");
     yesButton.WindowTitles.Add("Microsoft Dynamics");
     yesButton.WaitForControlReady();
     Mouse.Click(yesButton, new Point(yesButton.Width / 2, yesButton.Height / 2));
 }
开发者ID:pjagga,项目名称:SeleniumMSTestVS2013,代码行数:13,代码来源:ConsolidateOnlinePage.cs


示例19: GetButtonGroupControl

        public static WinControl GetButtonGroupControl(string name, string type, WinWindow parent)
        {
            WinGroup buttonGroup = new WinGroup(parent);
            buttonGroup.SearchProperties.Add("Name", "ButtonGroup");
            buttonGroup.SearchProperties.Add("ControlType", "Group");
            buttonGroup.WaitForControlReady();

            WinControl uIControl = new WinControl(buttonGroup);
            uIControl.SearchProperties.Add("ControlType", type);
            uIControl.SearchProperties.Add("Name", name);
            uIControl.WaitForControlReady();

            return uIControl;
        }
开发者ID:pjagga,项目名称:SeleniumMSTestVS2013,代码行数:14,代码来源:UIControls.cs


示例20: CustomizeViewShortcut

 private static void CustomizeViewShortcut(DetailViewCreatedEventArgs e, WinWindow winWindow, string temporaryObjectKey){
     e.View.CustomizeViewShortcut += (o, args) =>{
         var shortcut = args.ViewShortcut;
         if (shortcut.ContainsKey(ViewShortcut.IsNewObject)){
             shortcut.Remove(ViewShortcut.IsNewObject);
         }
     };
     winWindow.View.CustomizeViewShortcut += (o, args) =>{
         var shortcut = args.ViewShortcut;
         if (shortcut.ContainsKey(ViewShortcut.TemporaryObjectKeyParamName))
             shortcut[ViewShortcut.TemporaryObjectKeyParamName] = temporaryObjectKey;
         if (shortcut.ContainsKey(ViewShortcut.IsNewObject)){
             shortcut.Remove(ViewShortcut.IsNewObject);
         }
     };
 }
开发者ID:kamchung322,项目名称:eXpand,代码行数:16,代码来源:FormCachingController.cs



注:本文中的WinWindow类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Window类代码示例发布时间:2022-05-24
下一篇:
C# Win32Point类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap