Exemplo n.º 1
0
 private void IssueList_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     if (e.Action == NotifyCollectionChangedAction.Add)
     {
         // scroll the new item into view
         IssueList.ScrollIntoView(e.NewItems[0]);
         TextBox_Title.Focus();
     }
 }
Exemplo n.º 2
0
 private void ClearForm(Object sender, RoutedEventArgs e)
 {
     TextBox_Title.Clear();
     TextBox_BuyValue.Clear();
     TextBox_BuyVolume.Clear();
     TextBox_TotalBuys.Clear();
     TextBox_SellValue.Clear();
     TextBox_SellVolume.Clear();
     TextBox_TotalSells.Clear();
 }
 public void Clear()
 {
     TextBox_Amount.Clear();
     TextBox_Author.Clear();
     TextBox_Duration.Clear();
     TextBox_ISBN.Clear();
     TextBox_Price.Clear();
     TextBox_Title.Clear();
     TextBox_STock.Clear();
     DatePicker_Date.SelectedDate = null;
     Combox_Category.SelectedItem = null;
 }