private async void PushAlertAction() { if (DataInput == null) { DataInput = new DataContainer(); } else { DataInput.Data = new DataContainer(); } //string imagePicker = await LazyResolver<IImagePickerService>.Service.LaunchImagePickerAsync(); //LoggerService.Log("Image picked with async pattern : " + imagePicker, MessageSeverity.Critical); //NavigationService.Navigate(Views.ADAPTER); //LazyResolver<IMessageDialogService>.Service.Show(Dialogs.MAIN); //Container.Resolve<IMessageDialogService>().Show(Dialogs.COLOR_PICKER); //, new Dictionary<string, object>() //{ // {"LabelText", "Default value for label text"} //}); }
public MainPageViewModel() { Data = new DataContainer(); ButtonCommand = new DelegateCommand(ButtonAction); PushAlertCommand = new DelegateCommand(PushAlertAction); ButtonText = "Hello world !!!!"; PushText = "ALERT !!!"; ILocalizationService localizationService = LazyResolver<ILocalizationService>.Service; string name = localizationService.GetString("Hello"); ButtonText = name; }