Example #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);
     }
 }
Example #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);
                }
            }
        }
Example #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);
 }
Example #4
0
 //Fill Datagrid of the ForeignKeyDropDown when it's dropped down
 void CustomCombo_DropDownOpened(object sender, EventArgs e)
 {
     DocumentAttributesModel.Search(unit.MUCDropDown.SearchControl);
 }
Example #5
0
 private void DASearchControl_SearchClick(object sender, RoutedEventArgs e)
 {
     DASearchControl.ResetPager();
     DocumentAttributesModel.Search(DASearchControl);
 }