コード例 #1
0
 public MainPageViewModel(FuckOffService fuckOffService)
 {
     this.fuckOffService = fuckOffService;
     RefreshCanExecutes();
     //This is only for testing, will be removed once the gui is done
     //this.FuckOffText= "I am a very long insult consisting mostly of random words and stuff. Also f**k you because you are one very ugly m**********r and i hate your guts. You suck and are stupid and if you died today i would not be sad at all. Well maybe a little because I would probably miss hating you so much.";
 }
コード例 #2
0
 public AboutPageViewModel(FuckOffService service)
 {
     this.nrOfFuckoffs   = service.FuckOffCounter.ToString();
     this.apiVersion     = service.APIVersion;
     this.apiName        = service.APIName;
     this.projectVersion = service.ProjectVersion;
     this.projectName    = service.ProjectName;
 }
コード例 #3
0
 public MainPage(MainPageViewModel viewModel)
 {
     InitializeComponent();
     this.service   = viewModel.AppService;
     BindingContext = viewModel;
 }
コード例 #4
0
 public App()
 {
     fuckOffService = new FuckOffService(new FuckOffSettings(), new FoaasAPI(new WebRequestWrapper()));
     mainPage       = new MainPage(new MainPageViewModel(fuckOffService));
     MainPage       = new NavigationPage(mainPage);
 }