private void Search_Click() { //Reselect existing window if available, if not create a new instance if (FormWS == null || FormWS.IsDisposed) { FormWS = new FormWikiSearch(); FormWS.NavToPage = navPage; } FormWS.Show(); if (FormWS.WindowState == FormWindowState.Minimized) //only applicable if re-using an existing instance { FormWS.WindowState = FormWindowState.Normal; } FormWS.BringToFront(); }
private void Search_Click() { FormWikiSearch FormWS = new FormWikiSearch(); FormWS.ShowDialog(); if (FormWS.DialogResult != DialogResult.OK) { return; } if (FormWS.wikiPageTitleSelected == "") { return; } historyNavBack--; //We have to decrement historyNavBack to tell whether or not we need to branch our page history LoadWikiPage(FormWS.wikiPageTitleSelected); }
private void Search_Click() { FormWikiSearch FormWS=new FormWikiSearch(); FormWS.ShowDialog(); if(FormWS.DialogResult!=DialogResult.OK) { return; } if(FormWS.wikiPageTitleSelected=="") { return; } historyNavBack--;//We have to decrement historyNavBack to tell whether or not we need to branch our page history LoadWikiPage(FormWS.wikiPageTitleSelected); }
private void Search_Click() { //Reselect existing window if available, if not create a new instance if(FormWS==null || FormWS.IsDisposed) { FormWS=new FormWikiSearch(); FormWS.NavToPage=navPage; } FormWS.Show(); if(FormWS.WindowState==FormWindowState.Minimized) {//only applicable if re-using an existing instance FormWS.WindowState=FormWindowState.Normal; } FormWS.BringToFront(); }