aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Utils/Boxes.cs
blob: 517948bae3922c2fccc4aa1b9de280d347a0cd0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)

using System;

namespace Tango.Scripting.Editors.Utils
{
	/// <summary>
	/// Reuse the same instances for boxed booleans.
	/// </summary>
	static class Boxes
	{
		public static readonly object True = true;
		public static readonly object False = false;
		
		public static object Box(bool value)
		{
			return value ? True : False;
		}
	}
}
"p">; namespace Tango.MachineStudio.Stubs { /// <summary> /// Represents a stubs execution Machine Studio module capable of executing stubs against the current connected machine using a C# script engine. /// </summary> /// <seealso cref="Tango.MachineStudio.Common.IStudioModule" /> [StudioModule(10)] public class StubsModule : StudioModuleBase { /// <summary> /// Gets the module name. /// </summary> public override string Name => "Stubs"; /// <summary> /// Gets the module description. /// </summary> public override string Description => "Execute machine tests using an interactive C# scripting editor"; /// <summary> /// Gets the module cover image. /// </summary> public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/stubs.jpg"); /// <summary> /// Gets the module entry point view type. /// </summary> public override Type MainViewType { get { return typeof(MainView); } } /// <summary> /// Gets the permission required to see and load this module. /// </summary> public override Permissions Permission => Permissions.RunStubsModule; /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public override void Dispose() { } } }