private void singleExpSmootToolStripMenuItem_Click(object sender, EventArgs e) { if (this.ActiveMdiChild != null && this.ActiveMdiChild != this.welcomeScreen) { DataForm activeForm = (DataForm)this.ActiveMdiChild; activeForm.ExponentialSmoothing(); } }