Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the RowCollection class
        /// that belongs to the specified TableModel
        /// </summary>
        /// <param name="owner">A TableModel representing the tableModel that owns
        /// the RowCollection</param>
        public RowCollection(TableModel owner) : base()
        {
            if (owner == null)
            {
                throw new ArgumentNullException("owner");
            }

            this.owner = owner;

            propertyChangedEventHandler = new RowEventHandler(row_PropertyChanged);
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the RowCollection class 
        /// that belongs to the specified TableModel
        /// </summary>
        /// <param name="owner">A TableModel representing the tableModel that owns 
        /// the RowCollection</param>
        public RowCollection(TableModel owner)
            : base()
        {
            if (owner == null)
            {
                throw new ArgumentNullException("owner");
            }

            this.owner = owner;

            propertyChangedEventHandler = new RowEventHandler(row_PropertyChanged);
        }
Esempio n. 3
0
        /// <summary>
        /// Crée un circuit vide aux dimensions spécifiées.
        /// </summary>
        /// <param name="rowCount"></param>
        /// <param name="colCount"></param>
        public Circuit(int rowCount, int colCount) : this()
        {
            this.OnSetEntry   = null;
            this.OnCreateGate = null;
            this.OnPutGate    = null;
            this.OnMoveGate   = null;
            this.OnRemoveGate = null;
            this.OnInsertRow  = null;
            this.OnMoveRow    = null;
            this.OnRemoveRow  = null;
            this.OnInsertCol  = null;
            this.OnMoveCol    = null;
            this.OnRemoveCol  = null;

            EnsureCapacity(rowCount, colCount);
        }
Esempio n. 4
0
        /// <summary>
        /// Sets up the DataBinding of the Grid.
        /// </summary>
        public static void SetupDataGridDataBinding(TSgrdDataGridPaged ADataGrid, DataTable APagedDataTable,
                                                    RowEventHandler AFocusRowEnteredHandler = null)
        {
            DataView FindResultPagedDV;

            FindResultPagedDV             = APagedDataTable.DefaultView;
            FindResultPagedDV.AllowNew    = false;
            FindResultPagedDV.AllowDelete = false;
            FindResultPagedDV.AllowEdit   = false;
            ADataGrid.DataSource          = new DevAge.ComponentModel.BoundDataView(FindResultPagedDV);

            if (AFocusRowEnteredHandler != null)
            {
                // Hook up event that fires when a different Row is selected
                ADataGrid.Selection.FocusRowEntered += new RowEventHandler(AFocusRowEnteredHandler);
            }
        }