private void SaveOrderNo_OnClick(object sender, RoutedEventArgs e) { SaveModel(); var orders = ((OrderRepo)Repo).LoadOrders(JobCardId); ModelList.Clear(); ModelList.AddAll(orders); }
private void On_Enter_Key_Up(object sender, KeyEventArgs e) { if (e.Key != Key.Enter) { return; } SaveModel(); var orders = ((OrderRepo)Repo).LoadOrders(JobCardId); ModelList.Clear(); ModelList.AddAll(orders); }