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."); }
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)); }); }
void SetStandardStatusBar(object sender, EventArgs e) { IStatusBarService statusBarService = (IStatusBarService)ICSharpCode.Core.Services.ServiceManager.Services.GetService(typeof(IStatusBarService)); statusBarService.SetMessage("${res:MainWindow.StatusBar.ReadyMessage}"); }
void newItem_MouseLeave(object sender, EventArgs e) { IStatusBarService statusBarService = (IStatusBarService)ServiceManager.Services.GetService(typeof(IStatusBarService)); statusBarService.SetMessage("就绪"); }
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("就绪"); }