Ejemplo n.º 1
0
        /// <summary>
        /// AssignCameraTemplateToView
        /// </summary>
        public void AssignCameraTemplateToView(int noOfCameraTemplate)
        {
            #region Variable Declarations
            WinMenuBar  uIApplicationMenuBar = this.UISmartViewConfiguratiWindow.UIApplicationMenuBar;
            WinGroup    uIItemGroup          = this.UINewArchitectureWindow.UIItemWindow.UIItemGroup;
            WinTreeItem uIStationTreeItem    = this.UINewArchitectureWindow.UIItemWindow1.UIItemTree.UILineTreeItem.UIStationTreeItem;
            WinTreeItem uIView1TreeItem      = this.UINewArchitectureWindow.UIItemWindow1.UIItemTree.UILineTreeItem.UIStationTreeItem.UIView1TreeItem;
            #endregion


            // Click 'Application' menu bar
            Mouse.Click(uIApplicationMenuBar, new Point(34, 51));

            // Move 'Unknown Name' group from (26, 30) to 'Line' -> 'Station' tree item (23, 14)
            uIStationTreeItem.EnsureClickable(new Point(23, 14));
            Mouse.StartDragging(uIItemGroup, new Point(26, 30));
            Mouse.StopDragging(uIStationTreeItem, new Point(23, 14));

            // Move 'Unknown Name' group from (264, 23) to 'Line' -> 'Station' -> 'View 1' tree item (18, 5)
            uIView1TreeItem.EnsureClickable(new Point(18, 5));
            Mouse.StartDragging(uIItemGroup, new Point(264, 23));
            Mouse.StopDragging(uIView1TreeItem, new Point(18, 5));

            // Move 'Unknown Name' group from (267, 22) to 'Line' -> 'Station' -> 'View 1' tree item (9, 5)
            uIView1TreeItem.EnsureClickable(new Point(9, 5));
            Mouse.StartDragging(uIItemGroup, new Point(267, 22));
            Mouse.StopDragging(uIView1TreeItem, new Point(9, 5));

            // Move 'Unknown Name' group from (258, 23) to 'Line' -> 'Station' -> 'View 1' tree item (11, 14)
            uIView1TreeItem.EnsureClickable(new Point(11, 14));
            Mouse.StartDragging(uIItemGroup, new Point(258, 23));
            Mouse.StopDragging(uIView1TreeItem, new Point(11, 14));
        }
        /// <summary>
        /// camass
        /// </summary>


        /// <summary>
        /// AssignCameraToSingleView
        /// </summary>
        public void AssignCameraToSingleView()
        {
            #region Variable Declarations
            WinClient   uICameraStatusandAssigClient = this.UISmartViewConfiguratiWindow.UICameraStatusandAssigWindow.UIItemWindow.UICameraStatusandAssigClient;
            WinTreeItem uICamera1cam1TreeItem        = this.UISmartViewConfiguratiWindow.UIItemWindow.UIItemTree.UILineTreeItem.UIStationTreeItem.UIView1TreeItem.UICamera1cam1TreeItem;
            WinTreeItem uICamera2cam2TreeItem        = this.UISmartViewConfiguratiWindow.UIItemWindow.UIItemTree.UILineTreeItem.UIStationTreeItem.UIView1TreeItem.UICamera2cam2TreeItem;
            WinTreeItem uICamera3cam3TreeItem        = this.UISmartViewConfiguratiWindow.UIItemWindow.UIItemTree.UILineTreeItem.UIStationTreeItem.UIView1TreeItem.UICamera3cam3TreeItem;
            WinTreeItem uICamera4cam4TreeItem        = this.UISmartViewConfiguratiWindow.UIItemWindow.UIItemTree.UILineTreeItem.UIStationTreeItem.UIView1TreeItem.UICamera4cam4TreeItem;
            #endregion

            // Move 'Camera Status and Assignment' client from (151, 26) to 'Line' -> 'Station' -> 'View 1' -> 'Camera 1 (cam1)' tree item (78, 12)
            uICamera1cam1TreeItem.EnsureClickable(new Point(78, 12));
            Mouse.StartDragging(uICameraStatusandAssigClient, new Point(151, 26));
            Mouse.StopDragging(uICamera1cam1TreeItem, new Point(78, 12));

            /*    // Move 'Camera Status and Assignment' client from (110, 42) to 'Line' -> 'Station' -> 'View 1' -> 'Camera 2 (cam2)' tree item (74, 8)
             *  uICamera2cam2TreeItem.EnsureClickable(new Point(74, 8));
             *  Mouse.StartDragging(uICameraStatusandAssigClient, new Point(110, 42));
             *  Mouse.StopDragging(uICamera2cam2TreeItem, new Point(74, 8));
             *
             *  // Move 'Camera Status and Assignment' client from (47, 54) to 'Line' -> 'Station' -> 'View 1' -> 'Camera 3 (cam3)' tree item (61, 6)
             *  uICamera3cam3TreeItem.EnsureClickable(new Point(61, 6));
             *  Mouse.StartDragging(uICameraStatusandAssigClient, new Point(47, 54));
             *  Mouse.StopDragging(uICamera3cam3TreeItem, new Point(61, 6));
             *
             *  // Click 'Camera Status and Assignment' client
             *  Mouse.Click(uICameraStatusandAssigClient, new Point(15, 69));
             *
             *  // Move 'Camera Status and Assignment' client from (34, 69) to 'Line' -> 'Station' -> 'View 1' -> 'Camera 4 (cam4)' tree item (52, 6)
             *  uICamera4cam4TreeItem.EnsureClickable(new Point(52, 6));
             *  Mouse.StartDragging(uICameraStatusandAssigClient, new Point(34, 69));
             *  Mouse.StopDragging(uICamera4cam4TreeItem, new Point(52, 6));*/
        }
Ejemplo n.º 3
0
        /// <summary>
        /// CreateStandardSingleViewArchitecture - Use 'CreateStandardSingleViewArchitectureParams' to pass parameters into this method.
        /// </summary>
        public void CreateStandardSingleViewArchitecture(String name)
        {
            #region Variable Declarations
            WinMenuBar  uIApplicationMenuBar = this.UISmartViewConfiguratiWindow.UIApplicationMenuBar;
            WinEdit     uIItemEdit           = this.UINewArchitectureWindow.UIItemWindow.UIItemEdit;
            WinGroup    uIItemGroup          = this.UINewArchitectureWindow.UIItemWindow1.UIItemGroup;
            WinTreeItem uIStationTreeItem    = this.UINewArchitectureWindow.UIItemWindow2.UIItemTree.UILineTreeItem.UIStationTreeItem;
            WinButton   uIOKButton           = this.UINewArchitectureWindow.UIOKWindow.UIOKButton;
            #endregion

            FocusConfigurationManager();
            // Click 'Application' menu bar
            Mouse.Click(new Point(33, 44));

            // Click 'Unknown Name' text box
            Mouse.Click(uIItemEdit, new Point(37, 2));

            // Move 'Unknown Name' group from (38, 29) to 'Line' -> 'Station' tree item (14, 4)
            uIStationTreeItem.EnsureClickable(new Point(14, 4));
            Mouse.StartDragging(uIItemGroup, new Point(38, 29));
            Mouse.StopDragging(uIStationTreeItem, new Point(14, 4));

            // Type 'automation' in 'Unknown Name' text box
            uIItemEdit.Text = name;

            // Double-Click 'OK' button
            Mouse.Click(uIOKButton, new Point(47, 13));

            AssignCameraToView();
        }
Ejemplo n.º 4
0
        public void AssignStandardView(int noOfView)
        {
            #region Variable Declarations
            WinGroup    uIItemGroup       = this.UINewArchitectureWindow.UIItemWindow.UIItemGroup;
            WinTreeItem uIStationTreeItem = this.UINewArchitectureWindow.UIItemWindow1.UIItemTree.UILineTreeItem.UIStationTreeItem;
            #endregion

            for (int i = 0; i < noOfView; i++)
            {
                // Move 'Unknown Name' group from (34, 26) to 'Line' -> 'Station' tree item (7, 7)
                uIStationTreeItem.EnsureClickable(new Point(7, 7));
                Mouse.StartDragging(uIItemGroup, new Point(34, 26));
                Mouse.StopDragging(uIStationTreeItem, new Point(7, 7));
            }

            //// Move 'Unknown Name' group from (41, 19) to 'Line' -> 'Station' tree item (13, 7)
            //uIStationTreeItem.EnsureClickable(new Point(13, 7));
            //Mouse.StartDragging(uIItemGroup, new Point(41, 19));
            //Mouse.StopDragging(uIStationTreeItem, new Point(13, 7));

            //// Move 'Unknown Name' group from (33, 19) to 'Line' -> 'Station' tree item (21, 8)
            //uIStationTreeItem.EnsureClickable(new Point(21, 8));
            //Mouse.StartDragging(uIItemGroup, new Point(33, 19));
            //Mouse.StopDragging(uIStationTreeItem, new Point(21, 8));
        }
Ejemplo n.º 5
0
        /// <summary>
        /// MarkReadingViewPair
        /// </summary>
        public void MarkReadingViewPair()
        {
            #region Variable Declarations
            WinGroup    uIItemGroup       = this.UINewArchitectureWindow.UIItemWindow.UIItemGroup;
            WinTreeItem uIStationTreeItem = this.UINewArchitectureWindow.UIItemWindow1.UIItemTree.UILineTreeItem.UIStationTreeItem;
            #endregion

            // Move 'Unknown Name' group from (171, 25) to 'Line' -> 'Station' tree item (9, 3)
            uIStationTreeItem.EnsureClickable(new Point(9, 3));
            Mouse.StartDragging(uIItemGroup, new Point(171, 25));
            Mouse.StopDragging(uIStationTreeItem, new Point(9, 3));

            // Move 'Unknown Name' group from (165, 23) to 'Line' -> 'Station' tree item (23, 10)
            uIStationTreeItem.EnsureClickable(new Point(23, 10));
            Mouse.StartDragging(uIItemGroup, new Point(165, 23));
            Mouse.StopDragging(uIStationTreeItem, new Point(23, 10));
        }
Ejemplo n.º 6
0
        /// <summary>
        /// AssignMarkReaderView
        /// </summary>
        public void AssignMarkReaderView()
        {
            #region Variable Declarations
            WinGroup    uIItemGroup       = this.UINewArchitectureWindow.UIItemWindow.UIItemGroup;
            WinTreeItem uIStationTreeItem = this.UINewArchitectureWindow.UIItemWindow1.UIItemTree.UILineTreeItem.UIStationTreeItem;
            #endregion

            // Move 'Unknown Name' group from (128, 22) to 'Line' -> 'Station' tree item (14, 3)
            uIStationTreeItem.EnsureClickable(new Point(14, 3));
            Mouse.StartDragging(uIItemGroup, new Point(128, 22));
            Mouse.StopDragging(uIStationTreeItem, new Point(14, 3));

            // Click 'Line' -> 'Station' tree item
            Mouse.Click(uIStationTreeItem, new Point(14, 3));

            // Move 'Unknown Name' group from (120, 29) to 'Line' -> 'Station' tree item (13, 8)
            uIStationTreeItem.EnsureClickable(new Point(13, 8));
            Mouse.StartDragging(uIItemGroup, new Point(120, 29));
            Mouse.StopDragging(uIStationTreeItem, new Point(13, 8));
        }
Ejemplo n.º 7
0
        /// <summary>
        /// AssignCameraToView
        /// </summary>
        public void AssignCameraToView()
        {
            #region Variable Declarations
            WinMenuBar  uIApplicationMenuBar         = this.UISmartViewConfiguratiWindow.UIApplicationMenuBar;
            WinClient   uICameraStatusandAssigClient = this.UISmartViewConfiguratiWindow.UICameraStatusandAssigWindow.UIItemWindow.UICameraStatusandAssigClient;
            WinTreeItem uICamera1cam1TreeItem        = this.UISmartViewConfiguratiWindow.UIItemWindow.UIItemTree.UILineTreeItem.UIStationTreeItem.UIView1TreeItem.UICamera1cam1TreeItem;
            #endregion

            FocusConfigurationManager();

            // Click 'Application' menu bar
            Mouse.Click(new Point(164, 37));

            // Click 'Camera Status and Assignment' client
            Mouse.Click(uICameraStatusandAssigClient, new Point(143, 28));

            // Move 'Camera Status and Assignment' client from (102, 23) to 'Line' -> 'Station' -> 'View 1' -> 'Camera 1 (cam1)' tree item (58, 11)
            uICamera1cam1TreeItem.EnsureClickable(new Point(58, 11));
            Mouse.StartDragging(uICameraStatusandAssigClient, new Point(102, 23));
            Mouse.StopDragging(uICamera1cam1TreeItem, new Point(58, 11));
        }
Ejemplo n.º 8
0
        /// <summary>
        /// AssignSyncronizeViewPair
        /// </summary>
        public void AssignSyncronizeViewPair(int noOfView)
        {
            #region Variable Declarations
            WinGroup    uIItemGroup       = this.UINewArchitectureWindow.UIItemWindow.UIItemGroup;
            WinTreeItem uIStationTreeItem = this.UINewArchitectureWindow.UIItemWindow1.UIItemTree.UILineTreeItem.UIStationTreeItem;
            #endregion

            for (int index = 0; index < noOfView; index++)
            {
                // Move 'Unknown Name' group from (75, 27) to 'Line' -> 'Station' tree item (12, 4)
                uIStationTreeItem.EnsureClickable(new Point(12, 4));
                Mouse.StartDragging(uIItemGroup, new Point(75, 27));
                Mouse.StopDragging(uIStationTreeItem, new Point(12, 4));
            }

            //// Click 'Line' -> 'Station' tree item
            //Mouse.Click(uIStationTreeItem, new Point(12, 4));

            //// Move 'Unknown Name' group from (72, 26) to 'Line' -> 'Station' tree item (6, 0)
            //uIStationTreeItem.EnsureClickable(new Point(6, 0));
            //Mouse.StartDragging(uIItemGroup, new Point(72, 26));
            //Mouse.StopDragging(uIStationTreeItem, new Point(6, 0));
        }