コード例 #1
0
 public void RowCopy(CellControl cellControl,
                     ObservableCollection<Y_NORM_MANAGEMENT_GET_PARAMETER_VALUES_Result> newValues, int newSeq)
 {
     var oldCell = cellControl.DataContext as Y_NORM_NORMATIVE_CELL;
     Y_NORM_NORMATIVE_ROW newRow =
         oldCell.Y_NORM_NORMATIVE_ROW.Clone(
             IdGenerator.GetId(oldCell.Y_NORM_NORMATIVE_ROW.Y_NORM_NORMATIVE_HEAD.Y_NORM_NORMATIVE_ROW),
             string.Join(",", newValues.Select(y => y.VALUE)), oldCell.ID_COLUMN, newSeq);
     oldCell.Y_NORM_NORMATIVE_ROW.Y_NORM_NORMATIVE_HEAD.Y_NORM_NORMATIVE_ROW.Add(newRow);
     var rowControl = new RowControl {DataContext = newRow};
     foreach (object cellCon in rowControl.rowPanel.Children)
     {
         if (cellCon.GetType() == typeof (CellControl))
         {
             ((CellControl) cellCon).CellController.CheckController();
         }
     }
     var normControl = UIHelper.FindVisualParent<NormativeControl>(cellControl);
     var oldRowControl = UIHelper.FindVisualParent<RowControl>(cellControl);
     normControl.normPanel.Children.Insert(normControl.normPanel.Children.IndexOf(oldRowControl) + newSeq,
                                           rowControl);
 }
コード例 #2
0
 public void CellAdd(CellControl cell)
 {
     Group.Add(cell);
 }