private void UpdateExpressionView() { ExpressionView.Rows.Clear(); var rows = new DataGridViewRow[_group.Expressions.Expressions.Count]; for ( int i = 0; i < rows.Length; i++ ) { rows[i] = GetExpressionViewRow( _group.Expressions.Expressions[i] ); } ExpressionView.Rows.AddRange( rows.ToArray() ); ExpressionDetailView.Rows.Clear(); LabelResult.Tag = false; UpdateExpressionLabel(); }
public void ImportExpressionData( ExpressionManager exm ) { _target = exm.Clone(); ExpressionView.Rows.Clear(); var rows = new DataGridViewRow[exm.Expressions.Count]; for ( int i = 0; i < rows.Length; i++ ) { rows[i] = GetExpressionViewRow( exm.Expressions[i] ); } ExpressionView.Rows.AddRange( rows.ToArray() ); ExpressionDetailView.Rows.Clear(); }