Пример #1
0
        private void File_Link_Click()
        {
            string fileLink;

            if (CloudStorage.IsCloudStorage)
            {
                FormFilePicker FormFP = new FormFilePicker(WikiPages.GetWikiPath());
                FormFP.DoHideLocalButton = true;
                FormFP.ShowDialog();
                if (FormFP.DialogResult != DialogResult.OK)
                {
                    return;
                }
                fileLink = FormFP.SelectedFiles[0];
                textContent.SelectedText = "[[filecloud:" + fileLink + "]]";
            }
            else              //Not cloud
            {
                FormWikiFileFolder FormWFF = new FormWikiFileFolder();
                FormWFF.ShowDialog();
                if (FormWFF.DialogResult != DialogResult.OK)
                {
                    return;
                }
                fileLink = FormWFF.SelectedLink;
                textContent.SelectedText = "[[file:" + fileLink + "]]";
            }
            textContent.SelectionLength = 0;
            //RefreshHtml();
        }
Пример #2
0
 private void Folder_Link_Click()
 {
     if (CloudStorage.IsCloudStorage)
     {
         FormFilePicker FormFP = new FormFilePicker(CloudStorage.PathTidy(WikiPages.GetWikiPath()));
         FormFP.DoHideLocalButton = true;
         FormFP.ShowDialog();
         if (FormFP.DialogResult != DialogResult.OK)
         {
             return;
         }
         textContent.SelectedText = "[[foldercloud:" + FormFP.SelectedFiles[0] + "]]";
     }
     else
     {
         FormWikiFileFolder formWFF = new FormWikiFileFolder();
         formWFF.IsFolderMode = true;
         formWFF.ShowDialog();
         if (formWFF.DialogResult != DialogResult.OK)
         {
             return;
         }
         textContent.SelectedText = "[[folder:" + formWFF.SelectedLink + "]]";
     }
     textContent.SelectionLength = 0;
     //RefreshHtml();
 }
Пример #3
0
        private void File_Link_Click()
        {
            FormWikiFileFolder formWFF = new FormWikiFileFolder();

            formWFF.ShowDialog();
            if (formWFF.DialogResult != DialogResult.OK)
            {
                return;
            }
            textContent.Paste("[[file:" + formWFF.SelectedLink + "]]");
            //RefreshHtml();
        }
Пример #4
0
		private void Folder_Link_Click() {
			FormWikiFileFolder formWFF=new FormWikiFileFolder();
			formWFF.IsFolderMode=true;
			formWFF.ShowDialog();
			if(formWFF.DialogResult!=DialogResult.OK) {
				return;
			}
			textContent.Paste("[[folder:"+formWFF.SelectedLink+"]]");
			//RefreshHtml();
		}