Example #1
0
 public WorkingCopy(string sPath, External extParent, Object wndMain)
 {
     m_aFolders  = new List <FolderWithExternals> ();
     m_sPath     = sPath;
     m_extParent = extParent;
     m_wndMain   = wndMain;
 }
        public IncomingModuleRequest GetCurrent()
        {
            var module = IsInternal ? Internal.ToModule() : External.ToModule();

            module.Weight = Weight;
            return(module);
        }
Example #3
0
        private void ReportWorker(object sender, DoWorkEventArgs e)
        {
            if (!(e.Argument is DeploymentSet))
            {
                return;
            }

            var dacPacSet     = e.Argument as DeploymentSet;
            var reportProcess = new External();

            reportProcess.Progress += ReportProcessProgress;

            var action = External.PackageAction.Report;

            switch (dacPacSet.TypeOfReport)
            {
            case DeploymentSet.ReportType.Nothing:
                action = External.PackageAction.Publish;
                break;

            case DeploymentSet.ReportType.PublishReport:
                action = External.PackageAction.Report;
                break;

            case DeploymentSet.ReportType.DriftReport:
                action = External.PackageAction.DriftReport;
                break;
            }

            reportProcess.ExecuteProcess(dacPacSet, action);
        }
Example #4
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (Type == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "Type");
     }
     if (ContainerResource != null)
     {
         ContainerResource.Validate();
     }
     if (External != null)
     {
         External.Validate();
     }
     if (ObjectProperty != null)
     {
         ObjectProperty.Validate();
     }
     if (Pods != null)
     {
         Pods.Validate();
     }
     if (Resource != null)
     {
         Resource.Validate();
     }
 }
Example #5
0
        /// <summary>
        /// Load/Update the specified External Route
        /// </summary>
        internal void Load(int externalRouteId)
        {
            if (externalRouteId <= 0)
            {
                throw new ArgumentException("You must specify an externalRouteId", "externalRouteId");
            }

            UDInfo oInfo = new UDInfo {
                listType = (int)AgentInfoType.GET_SPEED_DIAL, id = externalRouteId
            };

            External oItem = (External)mpApp.Portal.WSAgent.getInfo(mpApp.CurrentAgent.AgentArg, oInfo);

            //If external route is already in list, update it.
            //Otherwise, add it.
            CExternalRoute pExternalRoute;

            if (base.Contains(externalRouteId))
            {
                pExternalRoute             = (CExternalRoute)base.GetByKey(externalRouteId);
                pExternalRoute.description = oItem.externalroutedesc;
                pExternalRoute.phoneNumber = oItem.phonenum;
                pExternalRoute.type        = (ExternalRouteType)oItem.externalroutetype;
            }
            else
            {
                pExternalRoute = new CExternalRoute(oItem.externalrouteid, oItem.externalroutedesc, oItem.phonenum, oItem.externalroutetype);
                base.Add(pExternalRoute.Id, pExternalRoute);
            }
        }
Example #6
0
 private void CancelButton_Click(object sender, EventArgs e)
 {
     if (External != null)
     {
         External.Close();
     }
 }
Example #7
0
        private void DeployWorker(object sender, DoWorkEventArgs e)
        {
            if (!(e.Argument is DeploymentSet))
            {
                return;
            }

            var dacPacSet     = e.Argument as DeploymentSet;
            var deployProcess = new External();

            deployProcess.Progress += DeploymentProcessProgress;

            var action = External.PackageAction.Script;

            switch (dacPacSet.TypeOfReport)
            {
            case DeploymentSet.ReportType.Nothing:
                action = External.PackageAction.Publish;
                break;

            case DeploymentSet.ReportType.Script:
                action = External.PackageAction.Script;
                break;

            default:
                action = External.PackageAction.Script;
                break;
            }
            deployProcess.ExecuteProcess(dacPacSet, action);
        }
Example #8
0
            public static void ConnectionReply(NetworkStream stream, bool accepted, Size resolution, int videoPort)
            {
                StringBuilder packet = new StringBuilder();

                packet.Append((int)ServerPacketHeader.ConnectionReply);
                packet.Append(Constants.ParameterSeparator);

                packet.Append(accepted ? '1' : '0');

                if (accepted)
                {
                    packet.Append(Constants.ParameterSeparator);

                    packet.Append(resolution.Width);
                    packet.Append(Constants.SingleSeparator);
                    packet.Append(resolution.Height);
                    packet.Append(Constants.ParameterSeparator);

                    packet.Append(videoPort);
                }

                byte[] bytes = Encoding.UTF8.GetBytes(packet.ToString());
                External.PadArray(ref bytes, Constants.MetaFrameLength);
                stream.Write(bytes, 0, bytes.Length);
            }
        private static bool UpdateMesh(CSGModel model,
                                       string baseName,
                                       GeneratedMeshDescription meshDescription,
                                       RenderSurfaceType renderSurfaceType,
                                       ref bool outputHasGeneratedNormals,
                                       ref Mesh sharedMesh,
                                       bool editorOnly = false)
        {
            // create our arrays on the C# side with the correct size
            GeneratedMeshContents generatedMesh;
            var startGetModelMeshesTime = EditorApplication.timeSinceStartup;

            {
                generatedMesh = External.GetModelMesh(model.modelNodeID, meshDescription);
                if (generatedMesh == null)
                {
                    return(false);
                }
            }
            getModelMeshesTime += EditorApplication.timeSinceStartup - startGetModelMeshesTime;

            UpdateMesh(baseName,
                       generatedMesh,
                       meshDescription,
                       renderSurfaceType,
                       ref outputHasGeneratedNormals,
                       ref sharedMesh,
                       editorOnly);
            return(true);
        }
Example #10
0
        private bool CheckForNewUpdate(out bool autoStart)
        {
            bool result = false;

            try
            {
                //Log.delGenericLogMessage glm = new Log.delGenericLogMessage(Log.Write);
                External update = new External(Static.conUpdateURL, Static.conProductName, Static.conUsername, Static.conPassword);

                if (update.Product.updateReady)
                {
                    tssNewUpdate.Visible = true;
                    Log.Write("New update ready", this, "CheckForNewUpdate", Log.LogType.DEBUG);
                    result    = true;
                    autoStart = update.Product.autoStartUpdate;
                }
                else
                {
                    Log.Write("Application on the last available version", this, "CheckForNewUpdate", Log.LogType.DEBUG);
                    autoStart = false;
                }
                if (!update.Product.allowStart)
                {
                    // Ukloni kasnije
                    //this.isApplicationDisabled = true;
                }
            }
            catch (Exception ex)
            {
                autoStart = false;
                Log.Write(ex, this, "CheckForNewUpdate", Log.LogType.ERROR);
            }
            return(result);
        }
Example #11
0
        public async void Execute()
        {
            string externalOldSha;
            var    externalHead = await External.GetHeadSha();

            var externalFile = await Client.GetFileContent(".external");

            externalFile = UpdateExternal(externalFile, externalHead, out externalOldSha);

            if (UsePullRequest && await Client.BranchExists(AutoBumpBranchName))
            {
                await Client.DeleteBranch(AutoBumpBranchName);
            }

            var title = $"[{Client.BranchName}] Bump {External.Repository.Label}";
            var body  = $"{External.Repository.Uri}/compare/{externalOldSha}...{externalHead}";

            // Update the content on a branch
            var head = await Client.GetHeadSha();

            var client = Client;

            if (UsePullRequest)
            {
                client = await Client.CreateBranch(AutoBumpBranchName, head);
            }

            await client.UpdateFileContent(title, body, ".external", externalFile);

            // Issue the PullRequest against the original branch
            if (UsePullRequest)
            {
                await Client.CreateAndOpenPullRequest(AutoBumpBranchName, title, body, openPrInBrowser : AllowPostActions);
            }
        }
Example #12
0
 /// <summary> Adds an interrupt to the given GPIO pin. </summary>
 /// <param name="Pin"> The pin to monitor. </param>
 /// <param name="InterruptType"> The type of edge to listen for. </param>
 /// <param name="Delegate"> The delegate to call when the given type of event happens. </param>
 internal static void AddInterrupt(int Pin, int InterruptType, InterruptCallback Delegate)
 {
     if (!Initialized)
     {
         throw new InvalidOperationException("Cannot perform GPIO operations until the system is initialized. Call RasperryPi.Initialize().");
     }
     External.AddInterrupt(Pin, InterruptType, Delegate);
 }
 public static void UpdateRemoteMeshes()
 {
     if (External != null &&
         External.UpdateAllModelMeshes != null)
     {
         External.UpdateAllModelMeshes();
     }
 }
Example #14
0
 /// <summary> Sets the given GPIO pin to the given mode. </summary>
 /// <param name="Pin"> The pin to configure. </param>
 /// <param name="Mode"> The functionality to select. </param>
 internal static void SetPinMode(int Pin, PinMode Mode)
 {
     if (!Initialized)
     {
         throw new InvalidOperationException("Cannot perform GPIO operations until the system is initialized. Call RasperryPi.Initialize().");
     }
     External.SetPinMode(Pin, (int)Mode);
 }
Example #15
0
 /// <summary> Attempts to prepare a UART device for use. </summary>
 /// <param name="Device"> The ID of the UART bus to set up. </param>
 /// <param name="Baud"> The baudrate to set the bus to. </param>
 /// <returns> Device handle, or -1 on error </returns>
 internal static int SerialOpen(byte Device, int Baud)
 {
     if (!Initialized)
     {
         throw new InvalidOperationException("Cannot perform UART operations until the system is initialized. Call RasperryPi.Initialize().");
     }
     return(External.SerialOpen(Device, Baud));
 }
Example #16
0
        /// <summary> Does an SPI transaction. </summary>
        /// <param name="BusNum"> The bus to send/receive from. </param>
        /// <param name="Data"> The data to send out (not modified). </param>
        /// <param name="Length"> THe amount of data to send/receive. </param>
        /// <returns> The data received from the bus. </returns>
        internal static byte[] SPIRW(int BusNum, byte[] Data, int Length)
        {
            byte[] DataNew = new byte[Data.Length];
            Array.Copy(Data, DataNew, Data.Length);
            int ReturnDataLen = External.SPIRW(BusNum, DataNew, Length);

            return(DataNew);
        }
Example #17
0
 /// <summary> Prepares an SPI bus for use. </summary>
 /// <param name="BusNum"> The ID of the bus to set up. </param>
 /// <param name="Speed"> The speed to use for the bus. </param>
 internal static void SPISetup(int BusNum, int Speed)
 {
     if (!Initialized)
     {
         throw new InvalidOperationException("Cannot perform SPI operations until the system is initialized. Call RasperryPi.Initialize().");
     }
     External.SPISetup(BusNum, Speed);
 }
 public RawdataRef(EndianReader r)
 {
     size       = r.ReadInt32();
     external   = (External)r.ReadInt32();
     rawPointer = r.ReadUInt32();
     pointer    = r.ReadUInt32();
     id         = r.ReadUInt32();
 }
Example #19
0
 public frmMain()
 {
     InitializeComponent();
     SetStyle(ControlStyles.UserPaint, true);
     SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景.
     SetStyle(ControlStyles.DoubleBuffer, true);         // 双缓冲
     m_External   = new External();
     mAlarmManage = new AlarmManage();
 }
Example #20
0
        public void ParseSucceeds(Command expectedCommand, Arguments expectedArguments, uint index)
        {
            var alias  = $@"alias{index}";
            var option = AT.Utility.FromOk(AT.Utility.FromJust(External.Parse(Configuration, alias)));

            Assert.Equal(alias, option.Alias);
            Assert.Equal(expectedCommand, option.Command);
            Assert.Equal(expectedArguments, option.Arguments);
        }
    public Cursor CreateCursorFromBitmap(Bitmap bitmap, byte alphaLevel, Point hotSpot)
    {
        Bitmap cursorBitmap = null;

        External.ICONINFO iconInfo  = new External.ICONINFO();
        Rectangle         rectangle = new Rectangle(0, 0, bitmap.Width, bitmap.Height);

        try
        {
            // Here, the premultiplied alpha channel is specified
            cursorBitmap = new Bitmap(bitmap.Width, bitmap.Height, PixelFormat.Format32bppPArgb);

            // I'm assuming the source bitmap can be locked in a 24 bits per pixel format
            BitmapData bitmapData       = bitmap.LockBits(rectangle, ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
            BitmapData cursorBitmapData = cursorBitmap.LockBits(rectangle, ImageLockMode.WriteOnly, cursorBitmap.PixelFormat);

            // Use either SafeCopy() or UnsafeCopy() to set the bitmap contents
            SafeCopy(bitmapData, cursorBitmapData, alphaLevel);
            //UnsafeCopy(bitmapData, cursorBitmapData, alphaLevel);

            cursorBitmap.UnlockBits(cursorBitmapData);
            bitmap.UnlockBits(bitmapData);

            if (!External.GetIconInfo(cursorBitmap.GetHicon(), out iconInfo))
            {
                throw new Exception("GetIconInfo() failed.");
            }

            iconInfo.xHotspot = hotSpot.X;
            iconInfo.yHotspot = hotSpot.Y;
            iconInfo.IsIcon   = false;

            IntPtr cursorPtr = External.CreateIconIndirect(ref iconInfo);
            if (cursorPtr == IntPtr.Zero)
            {
                throw new Exception("CreateIconIndirect() failed.");
            }

            return(new Cursor(cursorPtr));
        }
        finally
        {
            if (cursorBitmap != null)
            {
                cursorBitmap.Dispose();
            }
            if (iconInfo.ColorBitmap != IntPtr.Zero)
            {
                External.DeleteObject(iconInfo.ColorBitmap);
            }
            if (iconInfo.MaskBitmap != IntPtr.Zero)
            {
                External.DeleteObject(iconInfo.MaskBitmap);
            }
        }
    }
        static Int32[] UpdateChildList(HierarchyItem top)
        {
            var ids = new List <int>();

            {
                var parents = new List <TreePosition>
                {
                    new TreePosition(top)
                };
                while (parents.Count > 0)
                {
                    var parent = parents[parents.Count - 1];
                    parents.RemoveAt(parents.Count - 1);
                    var children = parent.item.ChildNodes;
                    for (var i = parent.index; i < children.Length; i++)
                    {
                        var node   = children[i];
                        var nodeID = node.NodeID;
                        if (nodeID == CSGNode.InvalidNodeID)
                        {
                            var operation = node.Transform ? node.Transform.GetComponent <CSGOperation>() : null;
                            if (operation)
                            {
                                if (operation.operationNodeID != CSGNode.InvalidNodeID)
                                {
                                    nodeID = node.NodeID = operation.operationNodeID;
                                }
                            }
                            if (nodeID == CSGNode.InvalidNodeID)
                            {
                                if (node.ChildNodes.Length > 0)
                                {
                                    var next_index = i + 1;
                                    if (next_index < children.Length)
                                    {
                                        parent.index = next_index;
                                        parents.Add(parent);
                                    }
                                    parents.Add(new TreePosition(node));
                                    break;
                                }
                                continue;
                            }
                        }
                        ids.Add(nodeID);
                        if (node.PrevSiblingIndex != node.SiblingIndex)
                        {
                            External.SetDirty(nodeID);
                            node.PrevSiblingIndex = node.SiblingIndex;
                        }
                    }
                }
            }
            return(ids.ToArray());
        }
Example #23
0
        /// <summary>
        /// Run X!Tandem.
        /// </summary>
        private void Run_Click(object sender, EventArgs e)
        {
            panelIndicator.Width = panelBack.Width;
            panelIndicator.Left  = panelBack.Left;
            // Delete the existing outputs.
            External.DeleteExistingOutputs();
            if (FileReader.fileLoadMode == FileLoadMode.XTandemRun)
            {
                // Check that the FASTA sequence file has been loaded
                if (string.IsNullOrEmpty(External.XTandemInput.SequenceFile))
                {
                    // Notify the user
                    MessageBox.Show("No Sequence file has been loaded.\nPlease load a sequence file and try again.", "Error - Citrullia", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    // Go to the general page
                    ButtonGeneral_Click(this, EventArgs.Empty);
                    // Return
                    return;
                }

                // Create the taxonomy xml file for X!Tandem
                External.MakeTaxonomyXml();
                // Search for each MGF- input file
                External.XTandemSearchForEachMGF();

                // Check that results exist
                if (Directory.GetFiles(External.CitrulliaSettings.OutputXTandemFilesFolder, "*.xml").Length == 0)
                {
                    // Notify the user
                    MessageBox.Show("No result files was loaded.\nPlease check your settings and try again.", "Error - Citrullia", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    // Return
                    return;
                }
            }
            else if (FileReader.fileLoadMode == FileLoadMode.ResultFile)
            {
                FileReader.CopyXTFilesToOutputFolder();
            }

            // Read the X!Tandem XML results
            FileReader.ReadResultXMLs();

            // Check that results could be read
            if (FileReader.inputFiles.Count == 0)
            {
                // Notify the user
                MessageBox.Show("Result files was found, but no result was read.\nPlease check your settings and try again.", "Error - Citrullia", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                // Return
                return;
            }



            // Go to validation.
            ChangeToValdiation();
        }
        public void TestExternal()
        {
            External e = new External("api1", "deliver1");

            Assert.Equal("api1", e.Api);
            Assert.Equal("deliver1", e.Deliver);

            e = External.Builder().WithApi("api2").WithDeliver("deliver2").Build();
            Assert.Equal("api2", e.Api);
            Assert.Equal("deliver2", e.Deliver);
        }
Example #25
0
        public async STT.Task OperateTest(uint index)
        {
            var mock = new M.Mock <IOperation>();
            var maybePossibleOption = External.Parse(Configuration, $@"alias{index}");
            var option = AT.Utility.FromOk(AT.Utility.FromJust(maybePossibleOption));

            mock.Setup(op => op.External(M.It.IsAny <External>()))
            .Returns(Utility.TaskExitSuccess);
            Assert.Equal(ExitCode.Success, await AT.Utility.FromOk(option.Operate(mock.Object)).ConfigureAwait(false));
            mock.Verify(op => op.External(option));
        }
 public void Disconnect()
 {
     try {
         socketToken.socketState = SocketState.CLOSING;
         External.Disconnect(socketToken, null);
         socketToken.socketState = SocketState.CLOSED;
     } catch (Exception e) {
         Disquuun.Log("Disconnect e:" + e.Message, true);
     }
     return;
 }
Example #27
0
 public override void CustomizeSelf(AsmDefCSharpProgram program)
 {
     if (program.MainSourcePath.FileName == "Unity.Tiny.GLFW")
     {
         External.GLFWStaticLibrary = External.SetupGLFW();
         program.NativeProgram.Libraries.Add(new NativeProgramAsLibrary(External.GLFWStaticLibrary)
         {
             BuildMode = NativeProgramLibraryBuildMode.BagOfObjects
         });
     }
 }
 void OnGUI()
 {
     Guiscore.text = "score: " + score;
     if (GUI.Button(new Rect(20, 20, 100, 30), "Back"))
     {
         External.back();
     }
     if (GUI.Button(new Rect(200, 20, 100, 30), "Next"))
     {
         External.next();
     }
 }
Example #29
0
        public void NameTest()
        {
            External target = new External();

            string val = null; // TODO: Assign to an appropriate value for the property

            target.Name = val;


            Assert.AreEqual(val, target.Name, "Composestar.StarLight.Entities.WeaveSpec.External.Name was not set correctly.");
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    public static int Main()
    {
        var t = new External();

        t.DynamicProperty = "test";
        string s = t.DynamicProperty;

        if (s != "test")
        {
            return(1);
        }

        t.Field = 's';
        if (t.Field != 's')
        {
            return(2);
        }

        t.FieldArray        = new dynamic [2, 2];
        t.FieldArray [1, 1] = 'b';
        if (t.FieldArray[1, 1] != 'b')
        {
            return(21);
        }

        if (t.Method(E.Value) != E.Value)
        {
            return(3);
        }

        dynamic d;

        t.MethodOut(out d);
        if (d != decimal.MaxValue)
        {
            return(4);
        }

        I <dynamic>[] r   = t.Method2(1);
        int           res = r [0].Value;

        r = t.Method3(null);

        CI <dynamic> ci2 = new CI2();

        ci2.Value = 'v';
        if (ci2.Value != 'v')
        {
            return(5);
        }

        return(0);
    }
Example #31
0
			/// <summary>
			/// Initializes a new instance of the <see cref="L20nCore.Objects.Entity"/> class,
			/// where the value is a <see cref="L20nCore.Objects.HashValue"/> created based on the given external value.
			/// The index/attributes will be <c>null</c> and this instace will be public.
			/// </summary>
			public Entity(External.IHashValue value)
			{
				var info = External.InfoCollector.Pool.GetObject();

				value.Collect(info);

				m_Index = null;
				m_Value = info.Collect();
				m_Attributes = null;
				m_IsPrivate = false;

				info.Clear();
				External.InfoCollector.Pool.ReturnObject(ref info);
			}
Example #32
0
 private static void CustomAntigapcloser_OnEnemyGapcloser(External.ActiveGapcloser gapcloser)
 {
     if (getCheckBoxItem(MenuGenerator.miscMenu, "dz191.vhr.misc.general.antigp") && Variables.spells[SpellSlot.E].IsReady())
     {
         LeagueSharp.Common.Utility.DelayAction.Add(getSliderItem(MenuGenerator.miscMenu, "dz191.vhr.misc.general.antigpdelay"),
             () =>
             {
                 if (gapcloser.Sender.LSIsValidTarget(Variables.spells[SpellSlot.E].Range)
                     && gapcloser.End.LSDistance(ObjectManager.Player.ServerPosition) <= 400f
                     && getCheckBoxItem(CustomAntigapcloser.GPMenu, string.Format("dz191.vhr.agplist.{0}.{1}", gapcloser.Sender.ChampionName.ToLowerInvariant(), gapcloser.SpellName))
                     )
                 {
                     Variables.spells[SpellSlot.E].CastOnUnit(gapcloser.Sender);
                 }
             });
     }
 }
 private static void CustomAntigapcloser_OnEnemyGapcloser(External.ActiveGapcloser gapcloser)
 {
     if (MenuExtensions.GetItemValue<bool>("dz191.vhr.misc.general.antigp") && Variables.spells[SpellSlot.E].IsReady())
     {
         LeagueSharp.Common.Utility.DelayAction.Add(MenuExtensions.GetItemValue<Slider>("dz191.vhr.misc.general.antigpdelay").Value,
             () =>
             {
                 if (gapcloser.Sender.IsValidTarget(Variables.spells[SpellSlot.E].Range)
                     && gapcloser.End.Distance(ObjectManager.Player.ServerPosition) <= 400f
                     && MenuExtensions.GetItemValue<bool>(
                     string.Format("dz191.vhr.agplist.{0}.{1}", gapcloser.Sender.ChampionName.ToLowerInvariant(), gapcloser.SpellName)
                     ))
                 {
                     Variables.spells[SpellSlot.E].Cast(gapcloser.Sender);
                 }
             });
     }
 }
Example #34
0
	public static int Main ()
	{
		var t = new External ();

		t.DynamicProperty = "test";
		string s = t.DynamicProperty;
		if (s != "test")
			return 1;
		
		t.Field = 's';
		if (t.Field != 's')
			return 2;

		t.FieldArray = new dynamic [2,2];
		t.FieldArray [1,1] = 'b';
		if (t.FieldArray[1,1] != 'b')
			return 21;
		
		if (t.Method (E.Value) != E.Value)
			return 3;
		
		dynamic d;
		t.MethodOut (out d);
		if (d != decimal.MaxValue)
			return 4;

		I<dynamic>[] r = t.Method2 (1);
		int res = r [0].Value;
		r = t.Method3 (null);
		
		CI<dynamic> ci2 = new CI2 ();
		ci2.Value = 'v';
		if (ci2.Value != 'v')
			return 5;
		
		return 0;
	}
Example #35
0
		/// <summary>
		/// Translate the specified id using the given external values within the currently set locale,
		/// returns the id itself in case no entity could be matched with the given id.
		/// Any <see cref="System.Exception"/> gets captured and turned into an unexpected warning.
		/// </summary>
		public string Translate(string id, string key_a, string key_b, External.IHashValue value_a, bool value_b)
		{
			return Translate(id, key_a, key_b,
			                 new Objects.Entity(value_a), new Objects.BooleanValue(value_b));
		}
Example #36
0
		/// <summary>
		/// Add the given <see cref="L20nCore.External.IHashValue"/> <c>value</c> as the global
		/// with name equal to the value of params <c>id</c>.
		/// </summary>
		public void AddGlobal(string id, External.IHashValue value)
		{
			AddGlobal(id, new Objects.Entity(value));
		}
Example #37
0
 public DocumentBuilder WithExternal( External external)
 {
     this.external = external;
     return this;
 }
Example #38
0
 private static void setInfo(External.Notepad.Data data)
 {
     Notepad.Initialize(data);
     Scintilla.InitializeSettings();
     EntryPoint.plugin = new Plugin();
     return;
 }
Example #39
0
		/// <summary>
		/// Translate the specified id using the given external values within the currently set locale,
		/// returns the id itself in case no entity could be matched with the given id.
		/// Any <see cref="System.Exception"/> gets captured and turned into an unexpected warning.
		/// </summary>
		public string Translate(string id, string key_a, string key_b, External.IHashValue value_a, string value_b)
		{
			return Translate(id, key_a, key_b,
			                 new Objects.Entity(value_a), new Objects.StringOutput(value_b));
		}
Example #40
0
	public static bool op_Inequality (External p1, int p2)
	{
		return false;
	}
Example #41
0
	public static void Main ()
	{
		var t1 = new External ();
		int t2 = 0;
		bool b = t1 == t2;
	}
Example #42
0
		/// <summary>
		/// Translate the specified id using the given external <c>HashTable</c> value within the currently set locale,
		/// returns the id itself in case no entity could be matched with the given id.
		/// Any <see cref="System.Exception"/> gets captured and turned into an unexpected warning.
		/// </summary>
		public string Translate(string id, string key, External.IHashValue value)
		{
			return Translate(id, key, new Objects.Entity(value));
		}
Example #43
0
		/// <summary>
		/// Translate the specified id using the given external values within the currently set locale,
		/// returns the id itself in case no entity could be matched with the given id.
		/// Any <see cref="System.Exception"/> gets captured and turned into an unexpected warning.
		/// </summary>
		public string Translate(string id, string key_a, string key_b, External.IHashValue value_a, int value_b)
		{
			return Translate(id, key_a, key_b,
			                 new Objects.Entity(value_a), new Objects.Literal(value_b));
		}