private void OpenFile(object sender, EventArgs e) { Models.LocalData localData = new Models.LocalData(); if (localData.LoadData()) { GraphForm childGraph = new GraphForm(localData.Queries); childGraph.MdiParent = this; childGraph.Text = localData.FileName; childGraph.Show(); } }
private void MainForm_MdiChildActivate(object sender, EventArgs e) { graph = (GraphForm)ActiveMdiChild; SetControlPanelState(); }