コード例 #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;
        }