コード例 #1
0
    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;
        }
    }
コード例 #2
0
    public static void Main(string[] argv)
    {
        var app = new ExampleApp();

        app.InYourLoop(50);
        app.InYourLoop(30);
        app.InYourLoop(40);
    }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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;
        }
コード例 #6
0
ファイル: ExampleApp.cs プロジェクト: jivibounty/irrlicht
    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;
        }
    }