private void Showlistview() { DbView dbView = (DbView)Application.OpenForms["DbView"]; if (dbView.treeView1.InvokeRequired) { CodeMakerTran.SetListCallback method = new CodeMakerTran.SetListCallback(this.Showlistview); dbView.Invoke(method, null); return; } this.SetListView(dbView); }
void Showlistview() { DbView dbviewfrm = (DbView)Application.OpenForms["DbView"]; if (dbviewfrm.treeView1.InvokeRequired) { SetListCallback d = new SetListCallback(Showlistview); dbviewfrm.Invoke(d, null); } else { SetListView(dbviewfrm); } }