Esempio n. 1
0
        private void OnCompanyClicked(object sender, RoutedEventArgs e)
        {
            var         d      = (DataInvoice)((Label)sender).DataContext;
            CompanyPage window = new CompanyPage();

            window.DataContext = CompanyHelper.GetCompany(d.ABN);
            window.Owner       = Application.Current.MainWindow;
            window.Show();
        }
Esempio n. 2
0
        private void ListboxCompanies_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            CompanyPage companyPage = new CompanyPage
            {
                DataContext = ((DataCompany)ListboxCompanies.SelectedItem)
            };

            companyPage.Show();
            companyPage.Owner = Application.Current.MainWindow;
        }