本文整理汇总了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();
}
示例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);
}
}
示例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);
}
}
示例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;
}
示例5: OnStateChanged
void OnStateChanged(AsyncApiEdit sender)
{
if (StateChanged != null) StateChanged(sender);
}
示例6: OnMaxlagExceeded
void OnMaxlagExceeded(AsyncApiEdit sender, int maxlag, int retryAfter)
{
if (MaxlagExceeded != null) MaxlagExceeded(sender, maxlag, retryAfter);
}
示例7: OnLoggedOff
void OnLoggedOff(AsyncApiEdit sender)
{
if (LoggedOff != null) LoggedOff(sender);
}
示例8: OnPreviewComplete
void OnPreviewComplete(AsyncApiEdit sender, string result)
{
if (PreviewComplete != null) PreviewComplete(sender, result);
}
示例9: OnExceptionCaught
void OnExceptionCaught(AsyncApiEdit sender, Exception ex)
{
if (ExceptionCaught != null) ExceptionCaught(sender, ex);
}
示例10: EditorStatusChanged
// Webcontrol event handlers:
private void EditorStatusChanged(AsyncApiEdit sender)
{
if (PluginManager.AWBForm.TheSession.Editor.IsActive) {
LoadArticle();
}
}
示例11: IncrementSavedEdits
internal void IncrementSavedEdits(AsyncApiEdit sender, SaveInfo save)
{
IncrementSavedEdits();
}
示例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();
}
示例13: LoggedOff
private void LoggedOff(AsyncApiEdit sender)
{
DisableButtons();
}
示例14: CreateEditor
private void CreateEditor()
{
APIEdit = new AsyncApiEdit(Variables.URLLong, this, Variables.PHP5);
APIEdit.PreviewComplete += PreviewComplete;
APIEdit.ExceptionCaught += APIEditExceptionCaught;
}
示例15: APIEditExceptionCaught
private void APIEditExceptionCaught(AsyncApiEdit sender, Exception ex)
{
StartDelayedRestartTimer(null, null);
}