Андрей Смирнов
Время чтения: ~7 мин.
Просмотров: 1

Bridge

BRIDGE перевод с английского языка на русский язык в других словарях

► перевод BRIDGE — Новый большой англо-русский словарь под общим руководством акад. Ю.Д. Апресяна

bridge

I

1. {brıdʒ} n

1. 1) мост; мостик

~ span — пролёт моста

~ member — звено моста

~ site — место наводки /постройки/ моста

to throw a ~ — навести мост

2) перемычка, перегородка

2. мор. капитанский мостик

3. переносица (тж. ~ of the nose)

4. подставка, кобылка (скрипки, гитары и т. п.)

5. мост (зубной протез)

6. тех. порог топки

7. эл.

1) перемычка

2) параллельное соединение, шунт

♢ to burn one’s ~s см. burn1 II ♢

to throw smb. over the ~ — предательски поступать но отношению к кому-л., подставить кому-л. ножку, подвести кого-л., «утопить»

don’t cross the ~s before you come to them — посл. ≅ не следует создавать себе трудностей заранее

let every man praise /speak well of/ the ~ he goes over — посл. ≅ не плюй в колодец, пригодится воды напиться

2. {brıdʒ} v

1. 1) наводить, строить мост

to ~ a river — построить мост через реку

2) соединять мостом

2. перекрывать

3. преодолевать препятствия

4. горн. затягивать кровлю

5. эл. шунтировать

to ~ a gap — ликвидировать разрыв /отставание/

II {brıdʒ} n карт.

бридж

{ʹbrıdʒkreın}

мостовой кран, портальный кран

► перевод bridge over

bridge over

{ʹbrıdʒʹəʋvə} phr v

1) наводить, строить переправу

2) преодолевать (что-л.)

to ~ the difficulties — преодолеть трудности

► перевод bridge-laying tank

{ʹbrıdʒ͵leııŋʹtæŋk} воен.

танковый мостоукладчик

Англо-русский словарь В.К. Мюллера
► перевод bridge crane

bridge crane (ˊbrɪdʒkreɪn) n

порта́льный кран

► перевод bridgehead

bridgehead

bridgehead (ˊbrɪdʒhed) n

воен. (предмо́стный) плацда́рм; предмо́стная пози́ция; предмо́стное укрепле́ние; плацда́рм на террито́рии проти́вника, уде́рживаемый до подхо́да основны́х сил

New Project

We now have all the pieces in place and we’re ready to jump into creating a new Class Library project. Once again, the steps are very basic:

  1. Open Visual Studio. Any of the recent versions of Visual Studio will do, including 2013, 2015 and 2017.
  2. From the main menu click on File > New Project.
  3. From the list of installed templates, choose Bridge.NET, then Class Library.
  4. Give the Project a name, here we’ll use Demo, then click the Ok button.

Your Demo project should only take a moment to set up.

Add Bridge.Html5

Once finished open up the default .cs file that is created and lets quickly review line-by-line.

using System;
using Bridge;
using Bridge.Html5;

namespace Demo
{
    public class Program
    {
        public static void Main()
        {
            // Create a new Button
            var button = new HTMLButtonElement();
            
            button.InnerHTML = "Click Me";
            button.OnClick = (ev) =>
            {
                // When Button is clicked, 
                // the Bridge Console should open.
                Console.WriteLine("Success!");
            };

            // Add the Button to the page
            Document.Body.AppendChild(button);
        }
    }
}

First off we have the statements, and as with all C# applications, the using statements import functionality.

For this basic sample creating an HTML Button, we include the and assemblies.

Next up is declaring the Demo namespace. This is the name you supplied a few moments ago when the project was first created. Inside the namespace, the class is defined, and then a simple static Method called . If you’ve ever created a Console Application in C#, this App.cs file should look very familiar.

If you declare a Method, this Method will be auto-run on initial page load. Think of this as the entry point into your application.

The body of the Method steps through creating a simple HTMLButtonElement, adding an OnClick handler, then adding the button to the page. Clicking this button will open the Bridge Console and display our message.

At this point we’re ready to Build the Solution by going to Build > Build Solution in the menu, or use either the F6 key or keyboard combo Ctrl + Shift + B.

Show Me The JavaScript!

Your project should compile quickly, and your newly created JavaScript files have been added to the projects Bridge/output folder, although Visual Studio might be hiding the new JavaScript files…

Visual Studio requires one extra click to reveal. Clicking the Show All Files button on the Solution Explorer toolbar will unveil your newly compiled JavaScript files.

Within the Bridge/output folder you should find new JavaScript files:

NameDescription
bridge.jsThe main Bridge JavaScript file required on all pages
demo.jsYour generated JavaScript code

Lets first review demo.js by double-clicking to open. You should see the following:

Bridge.assembly("Demo", function ($asm, globals) {
    "use strict";

    Bridge.define("Demo.Program", {
        main: function Main () {
            var button = document.createElement("button");

            button.innerHTML = "Click Me";
            button.onclick = function (ev) {
                System.Console.WriteLine("Success!");
            };

            document.body.appendChild(button);
        }
    });
});

This is the Bridge generated JavaScript compilation of your C# code. We can see the call to the auto-run Method from C# which is automatically run on the initial page load.

Another interesting feature to point out, notice how inline comments from C# are maintained in the generated JavaScript code. This reinforces the concept that the product of your C# code library is another code library. One language is transformed into another.

These inline comments and all other unnecessary whitespace are removed from the auto-generated .min.js version of each file. You can think of the .min.js files as your Release files and the regular .js files as your Debug versions. During testing and development, use demo.js. When your application is ready for user testing, or release, link to demo.min.js.

View In Browser

So far all we’ve seen is the generated JavaScript code, but let’s get this sample working in a web browser by adding the .js files to a simple .html page.

By default, the installation of Bridge also creates a simple .html file pre-configured with the required JavaScript file includes. The .html file should be located in your projects /bin/debug/bridge/ folder.

This simple .html file is all you require to run your new Bridge application. Right-click on the file and select View in Browser.

<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>Bridge Demo</title>
    <script src="../output/bridge.min.js"></script>
    <script src="../output/demo.js"></script>
</head>
<body>
    <!-- 
        Right-Click on this file and select "View in Browser"
    --> 
</body>
</html>

Your default web browser should open up automatically and load demo.html. Immediately upon loading the page, the Bridge Console should open and log the message.

Пожалуйста, помогите c переводом:

Mendeleev was foreshadowed in his great generalization by De Chancourtois’s helix of elements of 1863, J.A.R. New-lands’s *law of octaves* (1864-5)-which uncovered periodicity in the 8th elements of his chemical groupings — and W. Odling’s work, which suggested that recurrent chemical properties in elements arranged according to atomic weight could not be accidental.

Английский-Русский

Giving a definition of the term “comedy”, one may face some difficulties as it’s one of the most complex categories of aesthetics. Comedy is historically volatile, it depends on the context and has a social nature. The laughter is not always a sight of comedy, and comedy is not always defined by laughter. It is circumstances, sharpening the contradictions and helping to reveal its social nature

Английский-Русский

It slides comfortably into the ‘affordable’ bracket though, considering its supersized display, and when it lands on contract (which should be soon) it won’t carry hefty monthly fees.

Английский-Русский

In the UK and the USA, law degree programmes usually take three years to complete. In the UK, these programmes typically include core subjects such as criminal law, contract law, tort law, land law, equity and trusts, administrative law and constitutional law. In addition, students ar

Английский-Русский

Рейтинг автора
5
Материал подготовил
Максим Иванов
Наш эксперт
Написано статей
129
Ссылка на основную публикацию
Похожие публикации