2018-12-29 11:58:25 +01:00
|
|
|
|
using HospitalServerManager.InterfacesAndEnums;
|
|
|
|
|
using HospitalServerManager.ViewModel;
|
|
|
|
|
using System;
|
2018-12-22 15:52:17 +01:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Runtime.InteropServices.WindowsRuntime;
|
|
|
|
|
using Windows.Foundation;
|
|
|
|
|
using Windows.Foundation.Collections;
|
|
|
|
|
using Windows.UI.Xaml;
|
|
|
|
|
using Windows.UI.Xaml.Controls;
|
|
|
|
|
using Windows.UI.Xaml.Controls.Primitives;
|
|
|
|
|
using Windows.UI.Xaml.Data;
|
|
|
|
|
using Windows.UI.Xaml.Input;
|
|
|
|
|
using Windows.UI.Xaml.Media;
|
|
|
|
|
using Windows.UI.Xaml.Navigation;
|
|
|
|
|
|
|
|
|
|
//Szablon elementu Pusta strona jest udokumentowany na stronie https://go.microsoft.com/fwlink/?LinkId=234238
|
|
|
|
|
|
|
|
|
|
namespace HospitalServerManager.View
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Pusta strona, która może być używana samodzielnie lub do której można nawigować wewnątrz ramki.
|
|
|
|
|
/// </summary>
|
2018-12-29 11:58:25 +01:00
|
|
|
|
public sealed partial class DoctorsPage : Page, IPageNavigateable
|
2018-12-22 15:52:17 +01:00
|
|
|
|
{
|
|
|
|
|
public DoctorsPage()
|
|
|
|
|
{
|
|
|
|
|
this.InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region Events
|
|
|
|
|
|
|
|
|
|
private void SortComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void RadionBtn_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void SearchButton_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void ResetButton_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void DeleteButton_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void EditButton_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void NewRecordButton_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
2018-12-29 11:58:25 +01:00
|
|
|
|
protected override async void OnNavigatedTo(NavigationEventArgs e)
|
2018-12-22 15:52:17 +01:00
|
|
|
|
{
|
2018-12-29 11:58:25 +01:00
|
|
|
|
await RosterViewModel.Read(typeof(DoctorViewModel), "Lekarze");
|
2018-12-22 15:52:17 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private async void Page_Loaded(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
databaseView.ItemsSource = RosterViewModel.ModelsCollection;
|
2018-12-29 11:58:25 +01:00
|
|
|
|
sortComboBox.ItemsSource = RosterViewModel.ColumnNames;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void UnloadPage()
|
|
|
|
|
{
|
|
|
|
|
//throw new NotImplementedException();
|
2018-12-22 15:52:17 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|