private void DG_Hyperlink_Click(object sender, RoutedEventArgs e) { var rowData = ((Hyperlink)e.OriginalSource).DataContext as LunchOrder; Console.WriteLine("Update " + rowData.Id); var window = new LunchOrderDetailNew(this, rowData.Id); window.Show(); }
private void BtnNewOrder_Click(object sender, RoutedEventArgs e) { LunchOrderDetailNew wndOrderDetai = new LunchOrderDetailNew(this, 0); wndOrderDetai.Show(); }