예제 #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.ucTeachPointGrid1         = new TeachPointGrid();
     this.ucTeachPointHistory1      = new TeachPointHistoryGrid();
     this.ucTeachPointHistoryChart1 = new TeachPointHistoryChart();
     this.ucTeachPointStat1         = new TeachPointStat();
     this.SuspendLayout();
     //
     // ucTeachPointGrid1
     //
     this.ucTeachPointGrid1.Location = new System.Drawing.Point(0, 0);
     this.ucTeachPointGrid1.Name     = "ucTeachPointGrid1";
     this.ucTeachPointGrid1.Size     = new System.Drawing.Size(296, 136);
     this.ucTeachPointGrid1.TabIndex = 0;
     //
     // ucTeachPointHistory1
     //
     this.ucTeachPointHistory1.Location = new System.Drawing.Point(0, 136);
     this.ucTeachPointHistory1.Name     = "ucTeachPointHistory1";
     this.ucTeachPointHistory1.Size     = new System.Drawing.Size(296, 120);
     this.ucTeachPointHistory1.TabIndex = 1;
     //
     // ucTeachPointHistoryChart1
     //
     this.ucTeachPointHistoryChart1.Location = new System.Drawing.Point(304, 40);
     this.ucTeachPointHistoryChart1.Name     = "ucTeachPointHistoryChart1";
     this.ucTeachPointHistoryChart1.Size     = new System.Drawing.Size(352, 304);
     this.ucTeachPointHistoryChart1.TabIndex = 2;
     //
     // ucTeachPointStat1
     //
     this.ucTeachPointStat1.Location = new System.Drawing.Point(0, 256);
     this.ucTeachPointStat1.Name     = "ucTeachPointStat1";
     this.ucTeachPointStat1.Size     = new System.Drawing.Size(296, 168);
     this.ucTeachPointStat1.TabIndex = 3;
     //
     // UCTeacPointStore
     //
     this.Controls.Add(this.ucTeachPointStat1);
     this.Controls.Add(this.ucTeachPointHistoryChart1);
     this.Controls.Add(this.ucTeachPointHistory1);
     this.Controls.Add(this.ucTeachPointGrid1);
     this.Name = "UCTeacPointStore";
     this.Size = new System.Drawing.Size(664, 424);
     this.ResumeLayout(false);
 }
예제 #2
0
        public void AttachDisplays(TeachPointHistoryGrid historyDisplay,
                                   TeachPointHistoryChart historyChart,
                                   TeachPointStat statDisplay)
        {
            if (historyDisplay != null)
            {
                SelectEvent += new SelectTeachPointHandler(historyDisplay.Update);
            }

            if (historyChart != null)
            {
                SelectEvent += new SelectTeachPointHandler(historyChart.Update);
            }

            if (statDisplay != null)
            {
                SelectEvent += new SelectTeachPointHandler(statDisplay.Update);
            }
        }