//コンストラクタ //Graph2の変数さわれるように public ViewShootingVideo(Graph2 parent, int num) { this.parent = parent; this.videoNum = num; InitializeComponent(); idleHandler = new EventHandler(IdleMethod); Application.Idle += idleHandler; }
List <GraphCluster> Cgraphs = new List <GraphCluster>(); //クラスタ間差異表示グラフ用 public Form1() { InitializeComponent(); //グラフ用のフォーム呼び出し //Kmeansの結果も使用するため引き渡し Graph g = new Graph(kmeans); graphs.Add(g); g.Show(); Graph2 g2 = new Graph2(kmeans); graphs2.Add(g2); g2.Show(); GraphCluster gc = new GraphCluster(kmeans); Cgraphs.Add(gc); gc.Show(); }