private void SortGrid() { channel_map_.Sort(sort_order_); if (is_sort_reversed_) { channel_map_.Reverse(); } for (int index = 0; index < channel_map_.Count; ++index) { DataGridViewComboBoxCell cell = ChannelMapGrid.Rows[index].Cells[ActionCol.Index] as DataGridViewComboBoxCell; cell.Value = null; cell.Items.Clear(); foreach (CorrectiveAction action in channel_map_[index].GetCorrectiveActions()) { cell.Items.Add(action); } cell.Value = channel_map_[index].selected_action; } ChannelMapGrid.Invalidate(); }
private void RecommendedActionButton_Click(object sender, EventArgs e) { ChannelMapEntryWrapper.SelectDefaultActions(); ChannelMapGrid.Invalidate(true); }
private void NoActionButton_Click(object sender, EventArgs e) { ChannelMapEntryWrapper.ClearSelectedActions(); ChannelMapGrid.Invalidate(true); }