static void Main(string[] args) { ExampleApp ea = new ExampleApp(); ea.displayMainMenu(); switch (ea.ClickedButton) { case TestScenarios.TERRAIN_TEST: ea.runTerrainTest(); break; case TestScenarios.INDOOR_TEST: ea.runIndoorTest(); break; case TestScenarios.WINDOWS_FORMS_TEST: ea.runIrrlichtInWindowsFormTest(); break; case TestScenarios.SHADER_TEST: ea.runShaderTest(); break; } }
public static void Main(string[] argv) { var app = new ExampleApp(); app.InYourLoop(50); app.InYourLoop(30); app.InYourLoop(40); }
public override void OnCreate() { base.OnCreate(); var dbFolder = Environment.GetFolderPath(Environment.SpecialFolder.Personal); ExampleApp.Init(dbFolder).ContinueWith(x => {}); var icons = Typeface.CreateFromAsset(Assets, "fonts/proveo_ios.ttf"); TypefaceCollection.Add("proveo_ios", FontStyle.Normal, icons); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { application.StatusBarStyle = UIStatusBarStyle.LightContent; var dbFolder = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); ExampleApp.Init(dbFolder).ContinueWith(t => { }); Window = Window ?? new UIWindow(); Window.RootViewController = new MainMenuController(); Window.MakeKeyAndVisible(); return(true); }
public static YelpResultModel FromResultModel(ExampleApp.SearchResultModelCLI model) { MemoryStream stream = new MemoryStream(Encoding.Unicode.GetBytes(model.JsonData)); DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(YelpResultModel)); stream.Position = 0; YelpResultModel result = (YelpResultModel)serializer.ReadObject(stream); string ratingString = result.m_rating.ToString(); if(!ratingString.Contains(".")) { ratingString += ".0"; } ratingString = ratingString.Replace('.', '_'); result.RatingsImageUrl = "stars_" + ratingString; result.Reviews = new List<string>(); result.Reviews.Add(result.m_snippetText); return result; }
static void Main(string[] args) { ExampleApp ea = new ExampleApp(); ea.displayMainMenu(); switch(ea.ClickedButton) { case TestScenarios.TERRAIN_TEST: ea.runTerrainTest(); break; case TestScenarios.INDOOR_TEST: ea.runIndoorTest(); break; case TestScenarios.WINDOWS_FORMS_TEST: ea.runIrrlichtInWindowsFormTest(); break; case TestScenarios.SHADER_TEST: ea.runShaderTest(); break; } }