コード例 #1
0
ファイル: MainForm.cs プロジェクト: glugalug/GuideEditingMisc
 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();
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: glugalug/GuideEditingMisc
 private void RecommendedActionButton_Click(object sender, EventArgs e)
 {
     ChannelMapEntryWrapper.SelectDefaultActions();
     ChannelMapGrid.Invalidate(true);
 }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: glugalug/GuideEditingMisc
 private void NoActionButton_Click(object sender, EventArgs e)
 {
     ChannelMapEntryWrapper.ClearSelectedActions();
     ChannelMapGrid.Invalidate(true);
 }