Example #1
0
 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();
 }
Example #2
0
        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);
        }
Example #3
0
		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);
		}
Example #4
0
File: FormWiki.cs Project: mnisl/OD
		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();
		}