当前位置: 首页>>代码示例>>C#>>正文


C# API.AsyncApiEdit类代码示例

本文整理汇总了C#中WikiFunctions.API.AsyncApiEdit的典型用法代码示例。如果您正苦于以下问题:C# AsyncApiEdit类的具体用法?C# AsyncApiEdit怎么用?C# AsyncApiEdit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AsyncApiEdit类属于WikiFunctions.API命名空间,在下文中一共展示了AsyncApiEdit类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LogUploader

        public LogUploader(AsyncApiEdit e)
        {
            BotTag = "|}<!--/bottag-->"; // doing it this way OUGHT to allow inherited classes to override
            TableHeaderUserName = "! Job !! Category !! Page # !! Performed By !! Date";
            TableHeaderNoUserName = "! Job !! Category !! Page # !! Date";

            editor = e.Clone();
        }
开发者ID:svick,项目名称:AWB,代码行数:8,代码来源:LogUploader.cs

示例2: Init

		internal void Init(AsyncApiEdit e, Label ETALabel, PluginSettingsControl.Stats Stats)
		{
			if (!TimerEnabled) {
				ResetVars();
				mETALabel = ETALabel;

				TimerEnabled = true;

				mStats = Stats;
			    mStats.SkipMisc += mStats_SkipMisc;

				Timer1_Tick(null, null);
			}
		}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:14,代码来源:TimerStats.cs

示例3: Init

        internal void Init(AsyncApiEdit e, Label etaLabel, PluginSettingsControl.Stats stats)
        {
            if (!TimerEnabled)
            {
                ResetVars();
                _etaLabel = etaLabel;

                TimerEnabled = true;

                _stats = stats;
                _stats.SkipMisc += StatsSkipMisc;

                Timer1_Tick(null, null);
            }
        }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:15,代码来源:TimerStats.cs

示例4: CreateEditor

        private AsyncApiEdit CreateEditor(string url, bool php5)
        {
            AsyncApiEdit edit = new AsyncApiEdit(url, parentControl, php5)
                                    {
                                        NewMessageThrows = false
                                    };

            edit.OpenComplete += OnOpenComplete;
            edit.SaveComplete += OnSaveComplete;
            edit.PreviewComplete += OnPreviewComplete;
            edit.ExceptionCaught += OnExceptionCaught;
            edit.MaxlagExceeded += OnMaxlagExceeded;
            edit.LoggedOff += OnLoggedOff;
            edit.StateChanged += OnStateChanged;
            edit.Aborted += OnAborted;

            return edit;
        }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:18,代码来源:Session.cs

示例5: OnStateChanged

 void OnStateChanged(AsyncApiEdit sender)
 {
     if (StateChanged != null) StateChanged(sender);
 }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Session.cs

示例6: OnMaxlagExceeded

 void OnMaxlagExceeded(AsyncApiEdit sender, int maxlag, int retryAfter)
 {
     if (MaxlagExceeded != null) MaxlagExceeded(sender, maxlag, retryAfter);
 }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Session.cs

示例7: OnLoggedOff

 void OnLoggedOff(AsyncApiEdit sender)
 {
     if (LoggedOff != null) LoggedOff(sender);
 }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Session.cs

示例8: OnPreviewComplete

 void OnPreviewComplete(AsyncApiEdit sender, string result)
 {
     if (PreviewComplete != null) PreviewComplete(sender, result);
 }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Session.cs

示例9: OnExceptionCaught

 void OnExceptionCaught(AsyncApiEdit sender, Exception ex)
 {
     if (ExceptionCaught != null) ExceptionCaught(sender, ex);
 }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Session.cs

示例10: EditorStatusChanged

		// Webcontrol event handlers:
		private void EditorStatusChanged(AsyncApiEdit sender)
		{
			if (PluginManager.AWBForm.TheSession.Editor.IsActive) {
				LoadArticle();
			}
		}
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:7,代码来源:AssessmentsClass.cs

示例11: IncrementSavedEdits

 internal void IncrementSavedEdits(AsyncApiEdit sender, SaveInfo save)
 {
     IncrementSavedEdits();
 }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:TimerStats.cs

示例12: PageSaved

        private void PageSaved(AsyncApiEdit sender, SaveInfo saveInfo)
        {
            ClearBrowser();
            txtEdit.Text = "";

            //TODO:Reinstate as needed
            //try
            //{
            //    if (IsReadOnlyDB())
            //    {
            //        StartDelayedRestartTimer(null, null);
            //        return;
            //    }
            //}
            //catch (Exception)
            //{
            //    Start();
            //}

            //lower restart delay
            if (_restartDelay > 5)
                _restartDelay -= 1;

            NumberOfEdits++;

            LastArticle = "";
            listMaker.Remove(TheArticle);
            NudgeTimer.Stop();
            SameArticleNudges = 0;
            if (EditBoxTab.SelectedTab == tpHistory)
                EditBoxTab.SelectedTab = tpEdit;
            if (loggingEnabled)
                logControl.AddLog(false, TheArticle.LogListener);
            UpdateOverallTypoStats();

            if (listMaker.Count == 0 && _autoSaveEditBoxEnabled)
                EditBoxSaveTimer.Enabled = false;
            Retries = 0;

            // if user has loaded a settings file, save it every 10 edits if autosavesettings is set
            if (autoSaveSettingsToolStripMenuItem.Checked && (NumberOfEdits % 10 == 0) && !string.IsNullOrEmpty(SettingsFile) && (NumberOfEdits > 5))
                SavePrefs(SettingsFile);

            Start();
        }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:45,代码来源:Main.cs

示例13: LoggedOff

 private void LoggedOff(AsyncApiEdit sender)
 {
     DisableButtons();
 }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Main.cs

示例14: CreateEditor

        private void CreateEditor()
        {
            APIEdit = new AsyncApiEdit(Variables.URLLong, this, Variables.PHP5);
            APIEdit.PreviewComplete += PreviewComplete;

            APIEdit.ExceptionCaught += APIEditExceptionCaught;
        }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:7,代码来源:Main.cs

示例15: APIEditExceptionCaught

 private void APIEditExceptionCaught(AsyncApiEdit sender, Exception ex)
 {
     StartDelayedRestartTimer(null, null);
 }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:4,代码来源:Main.cs


注:本文中的WikiFunctions.API.AsyncApiEdit类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。