Exemplo n.º 1
0
        internal TestBase()
        {
            _driver = new DriverBase();
            // _driver.Initialize();

            ExamplePage = new ExamplePage();
        }
Exemplo n.º 2
0
        public static bool PageOpened(ExamplePage page)
        {
            IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
            if(settings.Contains(page.ToString()))
            {
                return (bool)settings[page.ToString()];
            }

            return false;
        }
Exemplo n.º 3
0
        public static bool PageOpened(ExamplePage page)
        {
            IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;

            if (settings.Contains(page.ToString()))
            {
                return((bool)settings[page.ToString()]);
            }

            return(false);
        }
Exemplo n.º 4
0
 public static void SetPageOpened(ExamplePage page, bool isOpened = true)
 {
     IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
     if (settings.Contains(page.ToString()))
     {
         settings[page.ToString()] = isOpened;
     }
     else
     {
         settings.Add(page.ToString(), isOpened);
     }
 }
Exemplo n.º 5
0
        public static void SetPageOpened(ExamplePage page, bool isOpened = true)
        {
            IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;

            if (settings.Contains(page.ToString()))
            {
                settings[page.ToString()] = isOpened;
            }
            else
            {
                settings.Add(page.ToString(), isOpened);
            }
        }
Exemplo n.º 6
0
        private void OnGUI()
        {
            if (centeredStyle == null)
            {
                centeredStyle = new GUIStyle(GUI.skin.label)
                {
                    alignment = TextAnchor.UpperCenter
                };
            }

            GUILayout.BeginArea(new Rect(10, 5, Screen.width - 20, Screen.height - 10));

            GUILayout.Label("<color=\"#0287C8\"><b>Anti-Cheat Toolkit Sandbox</b></color>", centeredStyle);
            GUILayout.Label("Here you can overview common ACTk features and try to cheat something yourself.", centeredStyle);
            GUILayout.Space(5);

            currentPage = (ExamplePage)GUILayout.Toolbar((int)currentPage, tabs);

            switch (currentPage)
            {
            case ExamplePage.ObscuredTypes:
            {
                DrawObscuredTypesPage();
                break;
            }

            case ExamplePage.ObscuredPrefs:
            {
                DrawObscuredPrefsPage();
                break;
            }

            case ExamplePage.Detectors:
            {
                DrawDetectorsPage();
                break;
            }

            case ExamplePage.CodeHashing:
            {
                DrawCodeHashingPage();
                break;
            }
            }
            GUILayout.EndArea();
        }
Exemplo n.º 7
0
        // c'tor
        /// <summary>
        /// Simple c'tor using a blob to hold the common data.
        /// </summary>
        /// <param name="blob"></param>
        /// <param name="label"></param>
        public UIGrid2DExampleElement(ParamBlob blob, ExamplePage example)
        {
            this.example = example;

            // blob
            this.width     = blob.width;
            this.height    = blob.height;
            this.Font      = blob.Font;
            this.textColor = blob.textColor;

            descBlob = new TextBlob(UI2D.Shared.GetGameFont24, example.description.Trim(), 650);
            descBlob.Justification = blob.justify;

            height = 1.1f + descBlob.NumLines * descBlob.TotalSpacing / 96.0f;

            alpha = 0.0f;   // Init to 0 since we're using it for selection.
        }
Exemplo n.º 8
0
 public void TestMethod1()
 {
     ExamplePage
     .SomeAction();
 }
Exemplo n.º 9
0
 public ExampleSteps()
 {
     examplePage = new ExamplePage();
 }
 public ExampleTest()
 {
     examplePage = new ExamplePage();
 }
Exemplo n.º 11
0
 public App()
 {
     // The root page of your application
     MainPage = new ExamplePage();
 }
Exemplo n.º 12
0
 public App()
 {
     ExamplePageViewModel.Init();
     // The root page of your application
     MainPage = new ExamplePage();
 }
Exemplo n.º 13
0
        public App()
        {
            InitializeComponent();

            MainPage = new ExamplePage(new ViewModel.ExamplePageViewModel());
        }
        public App()
        {
            InitializeComponent();

            MainPage = new ExamplePage();
        }