/// <summary> /// Konstruktor klasy /// Pobiera zmienną przejścia do nastepnego widoku /// inicjuje obiekt Dt oraz ustawia zmienną add na 1 /// Wywołuje metodę InitCommand /// </summary> /// <param name="navService">parametr informujący o przejściu do dalszego widoku strony</param> public CreateBaseAddColumnsViewModel(IMyNavigationService navService) { this.navigationService = navService; Dt = new DataTable(); add = 1; InitCommand(); }
public TestViewModel(IMyNavigationService navService) { servObj = new WebService(); navigationService = navService; InitCommand(); LoadAllTest(); }
public AddReminderViewModel(IMyNavigationService navigationService) { DemoButtonCommand = new Command(() => { //Do something e.g: //navigationService.GoBack(); }); }
public ActivityHomeViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; // var database = new ActivityDatabase (); NewActivityCommand = new Command (() => this.navigationService.NavigateTo (ViewModelLocator.AddActivityPageKey)); }
public LoginPageViewModel (IMyNavigationService navigationService) { this.navigationService = navigationService; LoggedIn = App.LoggedIn; GoToSignupPage = new Command (() => { this.navigationService.NavigateTo(ViewModelLocator.SignupPageKey); }); Login = new Command ( async () => { // var database = new ECOdatabase(); var database = new AzureDatabase (); // database1.GetUsers(); int rowcount = await database.ValidateUser (Username, Password); if (rowcount == 0) { App.LoggedIn = false; } else { App.LoggedIn = true; //Navigate to homepage without back key this.navigationService.NavigateToModal (ViewModelLocator.HomePageKey); } }); }
public StepPageViewModel(IMyNavigationService navigationService) { ButtonCommand = new Command(() => { //do something neat here }); }
public ActivityHomeViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; // var database = new ActivityDatabase (); NewActivityCommand = new Command(() => this.navigationService.NavigateTo(ViewModelLocator.AddActivityPageKey)); }
public EventCreateViewModel(IMyNavigationService navigationService) { var database = new NoteDatabase(); SaveNoteCommand = new Command(() => { Event.Attendees = ""; foreach (Person p in people) { Event.Attendees += p.NoteId + ","; } Event.Attendees = Event.Attendees.Trim(','); var cal = new MyCalendar(); if (!(Event.CalId <= 0)) { cal.removeSystemCal(Event.CalId); } //Debug.WriteLine(Event.TimeStamp); long newid = cal.addToSystemCal(Event.TimeStamp, Event.titleText, Event.NoteDetail, Event.LocationText); Event.CalId = newid; //Debug.WriteLine(Event.TimeStamp); Event.TimeStamp = Event.TimeStamp.AddHours(10); //stop the database messing up dates database.InsertOrUpdateNote(Event); //Debug.WriteLine(database.GetNote(id).TimeStamp); navigationService.GoBack(); }); }
public AddPatientViewModel(IMyNavigationService navService) { servObj = new WebService(); //servObj = new WebService_Binding(); navigationService = navService; InitCommand(); }
public SettingsHomeViewModel(IMyNavigationService navigationService) { DemoButtonCommand = new Command(() => { //Do something e.g: //navigationService.GoBack(); navigationService.NavigateTo(ViewModelLocator.SamplePagePageKey); }); }
public PhoneBookViewModel(IPhoneBookService dataService, IMyNavigationService navigationService) { _dataService = dataService; _navigationService = navigationService; LoadItemsCommand = new Command(async() => await InitializeAsync()); AddTapCommand = new Command(AddTabItem); }
public RemindersHomeViewModel(IMyNavigationService navigationService) { AddNewReminderCommand = new Command(() => { //Do something e.g: //navigationService.GoBack(); navigationService.NavigateTo(ViewModelLocator.AddReminderPageKey); }); }
public NoteDetailViewModel(IMyNavigationService navigationService) { var database = new NoteDatabase(); SaveNoteCommand = new Command (() => { database.InsertOrUpdateNote(new Note(NoteTitle,DateTime.Now.ToString(),NoteActionFlag.ToString(),NoteDetail)); navigationService.GoBack(); }); }
public ReminderDetailViewModel(IMyNavigationService navigationService) { var database = new RemindersTable(); SaveReminderCommand = new Command (() => { database.InsertOrUpdateNote(new Reminder(ReminderTitle,DateTime.Now.ToString(),ReminderActionFlag.ToString(),ReminderDetail)); navigationService.GoBack(); }); }
public ChangePatientViewModel(IMyNavigationService navService) { servObj = new WebService(); navigationService = navService; SetSearchPatient(); SetPatientData(); InitCommand(); }
public EmployeeDetailViewModel (IMyNavigationService navigationService) { var database = new EmployeeDatabase(); SaveNoteCommand = new Command (() => { database.InsertOrUpdateNote(new Employee(EmployeeName,DateTime.Now.ToString(),EmployeeAvailebleTime.ToString(),EmployeePosition)); navigationService.GoBack(); }); }
public AddOrderViewModel(IMyNavigationService navService) { servObj = new WebService(); navigationService = navService; InitCommand(); SelectedTests = new List <TestModel>(); SelectedTitles = new ObservableCollection <string>(); ClearSelectedTests(); }
public TrzyNaTrzyViewModel(IMyNavigationService navService) { DispatcherTimerSetup(); this.navigationService = navService; InitCommand(); Image = ViewModelLocator.DisplayImage; Original = GameHelper.OriginalImage(Image, 3); GameList = GameHelper.SplitImage(Image, 3); MyCounter = 0; }
public MainViewModel(IMyNavigationService navService) { SelectedInd = -1; navigationService = navService; InitCommand(); ImageSound = "/Images/speaker.png"; mediaPlayer = new MediaPlayer(); mediaPlayer.Open(new Uri("D:/c#/Nowy folder/Układanka/Układanka/Układanka/Music/Rick and Morty - Evil Morty.mp3")); mediaPlayer.Volume = 150; PlayOrStop(); }
// public ICommand NewEventCommand { get; private set; } /// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public NavPageViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; NewEventCommand = new Command (() => this.navigationService.NavigateTo (ViewModelLocator.EventCreatePageKey)); EventsViewCommand = new Command (() => this.navigationService.NavigateTo (ViewModelLocator.FeedPageKey)); CalendarCommand = new Command (() => this.navigationService.NavigateTo (ViewModelLocator.CalendarPageKey)); UserAccountCommand = new Command (() => this.navigationService.NavigateTo (ViewModelLocator.UserAccountPageKey)); ContactsCommand = new Command (() => this.navigationService.NavigateTo (ViewModelLocator.ContactsPageKey)); //NewNoteCommand = new Command (() => this.navigationService.NavigateTo (ViewModelLocator.EventCreatePageKey)); }
// public ICommand NewEventCommand { get; private set; } /// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public NavPageViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; NewEventCommand = new Command(() => this.navigationService.NavigateTo(ViewModelLocator.EventCreatePageKey)); EventsViewCommand = new Command(() => this.navigationService.NavigateTo(ViewModelLocator.FeedPageKey)); CalendarCommand = new Command(() => this.navigationService.NavigateTo(ViewModelLocator.CalendarPageKey)); UserAccountCommand = new Command(() => this.navigationService.NavigateTo(ViewModelLocator.UserAccountPageKey)); ContactsCommand = new Command(() => this.navigationService.NavigateTo(ViewModelLocator.ContactsPageKey)); //NewNoteCommand = new Command (() => this.navigationService.NavigateTo (ViewModelLocator.EventCreatePageKey)); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public HomePageViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; ////if (IsInDesignMode) ////{ //// // Code runs in Blend --> create design time data. ////} ////else ////{ //// // Code runs "for real" ////} LogOutFunction = new Command (() => { App.LoggedIn = false; this.navigationService.NavigateToModal(ViewModelLocator.HomePageKey); }); GoToLoginPage = new Command (param => { var x = param as String; this.navigationService.NavigateTo (ViewModelLocator.LoginPageKey); }); GoToBuylistPage = new Command (() => { this.navigationService.NavigateTo (ViewModelLocator.BuylistPageKey); }); GoToCartPage = new Command (() => { this.navigationService.NavigateTo (ViewModelLocator.CartPageKey); }); GoToConnectPage = new Command (() => { this.navigationService.NavigateTo(ViewModelLocator.ConnectPageKey); }); GoToReceivePage = new Command (() => { this.navigationService.NavigateTo(ViewModelLocator.ReceivePageKey); }); GoToMapPage = new Command (() => { this.navigationService.NavigateTo(ViewModelLocator.MapPageKey); }); GoToScannerPage = new Command (async() => { var data = await DependencyService.Get<IScanner> ().Scan (); if(data != null){ var database = new ECOdatabase(); List<WoolworthsItem> resultSet = database.SearchWoolWorthsItem(data); } }); }
public ScannerPageViewModel (IMyNavigationService navigationService) { this.navigationService = navigationService; // ScanItemToCart = new Command (() => { // var database = new ECOdatabase(); // // CartItem item1 = new CartItem ("Apple", 4.00); // database.InsertItemToCart(item1); // // }); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public ModulePageViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; AddCommentsCommand = new Command (() => { var newComment = new Comment(ModuleId, AddComment); QUTBrainGearDB.InsertOrUpdateComments(newComment); module.moduleComments.Add(newComment); AddComment = null; RaisePropertyChanged (() => ModuleComments); RaisePropertyChanged (() => AddComment); RaisePropertyChanged (() => ListHeight); }); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public HomePageViewModel (IMyNavigationService navigationService) { this.navigationService = navigationService; ////if (IsInDesignMode) ////{ //// // Code runs in Blend --> create design time data. ////} ////else ////{ //// // Code runs "for real" ////} /// LogOutFunction = new Command (() => { App.LoggedIn = false; var database = new ECOdatabase (); database.DeleteAllInBuyList (); this.navigationService.NavigateToModal (ViewModelLocator.HomePageKey); }); GoToLoginPage = new Command (param => { var x = param as String; this.navigationService.NavigateTo (ViewModelLocator.LoginPageKey); }); GoToBuylistPage = new Command (() => { this.navigationService.NavigateTo (ViewModelLocator.BuylistPageKey); }); GoToCartPage = new Command (() => { this.navigationService.NavigateTo (ViewModelLocator.CartPageKey); }); GoToConnectPage = new Command (() => { this.navigationService.NavigateTo (ViewModelLocator.ConnectPageKey); }); GoToReceivePage = new Command (() => { this.navigationService.NavigateTo (ViewModelLocator.ReceivePageKey); }); GoToMapPage = new Command (() => { this.navigationService.NavigateTo (ViewModelLocator.MapPageKey); }); GoToScannerPage = new Command (() => { }); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public NoteListViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; ////if (IsInDesignMode) ////{ //// // Code runs in Blend --> create design time data. ////} ////else ////{ //// // Code runs "for real" ////} NewNoteCommand = new Command (() => this.navigationService.NavigateTo (ViewModelLocator.NoteDetailPageKey)); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public ModulePageViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; AddCommentsCommand = new Command(() => { var newComment = new Comment(ModuleId, AddComment); QUTBrainGearDB.InsertOrUpdateComments(newComment); module.moduleComments.Add(newComment); AddComment = null; RaisePropertyChanged(() => ModuleComments); RaisePropertyChanged(() => AddComment); RaisePropertyChanged(() => ListHeight); }); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public NoteListViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; ////if (IsInDesignMode) ////{ //// // Code runs in Blend --> create design time data. ////} ////else ////{ //// // Code runs "for real" ////} //No longer points to note details - deleted NewNoteCommand = new Command (() => this.navigationService.NavigateTo (ViewModelLocator.RemindersHomePageKey)); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public NoteListViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; ////if (IsInDesignMode) ////{ //// // Code runs in Blend --> create design time data. ////} ////else ////{ //// // Code runs "for real" ////} //No longer points to note details - deleted NewNoteCommand = new Command(() => this.navigationService.NavigateTo(ViewModelLocator.RemindersHomePageKey)); }
public AddTestViewModel(IMyNavigationService navServ) { servObj = new WebService(); TestTitle = new List <string>(); LoadAllTest(); if (ViewModelLocator.OrderNumberViewModel != 0) { TestOrderNumber = ViewModelLocator.OrderNumberViewModel; } else { TestOrderNumber = servObj.NextIdOrder(); } navigationService = navServ; InitCommand(); }
public OrderViewModel(IMyNavigationService navService) { AllTests = new List <TestModel>(); servObj = new WebService(); if (ViewModelLocator.SearchPatient == null) { LoadOrders(); } else { LoadOrders(ViewModelLocator.SearchPatient.MRN); } LoadSearchPatient(); navigationService = navService; InitCommand(); }
public PromptingHomeViewModel(IMyNavigationService navigationService) { //TOP MENU BUTTONS RemindersButtonCommand = new Command(() => { navigationService.NavigateTo(ViewModelLocator.RemindersHomePageKey); //navigationService.GoBack(); }); PromptingButtonCommand = new Command(() => { navigationService.NavigateTo(ViewModelLocator.PromptingHomePageKey); }); MappingButtonCommand = new Command(() => { navigationService.NavigateTo(ViewModelLocator.MappingHomePageKey); }); SettingsButtonCommand = new Command(() => { navigationService.NavigateTo(ViewModelLocator.SettingsHomePageKey); }); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public TempMenuViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; LogoutCommand = new Command (() => { database.LoseToken("Yammer"); navigationService.NavigateTo(ViewModelLocator.FeedPageKey); }); ContactsCommand = new Command (() => { database.truncadePerson(); MyCalendar.ImportContacts(); }); CalendarCommand = new Command (() => { database.truncade(); MyCalendar.ImportCalendar(); }); PurgeCommand = new Command (() => { database.truncade(); database.truncadePerson(); }); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public TempMenuViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; LogoutCommand = new Command(() => { database.LoseToken("Yammer"); navigationService.NavigateTo(ViewModelLocator.FeedPageKey); }); ContactsCommand = new Command(() => { database.truncadePerson(); MyCalendar.ImportContacts(); }); CalendarCommand = new Command(() => { database.truncade(); MyCalendar.ImportCalendar(); }); PurgeCommand = new Command(() => { database.truncade(); database.truncadePerson(); }); }
public ViewModelLocator() { myNavigationService = new MyNavigationService(); appViewModel = new AppViewModel(myNavigationService); logInViewModel = new LogInViewModel(myNavigationService); menyuViewModel = new MenyuViewModel(myNavigationService); tripsViewModel = new TripsViewModel(myNavigationService); registrationViewModel = new RegistrationViewModel(myNavigationService); weatherViewModel = new WeatherViewModel(myNavigationService); ticketsPDFViewModel = new TicketsPDFViewModel(myNavigationService); citiesViewModel = new CitiesViewModel(myNavigationService); introViewModel = new IntroViewModel(myNavigationService); mapViewModel = new MapViewModel(myNavigationService); searchInfoViewModel = new SearchInfoViewModel(myNavigationService); ticketsViewModel = new TicketsViewModel(myNavigationService); myNavigationService.Register <LogInViewModel>(logInViewModel); myNavigationService.Register <MenyuViewModel>(menyuViewModel); myNavigationService.Register <TripsViewModel>(tripsViewModel); myNavigationService.Register <RegistrationViewModel>(registrationViewModel); myNavigationService.Register <WeatherViewModel>(weatherViewModel); myNavigationService.Register <TicketsPDFViewModel>(ticketsPDFViewModel); myNavigationService.Register <CitiesViewModel>(citiesViewModel); myNavigationService.Register <IntroViewModel>(introViewModel); myNavigationService.Register <MapViewModel>(mapViewModel); myNavigationService.Register <SearchInfoViewModel>(searchInfoViewModel); myNavigationService.Register <TicketsViewModel>(ticketsViewModel); //myNavigationService.Register("LogIn", logInViewModel); //myNavigationService.Register("Menyu", menyuViewModel); //myNavigationService.Register("Trips", tripsViewModel); //myNavigationService.Register("Registration", registrationViewModel); //myNavigationService.Navigate<LogInViewModel>(); myNavigationService.Navigate <IntroViewModel>(); //myNavigationService.Navigate<TicketsPDFViewModel>(); //myNavigationService.Navigate<TripsViewModel>(); //myNavigationService.Navigate("LogIn"); }
public ImagePickerViewModel(IMyNavigationService navigationService) { OnSelectImage = new Command(() => { //create new model for adding a step //Do something e.g: navigationService.GoBack(); // navigationService.NavigateTo(ViewModelLocator.SamplePagePageKey); }); // SaveAndQuit = new Command(() => // { // //actually implement saving somewhere here // navigationService.GoBack(); // }); // OpenImageSelector = new Command(() => // { // //once i get the image selecor in it'll go here // //navigationService.NavigateTo(); // }); }
public SignupPageViewModel (IMyNavigationService navigationService) { this.navigationService = navigationService; CreateAccount = new Command (() => { if(SignupValidate()){ // create account // User newUser = new User(Username, Password, Mobile, Email); // var database = new ECOdatabase(); // database.InsertItemToUser(newUser); var database = new AzureDatabase(); database.InsertUser(Username, Password, Mobile, Email); this.navigationService.NavigateToModal(ViewModelLocator.HomePageKey); } }); Azure.MobileService.GetTable<User> (); }
public AddActivityViewModel(IMyNavigationService navigationService) { var database = new ActivityDatabase(); DemoButtonCommand = new Command(() => { //create new model for adding a step //Do something e.g: //navigationService.GoBack(); // navigationService.NavigateTo(ViewModelLocator.SamplePagePageKey); }); SaveAndQuit = new Command(() => { database.InsertOrUpdateActivity(new Activities(ActivityName, ActivityLocation, 1, false)); navigationService.GoBack(); }); OpenImageSelector = new Command(() => { //once i get the image selecor in it'll go here //navigationService.NavigateTo(); navigationService.NavigateTo(ViewModelLocator.ImagePickerPageKey); }); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public UserAccountViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; CallCommand = new Command (() => Device.OpenUri(new Uri("tel:"+Who.Phone))); EmailCommand = new Command (() => Device.OpenUri(new Uri("mailto:"+Who.Email))); YammerCommand = new Command (() => Device.OpenUri(new Uri("https://www.yammer.com/users/"+Who.Yammer))); FBCommand = new Command (() => { try{ Device.OpenUri(new Uri("facebook://")); }catch(Exception e){ Device.OpenUri(new Uri("https://www.facebook.com/")); Debug.WriteLine(e.Message); } }); TwitCommand = new Command (() => { try{ Device.OpenUri(new Uri("twitter://")); }catch(Exception e){ Device.OpenUri(new Uri("https://www.twitter.com/")); Debug.WriteLine(e.Message); } }); //facebook fb://messaging?id= }
public EventCreateViewModel(IMyNavigationService navigationService) { var database = new NoteDatabase(); SaveNoteCommand = new Command (() => { Event.Attendees = ""; foreach(Person p in people){ Event.Attendees += p.NoteId + ","; } Event.Attendees = Event.Attendees.Trim(','); var cal = new MyCalendar (); if(! (Event.CalId <= 0)){ cal.removeSystemCal(Event.CalId); } //Debug.WriteLine(Event.TimeStamp); long newid = cal.addToSystemCal(Event.TimeStamp, Event.titleText, Event.NoteDetail, Event.LocationText); Event.CalId = newid; //Debug.WriteLine(Event.TimeStamp); Event.TimeStamp = Event.TimeStamp.AddHours(10);//stop the database messing up dates database.InsertOrUpdateNote(Event); //Debug.WriteLine(database.GetNote(id).TimeStamp); navigationService.GoBack(); }); }
public RemindersHomeViewModel(IMyNavigationService navigationService) { //TOP MENU BUTTONS RemindersButtonCommand = new Command(() => { navigationService.NavigateTo(ViewModelLocator.RemindersHomePageKey); //navigationService.GoBack(); }); PromptingButtonCommand = new Command(() => { navigationService.NavigateTo(ViewModelLocator.PromptingHomePageKey); }); MappingButtonCommand = new Command(() => { navigationService.NavigateTo(ViewModelLocator.MappingHomePageKey); }); SettingsButtonCommand = new Command(() => { navigationService.NavigateTo(ViewModelLocator.SettingsHomePageKey); }); if (0 == 0) { //Debug.WriteLine("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~yes"); } backColor = new Color(32,32,32); }
public AddActivityViewModel(IMyNavigationService navigationService) { var database = new ActivityDatabase(); DemoButtonCommand = new Command(() => { //create new model for adding a step //Do something e.g: //navigationService.GoBack(); // navigationService.NavigateTo(ViewModelLocator.SamplePagePageKey); }); SaveAndQuit = new Command (() => { database.InsertOrUpdateActivity(new Activities(ActivityName, ActivityLocation, 1, false)); navigationService.GoBack(); }); OpenImageSelector = new Command(() => { //once i get the image selecor in it'll go here //navigationService.NavigateTo(); navigationService.NavigateTo(ViewModelLocator.ImagePickerPageKey); }); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public UserAccountViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; CallCommand = new Command(() => Device.OpenUri(new Uri("tel:" + Who.Phone))); EmailCommand = new Command(() => Device.OpenUri(new Uri("mailto:" + Who.Email))); YammerCommand = new Command(() => Device.OpenUri(new Uri("https://www.yammer.com/users/" + Who.Yammer))); FBCommand = new Command(() => { try{ Device.OpenUri(new Uri("facebook://")); }catch (Exception e) { Device.OpenUri(new Uri("https://www.facebook.com/")); Debug.WriteLine(e.Message); } }); TwitCommand = new Command(() => { try{ Device.OpenUri(new Uri("twitter://")); }catch (Exception e) { Device.OpenUri(new Uri("https://www.twitter.com/")); Debug.WriteLine(e.Message); } }); //facebook fb://messaging?id= }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public CalendarViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; NewNoteCommand = new Command(() => this.navigationService.NavigateTo(ViewModelLocator.EventCreatePageKey)); }
public ConnectPageViewModel (IMyNavigationService navigationService) { this.navigationService = navigationService; }
public LoginPageViewModel(IMyNavigationService navigationService) { }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public ProgressMapPageViewModel(IMyNavigationService navigationService) { }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public OverviewPageViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; GetData (); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public CalendarViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; NewNoteCommand = new Command (() => this.navigationService.NavigateTo (ViewModelLocator.EventCreatePageKey)); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public OverviewPageViewModel(IMyNavigationService navigationService) { this.navigationService = navigationService; GetData(); }
public ProfileViewModel(IMyNavigationService navigationService) { }
public MainViewModel(IMyNavigationService navService) { navigationService = navService; InitCommand(); }
//probowalem wiele rzeczy i zapomnialem pouusuwac tez xD luzno kminie sobie tylko public DisplayImageViewModel(IMyNavigationService navService) { this.navigationService = navService; Image = navigationService.Parameter.ToString(); InitCommand(); }
public ImageButtonsPageViewModel(IMyNavigationService navigationService) : base(navigationService) { }
public AccordionXMLViewModel(IMyNavigationService navService) : base(navService) { VeggiesAccordionNode = new AccordionNodeViewModel("Veggies", 200, Color.Aqua, Color.Maroon, Color.Fuchsia); FruitAccordionNode = new AccordionNodeViewModel("Fruit", 55, Color.Green, Color.Black); }