예제 #1
0
        private async void Submit_add_representative_Click(object sender, RoutedEventArgs e)
        {
            RepresentativeModel tempRepresentative = new RepresentativeModel(name.Text, surname.Text, Convert.ToInt32(contactNumber.Text), email.Text, Convert.ToInt32((companyId.SelectedItem as Models.ComboBoxItem).Value));
            await RepresentativeProcessor.UploadRepresentative(tempRepresentative);

            this.NavigationService.Navigate(new CompaniesPage());
        }
예제 #2
0
        private async Task LoadFromServerToGrid()
        {
            await CompanyProcessor.LoadCompanies();

            await RepresentativeProcessor.LoadRepresentatives();

            await InvoiceProcessor.LoadInvoices();
        }
예제 #3
0
 public RepresentativesPage(int id)
 {
     InitializeComponent();
     Representatives_Grid.DataContext = RepresentativeProcessor.RepresentativesFromCompany(id);
 }