AutoWikiBrowser.Plugins.Kingbotk.Article.EditInBrowser C# (CSharp) Метод

EditInBrowser() приватный Метод

private EditInBrowser ( ) : void
Результат void
        internal void EditInBrowser()
        {
            Tools.EditArticleInBrowser(FullArticleTitle);
        }

Usage Example

Пример #1
0
	    private static string FinaliseArticleProcessing(Article TheArticle, ref bool Skip, ref string Summary, string ArticleText, bool ReqPhoto)
		{

			SkipReason SkipReason = SkipReason.Other;

			if (TheArticle.PluginManagerGetSkipResults == SkipResults.NotSet) {
				PluginSettings.PluginStats.Tagged += 1;
			} else {
				var _with6 = PluginSettings.PluginStats;
				switch (TheArticle.PluginManagerGetSkipResults) {
					case SkipResults.SkipBadTag:
						// always skip
						if (PluginSettings.SkipBadTags) {
							_with6.SkippedBadTagIncrement();
							if (PluginSettings.OpenBadInBrowser)
								TheArticle.EditInBrowser();
							Skip = true;
							// always skip
							SkipReason = SkipReason.BadTag;
						} else {
							// the plugin manager stops processing when it gets a bad tag. We know however
							// that one plugin found a bad template and possibly replaced it with
							// conTemplatePlaceholder. We're also not skipping, so we need to remove the placeholder
                            TheArticle.AlteredArticleText = TheArticle.AlteredArticleText.Replace(Constants.conTemplatePlaceholder, "");
							MessageBox.Show("Bad tag. Please fix it manually or click ignore.", "Bad tag", MessageBoxButtons.OK, MessageBoxIcon.Warning);
							PluginSettings.PluginStats.Tagged += 1;
						}
						break;
					case SkipResults.SkipRegex:
					case SkipResults.SkipNoChange:
						if (TheArticle.ProcessIt) {
							PluginSettings.PluginStats.Tagged += 1;
						} else {
							if (TheArticle.PluginManagerGetSkipResults == SkipResults.SkipRegex) {
								_with6.SkippedMiscellaneousIncrement();
								Skip = true;
								SkipReason = SkipReason.Regex;
							// No change:
							} else {
								if (PluginSettings.SkipWhenNoChange) {
									_with6.SkippedNoChangeIncrement();
									SkipReason = SkipReason.NoChange;
									Skip = true;
								} else {
									PluginSettings.PluginStats.Tagged += 1;
									Skip = false;
								}
							}
						}
						break;
				}
			}

			if (Skip) {
				return Skipping(ref Summary, TheArticle.EditSummary, SkipReason, ArticleText, ref Skip);
			}
		    var _with7 = TheArticle;
		    if (ReqPhoto) {
		        _with7.AlteredArticleText = ReqPhotoNoParamsRegex.Replace(_with7.AlteredArticleText, "");
		        _with7.DoneReplacement("{{[[template:reqphoto|reqphoto]]}}", "template param(s)", true, PluginName);
		        _with7.ArticleHasAMajorChange();
		    }

		    _with7.FinaliseEditSummary();
		    Summary = _with7.EditSummary;
		    return _with7.AlteredArticleText;
		}
All Usage Examples Of AutoWikiBrowser.Plugins.Kingbotk.Article::EditInBrowser