Пример #1
0
 private void App_AutomateBusinessFlowEvent(AutomateEventArgs args)
 {
     if (args.EventType == AutomateEventArgs.eEventType.Automate)
     {
         try
         {
             Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait;
             Reporter.ToStatus(eStatusMsgKey.StaticStatusProcess, null, "Loading Automate Page...");
             if (mNewAutomatePage == null)
             {
                 mNewAutomatePage = new NewAutomatePage((BusinessFlow)args.Object);
             }
             xContentFrame.Content = mNewAutomatePage;
         }
         finally
         {
             Mouse.OverrideCursor = null;
             Reporter.HideStatusMessage();
         }
     }
     else if (args.EventType == AutomateEventArgs.eEventType.ShowBusinessFlowsList)
     {
         ShiftToBusinessFlowView((BusinessFlow)args.Object);
     }
 }
Пример #2
0
 private void App_AutomateBusinessFlowEvent(AutomateEventArgs args)
 {
     if (args.EventType == AutomateEventArgs.eEventType.Automate)
     {
         if (WorkSpace.Instance.BetaFeatures.ShowNewautomate)
         {
             if (mNewAutomatePage == null)
             {
                 mNewAutomatePage = new NewAutomatePage((BusinessFlow)args.Object);
             }
             xContentFrame.Content = mNewAutomatePage;
         }
         else
         {
             if (mAutomatePage == null)
             {
                 mAutomatePage = new AutomatePage((BusinessFlow)args.Object);
             }
             xContentFrame.Content = mAutomatePage;
         }
     }
     else if (args.EventType == AutomateEventArgs.eEventType.ShowBusinessFlowsList)
     {
         ShiftToBusinessFlowView((BusinessFlow)args.Object);
     }
 }
Пример #3
0
        public int ClickOnUndoBtn()
        {
            Execute(() =>
            {
                Frame f1 = (Frame)mMainWindow.FindName("xMainWindowFrame");
                BusinessFlowsAutomatePage page1 = (BusinessFlowsAutomatePage)f1.Content;
                Frame f2 = (Frame)page1.FindName("xContentFrame");
                NewAutomatePage page2 = (NewAutomatePage)f2.Content;

                var elByName = FindElementByName(page2, "xUndoChangesBtn");

                if (elByName != null)
                {
                    if (elByName is Amdocs.Ginger.UserControls.ucButton)
                    {
                        Dispatcher.Invoke(() =>
                        {
                            (elByName as Amdocs.Ginger.UserControls.ucButton).DoClick();
                            SleepWithDoEvents(100);
                        });
                    }
                }

                Frame f3 = (Frame)page2.FindName("xActivitiesListFrame");
                ActivitiesListViewPage activitiesListPage = (ActivitiesListViewPage)f3.Content;

                ActivityCount = activitiesListPage.ListView.DataSourceList.Count;
            });

            return(ActivityCount);
        }
Пример #4
0
        public void AddActivityToLIstView()
        {
            Execute(() =>
            {
                Frame f1 = (Frame)mMainWindow.FindName("xMainWindowFrame");
                BusinessFlowsAutomatePage page1 = (BusinessFlowsAutomatePage)f1.Content;
                Frame f2 = (Frame)page1.FindName("xContentFrame");
                NewAutomatePage page2 = (NewAutomatePage)f2.Content;
                Frame f3 = (Frame)page2.FindName("xActivitiesListFrame");
                ActivitiesListViewPage activitiesListPage = (ActivitiesListViewPage)f3.Content;
                Activity activity2     = new Activity();
                activity2.ActivityName = "Test Activity";
                Dispatcher.Invoke(() =>
                {
                    activitiesListPage.ListView.DataSourceList.Add(activity2);
                    SleepWithDoEvents(100);
                });

                ClickOnBackToBFTreeBtn();
            });
        }
Пример #5
0
        public void ClickOnBackToBFTreeBtn()
        {
            Execute(() =>
            {
                Frame f1 = (Frame)mMainWindow.FindName("xMainWindowFrame");
                BusinessFlowsAutomatePage page1 = (BusinessFlowsAutomatePage)f1.Content;
                Frame f2 = (Frame)page1.FindName("xContentFrame");
                NewAutomatePage page2 = (NewAutomatePage)f2.Content;

                var elByName = FindElementByName(page2, "xGoToBFsTreeBtn");

                if (elByName != null)
                {
                    if (elByName is Amdocs.Ginger.UserControls.ucButton)
                    {
                        Dispatcher.Invoke(() =>
                        {
                            (elByName as Amdocs.Ginger.UserControls.ucButton).DoClick();
                            SleepWithDoEvents(100);
                        });
                    }
                }
            });
        }