コード例 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="source">The source data list for the drag and drop operation</param>
 /// <param name="start">The selection start</param>
 /// <param name="end">The selection end</param>
 /// <param name="mouseButtons">The mouse button used</param>
 public DataListBeginDragEventArgs(DataList source, int start, int end, MouseButtons mouseButtons)
 {
     this.Source = source;
     this.SelectionStart = start;
     this.SelectionEnd = end;
     this.Button = mouseButtons;
 }
コード例 #2
0
        //=====================================================================
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="owner">The control that owns this policy object</param>
        /// <remarks>Additions, edits, and deletes are allowed by default</remarks>
        internal ChangePolicy(object owner)
        {
            dataList = owner as DataList;

            if(dataList == null)
                dataNav = (DataNavigator)owner;

            this.AllowAdditions = this.AllowEdits = this.AllowDeletes = true;
        }