Пример #1
0
        public FormStart()
        {
            InitializeComponent();

            #region // language

            lbRate.Text      = Lang.lgCurrentRate;
            label1.Text      = Lang.lgTargetRate;
            lbCoverage.Text  = Lang.lgCoverage;
            lbApplied.Text   = Lang.lgQuantityApplied;
            lbRemaining.Text = Lang.lgTank_Remaining + " ...";

            mnuSettings.Items[0].Text  = Lang.lgProducts;
            mnuSettings.Items[1].Text  = Lang.lgSection;
            mnuSettings.Items[3].Text  = Lang.lgPressure;
            mnuSettings.Items[4].Text  = Lang.lgNew;
            mnuSettings.Items[5].Text  = Lang.lgLoad;
            mnuSettings.Items[6].Text  = Lang.lgSaveAs;
            mnuSettings.Items[7].Text  = Lang.lgLanguage;
            mnuSettings.Items[8].Text  = Lang.lgPCBconfig;
            mnuSettings.Items[9].Text  = Lang.lgFirmware;
            mnuSettings.Items[10].Text = Lang.lgAbout;

            #endregion // language

            Tls     = new clsTools(this);
            UDPagio = new UDPComm(this, 16666, 17777, 16660, "127.0.0.255");       // AGIO
            //UDPagio = new UDPComm(this, 17777, 15555, 1460, "127.255.255.255");       // AOG

            UDPnetwork = new UDPComm(this, 29999, 28888, 1480, "192.168.1.255");    // arduino
            UDPconfig  = new UDPComm(this, 29900, 28800, 1482, "192.168.1.255");    // pcb config

            SwitchBox    = new PGN32618(this);
            SwitchIDs    = new PGN32620(this);
            PressureData = new PGN32621(this);

            Sections = new clsSections(this);
            Products = new clsProducts(this);
            RCalarm  = new clsAlarm(this, btAlarm);

            for (int i = 0; i < 3; i++)
            {
                SER[i] = new SerialComm(this, i);
            }

            ProdName   = new Label[] { prd0, prd1, prd2, prd3, prd4 };
            Rates      = new Label[] { rt0, rt1, rt2, rt3, rt4 };
            Indicators = new Label[] { idc0, idc1, idc2, idc3, idc4 };

            UseInches = true;

            PressureObjects = new clsPressures(this);
        }
Пример #2
0
        public FormStart()
        {
            InitializeComponent();

            #region // language

            lbRate.Text      = Lang.lgCurrentRate;
            lbTarget.Text    = Lang.lgTargetRate;
            lbCoverage.Text  = Lang.lgCoverage;
            lbRemaining.Text = Lang.lgTank_Remaining + " ...";

            mnuSettings.Items["MnuProducts"].Text = Lang.lgProducts;
            mnuSettings.Items["MnuSections"].Text = Lang.lgSection;
            mnuSettings.Items["MnuOptions"].Text  = Lang.lgOptions;
            mnuSettings.Items["MnuComm"].Text     = Lang.lgComm;
            mnuSettings.Items["MnuRelays"].Text   = Lang.lgRelays;

            MnuOptions.DropDownItems["MnuAbout"].Text    = Lang.lgAbout;
            MnuOptions.DropDownItems["MnuNew"].Text      = Lang.lgNew;
            MnuOptions.DropDownItems["MnuOpen"].Text     = Lang.lgOpen;
            MnuOptions.DropDownItems["MnuSaveAs"].Text   = Lang.lgSaveAs;
            MnuOptions.DropDownItems["MnuLanguage"].Text = Lang.lgLanguage;

            #endregion // language

            Tls = new clsTools(this);
            //UDPaog = new UDPComm(this, 16666, 17777, 16660, "127.0.0.255");       // AGIO
            UDPaog = new UDPComm(this, 17777, 15555, 1460, "127.255.255.255", false, true);       // AOG

            //UDPnetwork = new UDPComm(this, 29999, 28888, 1480, "192.168.1.255");    // arduino
            //UDPconfig = new UDPComm(this, 29900, 28800, 1482, "192.168.1.255");     // pcb config

            UDPmodules = new UDPComm(this, 29999, 28888, 1480);    // arduino

            AutoSteerPGN = new PGN254(this);
            VRdata       = new PGN230(this);

            SwitchBox    = new PGN32618(this);
            SwitchIDs    = new PGN32620(this);
            PressureData = new PGN32621(this);

            Sections = new clsSections(this);
            Products = new clsProducts(this);
            RCalarm  = new clsAlarm(this, btAlarm);

            for (int i = 0; i < 3; i++)
            {
                SER[i] = new SerialComm(this, i);
            }

            ProdName   = new Label[] { prd0, prd1, prd2, prd3, prd4 };
            Rates      = new Label[] { rt0, rt1, rt2, rt3, rt4 };
            Indicators = new Label[] { idc0, idc1, idc2, idc3, idc4 };

            UseInches = true;

            PressureObjects = new clsPressures(this);
            RelayObjects    = new clsRelays(this);

            timerMain.Interval = 1000;
        }