コード例 #1
0
        /// <summary>
        ///     Constructs an instance of <see cref="LayoutEditorColumn" /> class with specified column name.
        /// </summary>
        /// <param name="columnName"></param>
        /// <param name="layoutEditor"></param>
        public LayoutEditorColumn(string columnName, ILayoutEditor layoutEditor)
        {
            if (string.IsNullOrWhiteSpace(columnName))
            {
                throw new ArgumentNullException(nameof(columnName));
            }

            if (layoutEditor == null)
            {
                throw new ArgumentNullException(nameof(layoutEditor));
            }

            ColumnName   = columnName;
            LayoutEditor = layoutEditor;
        }
コード例 #2
0
 public LayoutValueChangedEventArgs(ILayoutEditor editor)
 {
     this.editor = editor;
 }
コード例 #3
0
 /// <summary>
 ///     Constructs an instance of <see cref="LayoutEditorColumn" /> class with specified layout editor instance.
 ///     NOTE: This column must come before other columns that may be removed.
 /// </summary>
 public LayoutEditorColumn(ILayoutEditor layoutEditor) : this(Path.GetRandomFileName(), layoutEditor)
 {
 }
コード例 #4
0
 /// <summary>
 ///     Edits the layout using the specified layout editor.
 /// </summary>
 /// <param name="editor">Layout editor</param>
 /// <param name="args">Arguments for the editor.</param>
 internal void Edit(ILayoutEditor editor, string args)
 {
     currentColumns = editor.Edit(this, args);
 }