internal sealed override Column CreateBackup(Model model) { var result = new LocalColumn <T>(); result.Construct(model, model.GetType(), "Column" + (model.LocalColumns.Count + 1).ToString(CultureInfo.InvariantCulture), ColumnKind.Local, null, null); return(result); }
public static RowBinding <TextBox> BindToTextBox(this LocalColumn <IPropertySymbol> column) { return(new RowBinding <TextBox>((v, p) => { v.Text = p.GetValue(column)?.Name; }).WithInput(new ExplicitTrigger <TextBox>(), column, null)); }
public static RowBinding <TextBlock> BindToTextBlock(this LocalColumn <IParameterSymbol> param) { return(new RowBinding <TextBlock>((v, p) => { v.Text = p.GetValue(param)?.Name; }).WithInput(new ExplicitTrigger <TextBlock>(), param, null)); }
public static RowBinding <TextBlock> BindToTextBlock(this LocalColumn <IFieldSymbol> mounter) { return(new RowBinding <TextBlock>((v, p) => { v.Text = p.GetValue(mounter)?.Name; }).WithInput(new ExplicitTrigger <TextBlock>(), mounter, null)); }
private static int CalculateNum2(DataRow dataRow, LocalColumn <int> num1) { return(num1[dataRow] * 2); }
public PasswordBoxVisibility(LocalColumn <bool> isPassword) { _isPassword = isPassword; }
private static TreeNode GetTreeNode(DataRow dataRow, LocalColumn <T> node) { return(node[dataRow]); }