예제 #1
0
파일: SplashScreen.cs 프로젝트: moscrif/ide
        /*void IProgressMonitor.BeginTask(string name, int totalWork)
        {
            tracker.BeginTask(name, totalWork);
            SetMessage(tracker.CurrentTask);
        }

        void IProgressMonitor.BeginStepTask(string name, int totalWork, int stepSize)
        {
            tracker.BeginStepTask(name, totalWork, stepSize);
            SetMessage(tracker.CurrentTask);
        }

        void IProgressMonitor.EndTask()
        {
            tracker.EndTask();
            SetProgress(tracker.GlobalWork);
            SetMessage(tracker.CurrentTask);
        }

        void IProgressMonitor.Step(int work)
        {
            tracker.Step(work);
            SetProgress(tracker.GlobalWork);
        }

        TextWriter IProgressMonitor.Log
        {
            get { return Console.Out; }
        }

        void IProgressMonitor.ReportWarning(string message)
        {
        }

        void IProgressMonitor.ReportSuccess(string message)
        {
        }

        void IProgressMonitor.ReportError(string message, Exception exception)
        {
        }

        bool IProgressMonitor.IsCancelRequested
        {
            get { return false; }
        }
                 */
        /*public event MonitorHandler CancelRequested
        {
            add { }
            remove { }
        }*/
        // The returned IAsyncOperation object must be thread safe
        /*IAsyncOperation IProgressMonitor.AsyncOperation
        {
            get { return null; }
        }*/
        /*	object IProgressMonitor.SyncRoot
        {
            get { return this; }
        }*/
        void IDisposable.Dispose()
        {
            Destroy();
            splashScreen = null;
        }
예제 #2
0
        /*void IProgressMonitor.BeginTask(string name, int totalWork)
         * {
         *      tracker.BeginTask(name, totalWork);
         *      SetMessage(tracker.CurrentTask);
         * }
         *
         * void IProgressMonitor.BeginStepTask(string name, int totalWork, int stepSize)
         * {
         *      tracker.BeginStepTask(name, totalWork, stepSize);
         *      SetMessage(tracker.CurrentTask);
         * }
         *
         * void IProgressMonitor.EndTask()
         * {
         *      tracker.EndTask();
         *      SetProgress(tracker.GlobalWork);
         *      SetMessage(tracker.CurrentTask);
         * }
         *
         * void IProgressMonitor.Step(int work)
         * {
         *      tracker.Step(work);
         *      SetProgress(tracker.GlobalWork);
         * }
         *
         * TextWriter IProgressMonitor.Log
         * {
         *      get { return Console.Out; }
         * }
         *
         * void IProgressMonitor.ReportWarning(string message)
         * {
         * }
         *
         * void IProgressMonitor.ReportSuccess(string message)
         * {
         * }
         *
         * void IProgressMonitor.ReportError(string message, Exception exception)
         * {
         * }
         *
         * bool IProgressMonitor.IsCancelRequested
         * {
         *      get { return false; }
         * }
         */
        /*public event MonitorHandler CancelRequested
         * {
         *      add { }
         *      remove { }
         * }*/

        // The returned IAsyncOperation object must be thread safe

        /*IAsyncOperation IProgressMonitor.AsyncOperation
         * {
         *      get { return null; }
         * }*/

        /*	object IProgressMonitor.SyncRoot
         *      {
         *              get { return this; }
         *      }*/

        void IDisposable.Dispose()
        {
            Destroy();
            splashScreen = null;
        }