Пример #1
0
 private void BtRefresh_Click(object sender, RoutedEventArgs e)
 {
     if (tb_Document.IsSelected)
     {
         DSearchControl.ResetSearchControl();
         d = new DocumentModel(this);
     }
     else if (tb_DocumentAttributes.IsSelected)
     {
         DASearchControl.ResetSearchControl();
         da = new DocumentAttributesModel(this);
     }
 }
Пример #2
0
        private void TbPage_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (!(e.Source is TabControl))
            {
                return;
            }

            if (tb_Document.IsSelected)
            {
                if (d == null)
                {
                    d = new DocumentModel(this);
                }
            }
            else if (tb_DocumentAttributes.IsSelected)
            {
                if (da == null)
                {
                    da = new DocumentAttributesModel(this);
                }
            }
        }
Пример #3
0
 //Search button of the ForeignKey drop down
 public void btn_Search_Click(object sender, RoutedEventArgs e)
 {
     unit.MUCDropDown.ResetPager();
     DocumentAttributesModel.Search(unit.MUCDropDown.SearchControl);
 }
Пример #4
0
 //Fill Datagrid of the ForeignKeyDropDown when it's dropped down
 void CustomCombo_DropDownOpened(object sender, EventArgs e)
 {
     DocumentAttributesModel.Search(unit.MUCDropDown.SearchControl);
 }
Пример #5
0
 private void DASearchControl_SearchClick(object sender, RoutedEventArgs e)
 {
     DASearchControl.ResetPager();
     DocumentAttributesModel.Search(DASearchControl);
 }