Пример #1
0
    private void SetRandomTip()
    {
        TipTable tip = DataManager.GetInstance().GetRandomTipTable();

        tipText.text     = tip.GetTipText();
        loadingText.text = DataManager.GetText(TextTable.loadingKey);
    }
 private void ManifTable_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     if (sender != null)
     {
         DataGrid grid = sender as DataGrid;
         if (grid != null && grid.SelectedItems != null && grid.SelectedItems.Count == 1)
         {
             DataGridRow row = grid.ItemContainerGenerator.ContainerFromItem(grid.SelectedItem) as DataGridRow;
             if (!row.IsMouseOver)
             {
                 (row as DataGridRow).IsSelected = false;
             }
         }
         TipTable.UnselectAll();
         EtiketTable.UnselectAll();
     }
 }
 private void EtiketTable_GotFocus(object sender, RoutedEventArgs e)
 {
     ManifTable.UnselectAll();
     TipTable.UnselectAll();
 }