Ejemplo n.º 1
0
        private static bool YouHaveBeenRemovedVisible(TableLayout layout, Image table)
        {
            Point offset = layout.Offset;
            Image msgbox = table.crop(layout.YouHaveBeenRemoved.X, layout.YouHaveBeenRemoved.X + layout.YouHaveBeenRemoved.Width,
                                      layout.YouHaveBeenRemoved.Y, layout.YouHaveBeenRemoved.Y + layout.YouHaveBeenRemoved.Height);

            return(PatternLocator.locateError(msgbox));
        }
Ejemplo n.º 2
0
        private bool YouHaveJustLeftThisTable(TableLayout layout, Image screen)
        {
            Point offset = layout.Offset;
            Image table  = CropTable(screen, layout);
            Image msgbox = table.crop(layout.YouHaveJustLeftThisTable.X, layout.YouHaveJustLeftThisTable.X + layout.YouHaveJustLeftThisTable.Width,
                                      layout.YouHaveJustLeftThisTable.Y, layout.YouHaveJustLeftThisTable.Y + layout.YouHaveJustLeftThisTable.Height);

            return(PatternLocator.locateError(msgbox));
        }
Ejemplo n.º 3
0
        private bool IsSeatOccupied(TableLayout layout, Image screen)
        {
            Point offset = layout.Offset;
            Image table  = CropTable(screen, layout);
            Image msgbox = table.crop(layout.MessageBox.X, layout.MessageBox.X + layout.MessageBox.Width,
                                      layout.MessageBox.Y, layout.MessageBox.Y + layout.MessageBox.Height);

            return(PatternLocator.locateError(msgbox));
        }