private void timerLoading_Tick(object sender, EventArgs e) { var bwmMain = new WmsMain(); bwmMain.Show(); timerLoading.Enabled = false; //timerLoading.Dispose(); DialogResult = DialogResult.OK; }