Exemple #1
0
 public void EnableDisable(object dataItem, TemporaryLinkType link, bool enable)
 {
     if (MainControl is I_View_TemporaryView)
     {
         (MainControl as I_View_TemporaryView).DisableEnable(link, enable);
     }
 }
Exemple #2
0
 public void DisableEnable(object dataItem, TemporaryLinkType link, bool enable)
 {
     System.Windows.Threading.Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Input, new Action(() =>
     {
         var dataRow = this.DataControl.GetRowForItem(dataItem);
         var cell    = dataRow.GetCell(this);
         if (cell != null && cell.Content != null)
         {
             if (cell.Content is I_View_TemporaryView)
             {
                 (cell.Content as I_View_TemporaryView).DisableEnable(link, enable);
             }
         }
     }));
 }
 public void DisableEnable(TemporaryLinkType link, bool enable)
 {
     if (link == TemporaryLinkType.SerachView)
     {
         btnLinkSearch.IsEnabled = enable;
     }
     else if (link == TemporaryLinkType.DataView)
     {
         btnLink.IsEnabled = enable;
     }
     else if (link == TemporaryLinkType.Clear)
     {
         btnLinkClear.IsEnabled = enable;
     }
     else if (link == TemporaryLinkType.QuickSearch)
     {
         btnQuickSearch.IsEnabled = enable;
     }
     else if (link == TemporaryLinkType.Popup)
     {
         btnPopup.IsEnabled = enable;
     }
 }
Exemple #4
0
 public void EnableDisable(object dataItem, TemporaryLinkType link, bool enable)
 {
     DataGridColumn.DisableEnable(dataItem, link, enable);
 }