public GraphExternForm() { flagReload = false; extData = new ExtData(); dataOpen = new myclass[11]; int i = 0; while (i != 11) { dataOpen[i] = new myclass(); i++; } CallBackMy.callbackEventHandler = new CallBackMy.callbackEvent(this.ReloadWork); if (!externTimer.Enabled) { externTimer.Tick += new EventHandler(timer_extern); //подписываемся на события Tick externTimer.Interval = 1000; externTimer.Start(); } InitializeComponent(); }
static void ReloadExtPoint(ExtData ext) { extData = ext; }
static void ReloadData(myclass[] what) { dataClass = what; extData = dataClass[10].ExtDataPoint; }