protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var inAppFeature1 = new Feature1();

            #if DEBUG
            // By default the feature will use the real store gateway, for testing this can be overridden
            inAppFeature1.StoreGateway = new SimulatedAlwaysPurchasedStoreGateway();
            #endif

            Feature1PurchaseStatus.Text = inAppFeature1.IsPurchased.ToString();

            var inAppFeature2 = new Feature2();
            #if DEBUG
            inAppFeature2.StoreGateway = new SimulatedNeverPurchasedStoreGateway();
            #endif

            Feature2PurchaseStatus.Text = inAppFeature2.IsPurchased.ToString();
        }
Example #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Enter  the number");
            int n = Convert.ToInt32(Console.ReadLine());


            //int count = 0;
            //for (int i = 1; i <=n; i++)
            //{
            //    if (n%i==0)
            //    {
            //        count++;
            //    }
            //}

            //if (count == 2)
            //{
            //    Console.WriteLine("The number is prime No");
            //}
            //else
            //{
            //    Console.WriteLine("The number is NOT a prime No");
            //}


            int result = CheckPrime(n, n / 2);

            if (result == 1)
            {
                Console.WriteLine("Prime No");
            }
            else
            {
                Console.WriteLine("Not a prime");
            }
            //call feature 1 here
            Console.ReadLine();



            Feature2 f2 = new Feature2();
        }
Example #3
0
 public override void Stop()
 {
     Feature1.Stop();
     Feature2.Stop();
 }