Ejemplo n.º 1
0
        private void btnCancelEditSupplier_Click(object sender, RoutedEventArgs e)
        {
            var oswindow = new SuppliersPage();

            oswindow.Show();
            this.Close();
        }
Ejemplo n.º 2
0
        private void btnAddSupplier_Click(object sender, RoutedEventArgs e)
        {
            var sname    = tbxSupplierName.Text;
            var sdetails = tbxSupplierDetails.Text;

            ViewModelLocator.SupplierViewModel.AddSupplier(sname, sdetails);
            ViewModelLocator.SupplierViewModel.CreateSupplierList();

            var oswindow = new SuppliersPage();

            oswindow.Show();
            this.Close();
        }