Exemplo n.º 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());
        }
Exemplo n.º 2
0
        private async Task LoadFromServerToGrid()
        {
            await CompanyProcessor.LoadCompanies();

            await RepresentativeProcessor.LoadRepresentatives();

            await InvoiceProcessor.LoadInvoices();
        }
Exemplo n.º 3
0
 public RepresentativesPage(int id)
 {
     InitializeComponent();
     Representatives_Grid.DataContext = RepresentativeProcessor.RepresentativesFromCompany(id);
 }