コード例 #1
0
 /// <summary>
 /// Raises the GroupIntervalClick event.
 /// </summary>
 /// <param name="e">A EventArgs that contains the event data.</param>
 private void OnGroupIntervalClick(OutlookGridColumnEventArgs e)
 {
     if (GroupIntervalClick != null)
     {
         GroupIntervalClick(this, e);
     }
 }
コード例 #2
0
 /// <summary>
 /// Raises the OnSortBySummaryCount event.
 /// </summary>
 /// <param name="e">A EventArgs that contains the event data.</param>
 private void OnSortBySummaryCount(OutlookGridColumnEventArgs e)
 {
     if (SortBySummaryCount != null)
     {
         SortBySummaryCount(this, e);
     }
 }
コード例 #3
0
 /// <summary>
 /// Raises the Group Expand event.
 /// </summary>
 /// <param name="e">A EventArgs that contains the event data.</param>
 protected virtual void OnGroupExpand(OutlookGridColumnEventArgs e)
 {
     if (GroupExpand != null)
     {
         GroupExpand(this, e);
     }
 }
コード例 #4
0
 /// <summary>
 /// Raises the Group Collapse event.
 /// </summary>
 /// <param name="e">A EventArgs that contains the event data.</param>
 protected virtual void OnGroupCollapse(OutlookGridColumnEventArgs e)
 {
     if (GroupCollapse != null)
     {
         GroupCollapse(this, e);
     }
 }
コード例 #5
0
 /// <summary>
 /// Raises the ColumnGroupOrderChanged event.
 /// </summary>
 /// <param name="e">A OutlookGridColumnEventArgs that contains the event data.</param>
 protected virtual void OnColumnGroupOrderChanged(OutlookGridColumnEventArgs e)
 {
     if (ColumnGroupOrderChanged != null)
     {
         ColumnGroupOrderChanged(this, e);
     }
 }
コード例 #6
0
 /// <summary>
 /// Handles the GroupExpandEvent event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void GridGroupExpandEvent(object sender, OutlookGridColumnEventArgs e)
 {
     Expand(e.Column.Name);
     #if (DEBUG)
     Console.WriteLine("OutlookGrid - Receives GridGroupExpandEvent");
     #endif
 }
コード例 #7
0
 /// <summary>
 /// Handles the ColumnSortChangedEvent event. Update the header (glyph) and fill the grid too.
 /// </summary>
 /// <param name="sender">Source of the event.</param>
 /// <param name="e">A OutlookGridColumnEventArgs that contains the event data.</param>
 private void ColumnSortChangedEvent(object sender, OutlookGridColumnEventArgs e)
 {
     #if (DEBUG)
     Console.WriteLine("OutlookGrid - Receives ColumnSortChangedEvent : " + e.Column.Name + " " + e.Column.SortDirection.ToString());
     #endif
     internalColumns[e.Column.Name].SortDirection = e.Column.SortDirection;
     internalColumns[e.Column.Name].DataGridViewColumn.HeaderCell.SortGlyphDirection = e.Column.SortDirection;
     Fill();
 }
コード例 #8
0
 /// <summary>
 /// Handles the ColumnGroupRemovedEvent event. Fill the grid too.
 /// </summary>
 /// <param name="sender">Source of the event.</param>
 /// <param name="e">A OutlookGridColumnEventArgs that contains the event data.</param>
 private void ColumnGroupRemovedEvent(object sender, OutlookGridColumnEventArgs e)
 {
     UnGroupColumn(e.Column.Name);
     //We fill again the grid with the new Grouping info
     Fill();
     #if (DEBUG)
     Console.WriteLine("OutlookGrid - Receives ColumnGroupRemovedEvent : " + e.Column.Name);
     #endif
 }
コード例 #9
0
 private void ColumnGroupIndexChangedEvent(object sender, OutlookGridColumnEventArgs e)
 {
     //TODO 25/01/2014
     internalColumns.ChangeGroupIndex(e.Column);
     Fill(); //to reflect the changes
     ForceRefreshGroupBox();
     #if (DEBUG)
     Console.WriteLine("OutlookGrid - Receives ColumnGroupIndexChangedEvent");
     #endif
 }
コード例 #10
0
 /// <summary>
 /// Raises the ColumnSortChanged event.
 /// </summary>
 /// <param name="e">A OutlookGridColumnEventArgs that contains the event data.</param>
 protected virtual void OnColumnSortChanged(OutlookGridColumnEventArgs e)
 {
     if (ColumnSortChanged != null)
         ColumnSortChanged(this, e);
 }
コード例 #11
0
 /// <summary>
 /// Raises the OnSortBySummaryCount event.
 /// </summary>
 /// <param name="e">A EventArgs that contains the event data.</param>
 private void OnSortBySummaryCount(OutlookGridColumnEventArgs e)
 {
     if (SortBySummaryCount != null)
         SortBySummaryCount(this, e);
 }
コード例 #12
0
 /// <summary>
 /// Raises the GroupIntervalClick event.
 /// </summary>
 /// <param name="e">A EventArgs that contains the event data.</param>
 private void OnGroupIntervalClick(OutlookGridColumnEventArgs e)
 {
     if (GroupIntervalClick != null)
         GroupIntervalClick(this, e);
 }
コード例 #13
0
 /// <summary>
 /// Raises the Group Expand event.
 /// </summary>
 /// <param name="e">A EventArgs that contains the event data.</param>
 protected virtual void OnGroupExpand(OutlookGridColumnEventArgs e)
 {
     if (GroupExpand != null)
         GroupExpand(this, e);
 }
コード例 #14
0
 /// <summary>
 /// Raises the Group Collapse event.
 /// </summary>
 /// <param name="e">A EventArgs that contains the event data.</param>
 protected virtual void OnGroupCollapse(OutlookGridColumnEventArgs e)
 {
     if (GroupCollapse != null)
         GroupCollapse(this, e);
 }
コード例 #15
0
 private void GroupIntervalClickEvent(object sender, OutlookGridColumnEventArgs e)
 {
     OutlookGridColumn col = internalColumns.FindFromColumnName(e.Column.Name);
     ((OutlookGridDateTimeGroup)col.GroupingType).Interval = ((OutlookGridDateTimeGroup)e.Column.GroupingType).Interval;
     Fill();
     #if (DEBUG)
     Console.WriteLine("OutlookGrid - Receives GroupIntervalClickEvent");
     #endif
 }
コード例 #16
0
 private void SortBySummaryCountEvent(object sender, OutlookGridColumnEventArgs e)
 {
     OutlookGridColumn col = internalColumns.FindFromColumnName(e.Column.Name);
     col.GroupingType.SortBySummaryCount = e.Column.GroupingType.SortBySummaryCount;
     Fill();
     #if (DEBUG)
     Console.WriteLine("OutlookGrid - Receives SortBySummaryCountEvent");
     #endif
 }
コード例 #17
0
 /// <summary>
 /// Raises the ColumnGroupRemoved event.
 /// </summary>
 /// <param name="e">A OutlookGridColumnEventArgs that contains the event data.</param>
 protected virtual void OnColumnGroupRemoved(OutlookGridColumnEventArgs e)
 {
     if (ColumnGroupRemoved != null)
         ColumnGroupRemoved(this, e);
 }