Example #1
0
        private void btn_DeletePN(object sender, RoutedEventArgs e)
        {
            Button btn = sender as Button;

            if (btn.Tag != null)
            {
                ManagerListAddedBook mlab = btn.Tag as ManagerListAddedBook;
                ListMLAB.Remove(mlab);
                NotifyPropertyChanged("ListMLAB");
                Bus.DeleteData.DeleteManagerListAddedBook(mlab);
            }
        }
Example #2
0
 private void btn_Search_Click(object sender, RoutedEventArgs e)
 {
     if (tb_Search.Text != "")
     {
         ManagerListAddedBook mlab = ListMLAB.FirstOrDefault(x => x.ID.ToString() == tb_Search.Text.ToString());
         if (mlab == null)
         {
             ErrorManager.Current.InfoIsNull.Call("Không tìm được phiếu có mã cần tìm!");
             tb_Search.Text = "";
         }
         else
         {
             lv_ListPN.SelectedItem = mlab;
             lv_ListPN.ScrollIntoView(mlab);
         }
     }
 }