/// <summary> /// 各コントロールの初期化 /// </summary>c private void InintializeViewers() { // ソートオブジェクトの初期化 sortObj = cmb_SortAlgorythm.SelectedItem as SortObject<int>; // 各ビューの初期化 int x = 50; var barColor1 = Color.FromArgb( 255, x, x ); var barColor2 = Color.FromArgb( x, 255, x ); var barColor3 = Color.FromArgb( x, x, 255 ); graphViewer = new GraphViewer( pbx_GraphView, barColor1, barColor2, barColor3 ); graphViewer.SetDataSource( sortObj ); compareCountViewer = new CompareCountViewer( lbl_CompareCount ); compareCountViewer.SetDataSource( sortObj ); swapCountViewer = new SwapCountViewer( lbl_SwapCount ); swapCountViewer.SetDataSource( sortObj ); }