示例#1
0
        private void buttonAdd_Click(object sender, RoutedEventArgs e)
        {
            CreateReceiptWindow crw = new CreateReceiptWindow(0);

            crw.Owner = this;
            crw.Show();
        }
示例#2
0
        private void menuEdit_Click_1(object sender, RoutedEventArgs e)
        {
            selectedOrderID = ((DAL.Entities.Order)DataGridOrders.SelectedItem).OrderId;

            CreateReceiptWindow crw = new CreateReceiptWindow(selectedOrderID);

            crw.Owner = this;
            crw.Show();
        }
示例#3
0
        private void DataGridOrders_PreviewMouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            var k = (DataGrid)sender;

            selectedOrderID = ((DAL.Entities.Order)k.SelectedItem).OrderId;

            CreateReceiptWindow crw = new CreateReceiptWindow(selectedOrderID);

            crw.Owner = this;
            crw.Show();
        }
示例#4
0
        private void menuEdit_Click(object sender, RoutedEventArgs e)
        {
            var k = (DataGrid)e.OriginalSource;

            selectedOrderID = ((DBZion.DAL.Entities.Order)k.SelectedItem).OrderId;

            CreateReceiptWindow crw = new CreateReceiptWindow(selectedOrderID);

            crw.Owner = this;
            crw.Show();
        }
示例#5
0
        private void menuView_Click(object sender, RoutedEventArgs e)
        {
            int selectedOrderID = ((Order)DataGridOrders.SelectedItem).OrderId;

            main.selectedOrderID = selectedOrderID;

            CreateReceiptWindow crw = new CreateReceiptWindow(selectedOrderID);

            crw.Owner = main;
            crw.Show();
        }