Exemplo n.º 1
0
        public void SwitchOffXray()
        {
            logger.LogInfo("Switching off X-Ray");
            Window ontopView = ApplicationHelpers.GetApplication(MeatMaster2UiItems.OnTopProcessName)
                               .GetWindow(MeatMaster2UiItems.OnTopWindowName);

            ClickButton(SearchCriteria.All, ontopView);
        }
Exemplo n.º 2
0
        public MantaFunctions()
            : base(Uis.ProcessTouch)
        {
            logger.LogInfo("Creating a new instance of MantaFunctions.");

            this.MainWindow      = ApplicationHelpers.GetMainWindow(UiItems.MantaProcessname, UiItems.MantaWindowtitle);
            this.StartStopButton = UiItems.MantaStartStopButton;
        }
Exemplo n.º 3
0
        public Functions(Uis appToRun)
        {
            logger             = new Logger();
            ApplicationHelpers = new ApplicationHelpers();

            logger.LogInfo($"Creating a new instance of functions for {appToRun}");

            switch (appToRun)
            {
            case Uis.MeatMaster2:
                this.MainWindow                   = ApplicationHelpers.GetMainWindow(MeatMaster2UiItems.Mm2ProcessName, MeatMaster2UiItems.Mm2MainWindowName);
                this.StartStopButton              = MeatMaster2UiItems.Mm2StartStopButton;
                this.SelectProductsDialogName     = UiItems.AdvancedSelectProductDialogName;
                this.ProductList                  = UiItems.AdvancedProductsList;
                this.SelectProductDialogIsUpdated = false;
                break;

            case Uis.pNova:
                this.MainWindow      = ApplicationHelpers.GetMainWindow(UiItems.ProFossProcessName, UiItems.PnovaMainWindowName);
                this.StartStopButton = UiItems.PnovaStartStopButton;
                break;

            case Uis.Advanced:
                this.MainWindow                   = ApplicationHelpers.GetMainWindow(UiItems.AdvancedUiProcessName, UiItems.BenchMainWindowName);
                this.StartStopButton              = UiItems.AdvancedUiStartStopButton;
                this.SelectProductsDialogName     = UiItems.AdvancedSelectProductDialogName;
                this.ProductList                  = UiItems.AdvancedProductsList;
                this.SelectProductDialogIsUpdated = true;
                break;

            case Uis.Metrohm:
                this.MainWindow                   = ApplicationHelpers.GetMainWindow(UiItems.MetrohmProcessName, UiItems.BenchMainWindowName);
                this.StartStopButton              = UiItems.AdvancedUiStartStopButton;
                this.SelectProductsDialogName     = UiItems.AdvancedSelectProductDialogName;
                this.ProductList                  = UiItems.AdvancedProductsList;
                this.SelectProductDialogIsUpdated = true;
                break;

            case Uis.Mini:
                this.MainWindow                   = ApplicationHelpers.GetMainWindow(UiItems.MiniUiProcessName, UiItems.BenchMainWindowName);
                this.StartStopButton              = UiItems.MiniUiStartStopButton;
                this.SelectProductsDialogName     = UiItems.MiniUiSelectProductsDialogName;
                this.ProductList                  = UiItems.MiniUiProductsList;
                this.SelectProductDialogIsUpdated = false;
                break;

            case Uis.Matilde:
                this.MainWindow = ApplicationHelpers.GetMainWindow(UiItems.MatildeProcessName, UiItems.PnovaMainWindowName);
                break;

            default:
                break;
            }
        }
Exemplo n.º 4
0
 public FiFunctions()
 {
     this.applicationHelpers = new ApplicationHelpers();
     this.MainWindow         = applicationHelpers.GetMainWindow(FossIntegratorUiItems.FiProcessName, FossIntegratorUiItems.FiResultDisplayName);
     logger = new Logger();
 }
Exemplo n.º 5
0
 public MeatMaster2Functions()
     : base(Uis.MeatMaster2)
 {
     applicationHelpers = new ApplicationHelpers();
 }