Inheritance: NiTaskDialogEventArgs
示例#1
0
        protected virtual void OnTick(NiTaskDialogTickEventArgs e)
        {
            var handler = Tick;

            if (handler != null)
            {
                handler(this, e);
            }
        }
示例#2
0
            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);
                }
            }