public void SetMessageTest()
        {
            IStatusBarService target  = CreateIStatusBarService(); // TODO: Initialize to an appropriate value
            string            message = string.Empty;              // TODO: Initialize to an appropriate value
            bool highlighted          = false;                     // TODO: Initialize to an appropriate value

            target.SetMessage(message, highlighted);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Example #2
0
            public void Done(IBuildable buildable, BuildOptions options, BuildResults results)
            {
                WorkbenchSingleton.SafeThreadAsyncCall(
                    delegate {
                    guiBuildCancellation = null;
                    if (guiBuildTrackedFeature != null)
                    {
                        guiBuildTrackedFeature.EndTracking();
                        guiBuildTrackedFeature = null;
                    }
                    string message;
                    if (results.Result == BuildResultCode.Cancelled)
                    {
                        message = "${res:MainWindow.CompilerMessages.BuildCancelled}";
                    }
                    else
                    {
                        if (results.Result == BuildResultCode.Success)
                        {
                            message = "${res:MainWindow.CompilerMessages.BuildFinished}";
                        }
                        else
                        {
                            message = "${res:MainWindow.CompilerMessages.BuildFailed}";
                        }

                        if (results.ErrorCount > 0)
                        {
                            message += " " + results.ErrorCount + " error(s)";
                        }
                        if (results.WarningCount > 0)
                        {
                            message += " " + results.WarningCount + " warning(s)";
                        }
                    }
                    statusBarService.SetMessage(message);
                    ProjectService.RaiseEventBuildFinished(new BuildEventArgs(buildable, options, results));
                });
            }
Example #3
0
        void SetStandardStatusBar(object sender, EventArgs e)
        {
            IStatusBarService statusBarService = (IStatusBarService)ICSharpCode.Core.Services.ServiceManager.Services.GetService(typeof(IStatusBarService));

            statusBarService.SetMessage("${res:MainWindow.StatusBar.ReadyMessage}");
        }
Example #4
0
        void newItem_MouseLeave(object sender, EventArgs e)
        {
            IStatusBarService statusBarService = (IStatusBarService)ServiceManager.Services.GetService(typeof(IStatusBarService));

            statusBarService.SetMessage("就绪");
        }
Example #5
0
        void newItem_MouseEnter(object sender, EventArgs e)
        {
            IStatusBarService statusBarService = (IStatusBarService)ServiceManager.Services.GetService(typeof(IStatusBarService));

            statusBarService.SetMessage(((SdMenuCommand)sender).Description);
        }
        void SetStandardStatusBar(object sender, EventArgs e)
        {
            IStatusBarService statusBarService = (IStatusBarService)NetFocus.DataStructure.Services.ServiceManager.Services.GetService(typeof(IStatusBarService));

            statusBarService.SetMessage("就绪");
        }