Exemple #1
0
        private async void OnAddClicked(object sender, RoutedEventArgs e)
        {
            BuyWindow bw = new BuyWindow(true);

            bw.ShowDialog();
            GetBuys();
        }
Exemple #2
0
        private async void mainDatagrid_GotMouseCapture(object sender, MouseEventArgs e)
        {
            var person = mainDatagrid.SelectedItem as Models.View.ViewBuy;

            if (person is null)
            {
                return;
            }
            BuyWindow buyWindow = new BuyWindow(false, person.BuyId);

            buyWindow.ShowDialog();
            GetBuys();
        }