protected virtual void OnTick(NiTaskDialogTickEventArgs e) { var handler = Tick; if (handler != null) { handler(this, e); } }
public void OnTimer(INiActiveTaskDialog taskDialog, int elapsed, ref bool resetTimer) { try { var e = new NiTaskDialogTickEventArgs(taskDialog, elapsed); e.ResetTimer = resetTimer; _taskDialog.OnTick(e); resetTimer = e.ResetTimer; } catch (Exception ex) { Log.Warn("Exception from task dialog notify", ex); } }