コード例 #1
0
        public RowCollection(RowCollectionMenager rowCollectionMenager, int columnCount, string name)
        {
            InitializeComponent();
            this.objectCollectionRows = new ObjectCollectionRows(rowCollectionMenager, this);
            this.objectCollectionColumns = new ObjectCollectionColumns(columnCount);
            // set RowCollectionMenager for this instance
            this.rowCollectionMenager = rowCollectionMenager;
            // new instance of RowCollectionHelper
            rowCollectionHelper = new RowCollectionHelper(this);
            // bind filter menu to rowCollectionHelper
            tsmFilter.Click += new EventHandler(rowCollectionHelper.ShowFilter);
            // bind group by menu to rowCollectionHelper
            tsmGroupBy.Click += new EventHandler(rowCollectionHelper.GroupBy);

            this.positionColumn = new int[columnCount];
            lObjectName.Text = name;
            ttToolTip.SetToolTip(lObjectName, name);
            this.Name = name;
            cbPriority.SelectedIndex = 0;
        }
コード例 #2
0
        public RowCollection(RowCollectionMenager rowCollectionMenager, int columnCount, string name)
        {
            InitializeComponent();
            this.objectCollectionRows    = new ObjectCollectionRows(rowCollectionMenager, this);
            this.objectCollectionColumns = new ObjectCollectionColumns(columnCount);
            // set RowCollectionMenager for this instance
            this.rowCollectionMenager = rowCollectionMenager;
            // new instance of RowCollectionHelper
            rowCollectionHelper = new RowCollectionHelper(this);
            // bind filter menu to rowCollectionHelper
            tsmFilter.Click += new EventHandler(rowCollectionHelper.ShowFilter);
            // bind group by menu to rowCollectionHelper
            tsmGroupBy.Click += new EventHandler(rowCollectionHelper.GroupBy);

            this.positionColumn = new int[columnCount];
            lObjectName.Text    = name;
            ttToolTip.SetToolTip(lObjectName, name);
            this.Name = name;
            cbPriority.SelectedIndex = 0;
        }