private void BGo_Click(object sender, EventArgs e) { // objekt pro prenost parametru do druheho formulare LinkClass LinkParams = CreateLink(); // spusteni procesu ve vlaknu background workera FrmBGProcess BGProcess = new FrmBGProcess(); DialogResult DResult = BGProcess.ShowDialog(this, LinkParams); }
//////////////////////////////////////////////////////////////////////////////////////////////////// // public new DialogResult ShowDialog(IWin32Window owner, LinkClass LinkParams) { this.LinkParams = LinkParams; return(base.ShowDialog(owner)); }