internal TestBase() { _driver = new DriverBase(); // _driver.Initialize(); ExamplePage = new ExamplePage(); }
public static bool PageOpened(ExamplePage page) { IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings; if(settings.Contains(page.ToString())) { return (bool)settings[page.ToString()]; } return false; }
public static bool PageOpened(ExamplePage page) { IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings; if (settings.Contains(page.ToString())) { return((bool)settings[page.ToString()]); } return(false); }
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); } }
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); } }
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(); }
// 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. }
public void TestMethod1() { ExamplePage .SomeAction(); }
public ExampleSteps() { examplePage = new ExamplePage(); }
public ExampleTest() { examplePage = new ExamplePage(); }
public App() { // The root page of your application MainPage = new ExamplePage(); }
public App() { ExamplePageViewModel.Init(); // The root page of your application MainPage = new ExamplePage(); }
public App() { InitializeComponent(); MainPage = new ExamplePage(new ViewModel.ExamplePageViewModel()); }
public App() { InitializeComponent(); MainPage = new ExamplePage(); }