private void listView_searchresult_SelectedIndexChanged(object sender, EventArgs e) { try { splashScreenManager1.ShowWaitForm(); string dwgname = listView_searchresult.SelectedItems[0].SubItems[1].Text; string marptype = listView_searchresult.SelectedItems[0].SubItems[4].Text; if (marptype == "0") { return; } MarDrafting kcs_draft = new MarDrafting(); MarUi kcs_ui = new MarUi(); if (kcs_draft.DwgCurrent()) { kcs_draft.DwgClose(); kcs_draft.DwgOpen(dwgname, Convert.ToDouble(marptype), 0); } else { kcs_draft.DwgOpen(dwgname, Convert.ToDouble(marptype), 0); } kcs_ui.AppWindowRefresh(); }catch (Exception ee) { } finally { splashScreenManager1.CloseWaitForm(); } }