public ToDosPageViewModel(IEasyMobileServiceClient client) { this.client = client; this.toDoTable = client.Table <ToDo>(); ToDos = new ObservableRangeCollection <ToDo>(); }
public ToDoPage(IEasyMobileServiceClient client, Models.ToDo todo) { InitializeComponent(); var viewModel = new ViewModels.ToDoViewModel(client, todo); BindingContext = viewModel; }
public ToDoViewModel(IEasyMobileServiceClient client, Models.ToDo todo) : base(client) { this.client = client; this.todo = todo; Title = todo.Id == null ? "Add To Do" : "Edit To Do"; }
public ToDoListPage(IEasyMobileServiceClient client) { InitializeComponent(); var viewModel = new ViewModels.ToDosViewModel(client); BindingContext = viewModel; listView.ItemsSource = viewModel.Items; }
public App() { InitializeComponent(); client = new EasyMobileServiceClient(); client.Initialize("http://xamarin-todo-sample.azurewebsites.net"); client.RegisterTable <ToDo>(); client.FinalizeSchema(); MainPage = new NavigationPage(new Pages.ToDoListPage(client)); }
public App() { Client = new EasyMobileServiceClient(); Client.Initialize("http://xamarintranslation.azurewebsites.net"); Client.RegisterTable <Word>(); Client.FinalizeSchema(); // The root page of your application MainPage = new PlayPage(); }
public App() { InitializeComponent(); client = new EasyMobileServiceClient(); client.Initialize("http://xamarin-todo-sample.azurewebsites.net"); client.RegisterTable<ToDo>(); client.FinalizeSchema(); MainPage = new NavigationPage(new Pages.ToDoListPage(client)); }
public App() { AzureClient = EasyMobileServiceClient.Create(); AzureClient.Initialize("https://montemagnospeakers.azurewebsites.net"); AzureClient.RegisterTable <Model.Speaker>(); AzureClient.FinalizeSchema(); // The root page of your application var content = new SpeakersPage(); MainPage = new NavigationPage(content); }
public override async void ViewDidLoad() { base.ViewDidLoad(); client = new EasyMobileServiceClient(); client.Initialize("http://xamarin-todo-sample.azurewebsites.net"); client.RegisterTable<ToDo>(); client.FinalizeSchema(); dataStore = client.Table<ToDo>(); await dataStore.Sync(); items = await dataStore.GetItemsAsync(); }
public override async void ViewDidLoad() { base.ViewDidLoad(); client = new EasyMobileServiceClient(); client.Initialize("http://xamarin-todo-sample.azurewebsites.net"); client.RegisterTable <ToDo>(); client.FinalizeSchema(); dataStore = client.Table <ToDo>(); await dataStore.Sync(); items = await dataStore.GetItemsAsync(); }
public App() { InitializeComponent(); // 1. Create a new EasyMobileServiceClient. AzureClient = EasyMobileServiceClient.Create(); // 2. Initialize the library with the URL of the Azure Mobile App you created in Step #1. // Example: https://appservicehelpers.azurewebsites.net AzureClient.Initialize("https://ucl-1.azurewebsites.net"); // 3. Register a model with the EasyMobileServiceClient to create a table. AzureClient.RegisterTable <Model.Lecture>(); // 4. Finalize the schema for our database. All table registrations must be done before this step. AzureClient.FinalizeSchema(); var content = new LecturesPage(); MainPage = new NavigationPage(content); }
public TableViewModel(IEasyMobileServiceClient client) { _client = client; _table = client.Table <TEntity>(); }
/// <summary> /// Initializes a new instance of the <see cref="T:Azure.Mobile.Forms.BaseAzureViewModel`1"/> class. /// </summary> /// <param name="client">EasyMobileServiceClient for performing table operations.</param> public BaseAzureViewModel(IEasyMobileServiceClient client) { this.client = client; table = client.Table <T>(); }
public ToDoListPage(IEasyMobileServiceClient client) { InitializeComponent(); BindingContext = new ViewModels.ToDosViewModel(client); }
public ToDosViewModel(IEasyMobileServiceClient client) : base(client) { this.client = client; Title = "To Do List"; }
public ToDoPage(IEasyMobileServiceClient client, ToDo selectedItem) { InitializeComponent(); BindingContext = new ViewModels.ToDoPageViewModel(client, selectedItem); }
public TodoItemManager(IEasyMobileServiceClient mobileServiceClient) { TodoItemTable = mobileServiceClient.Table <TodoItem>(); }
public TodoListViewModel(IEasyMobileServiceClient client) : base(client) { }
public LecturesViewModel(IEasyMobileServiceClient client) : base(client) { }
public ToDoPageViewModel(IEasyMobileServiceClient client, ToDo selectedItem) { ToDo = selectedItem; this.client = client; }