private void winParam_ParameterSelected(object sender, CellParamEventArgs e)
 {
     try
     {
         if (_detailCollection.Count(y => y.ID_PARAM == e.Parameter.ID) != 0)
         {
             throw new ArgumentException("Такой параметр уже участвует в профиле!");
         }
         var row = profileDetailgridControl.GetFocusedRow() as Y_NORM_PROFILE_DETAIL;
         row.ID_PARAM = e.Parameter.ID;
     }
     catch (ArgumentException ex)
     {
         MessageBox.Show(ex.Message, "Ошибка", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
 private void WinParamParameterSelected(object sender, CellParamEventArgs e)
 {
     btnParam.Content = e.Parameter.DESC_RU;
     ((Y_NORM_NORMATIVE_CELL) DataContext).Y_NORM_PARAMETERS = e.Parameter;
     _ttParam = new ToolTip {Content = ((Y_NORM_NORMATIVE_CELL) DataContext).Y_NORM_PARAMETERS.DESC_RU};
     btnParam.ToolTip = _ttParam;
     ClearDependancyRows();
     Values.Clear();
     lblParamValues.Content = "";
 }