public static void Init(Context context) { Context = context; Fresco.Initialize(Context); DependencyService.Register <PhotoBrowserImplementation>(); }
static void Main(string[] args) { OilPainting monaLisa = new OilPainting(); monaLisa.Name = "Mona Lisa"; monaLisa.Painter = "Leonardo da Vinci"; //The following line will give an error if uncommented. Medium is read-only for this class. //monaLisa.Medium = "oil"; monaLisa.Year = 1503; monaLisa.Support = "canvas"; Console.WriteLine(monaLisa.describe()); //The medium can be read. Console.WriteLine(monaLisa.Medium); Fresco theCreationOfAdam = new Fresco(); theCreationOfAdam.Name = "The Creation of Adam"; theCreationOfAdam.Painter = "Michelangelo"; theCreationOfAdam.Location = "the Sistine Chapel"; theCreationOfAdam.Year = 1512; Console.WriteLine(theCreationOfAdam.describe()); Console.WriteLine(theCreationOfAdam.Medium); Watermedia lagoDAverno = new Watermedia(); lagoDAverno.Name = "Lago d'Averno"; lagoDAverno.Painter = "Jacob Philipp Hackert"; lagoDAverno.Type = "gouache"; lagoDAverno.Year = 1794; Console.WriteLine(lagoDAverno.describe()); Console.WriteLine(lagoDAverno.Medium); OtherPainting campbellsSoupCans = new OtherPainting(); campbellsSoupCans.Name = "Campbell's Soup Cans"; campbellsSoupCans.Painter = "Andy Warhole"; //Medium can be set for the OtherPainting class. campbellsSoupCans.Medium = "synthetic polymer"; campbellsSoupCans.TypeDescription = "screen print"; campbellsSoupCans.Year = 1962; Console.WriteLine(campbellsSoupCans.describe()); Console.WriteLine(campbellsSoupCans.Medium); }
public void FirstRunExcute() { try { Fresco.Initialize(this); if (Settings.Show_ADMOB_Banner || Settings.Show_ADMOB_Interstitial || Settings.Show_ADMOB_RewardVideo || Settings.Show_ADMOB_Native) { MobileAds.Initialize(this, Settings.Ad_App_ID); } var dbDatabase = new SqLiteDatabase(); var result = dbDatabase.Get_data_Login_Credentials(); if (result != null) { if (result.Status == "Active") { StartActivity(new Intent(Application.Context, typeof(Tabbed_Main_Activity))); } else if (result.Status == "Pending") { StartActivity(new Intent(Application.Context, typeof(Tabbed_Main_Activity))); } else { StartActivity(new Intent(Application.Context, typeof(First_Activity))); } } else { StartActivity(new Intent(Application.Context, typeof(First_Activity))); } dbDatabase.Dispose(); } catch (Exception exception) { Crashes.TrackError(exception); Toast.MakeText(this, exception.Message, ToastLength.Short).Show(); } }
public override void OnCreate() { base.OnCreate(); Fresco.Initialize(this); }
public FrescoRenderer(Context context) : base(context) { this.context = context; Fresco.Initialize(context, imagePipelineConfig); }