public ProgressForm(ForeachForm p, string Name) { FEParent = p; utcStart = DateTime.UtcNow; InitializeComponent(); this.Text = Name; }
private void forEachToolStripMenuItem_Click(object sender, EventArgs e) { try { if (LeftDS.isConnected() == true && RightDS.isConnected() == true) { if (CenterFE == null) { CenterFE = new ForeachForm(LeftDS, RightDS); } else if (CenterFE.Visible == false) { CenterFE = new ForeachForm(LeftDS, RightDS); } CenterFE.MdiParent = this; CenterFE.Show(); CenterFE.Focus(); } } catch (Exception err) { errorLog(System.Reflection.MethodBase.GetCurrentMethod().Name, err); } }