private void btn_Back_Click(object sender, RoutedEventArgs e)
        {
            PurchaseHistory ph = new PurchaseHistory();

            this.NavigationService.Navigate(ph);
            clearList();
        }
 private void btn_Purchase_History_Click(object sender, RoutedEventArgs e)
 {
     cc.OpenConnection();
     if (cc.BillPreview1("select COUNT(*) from Stock", billExistValue) > 0)
     {
         cc.CloseConnection();
         PurchaseHistory ph = new PurchaseHistory();
         this.NavigationService.Navigate(ph);
     }
     else
     {
         MessageBox.Show("No Bills to Show");
     }
 }
示例#3
0
        private void CommandBinding_Executed_3(object sender, ExecutedRoutedEventArgs e)
        {
            PurchaseHistory ph = new PurchaseHistory();

            frame.NavigationService.Navigate(ph);
        }