コード例 #1
0
        public meteo_frm(environmentVars stateIni, MainMdiForm _mainmdiform)
        {
            SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.UserPaint, true);
            stateCore = stateIni;
            mainForm  = _mainmdiform;
            SuspendLayout();
            InitializeComponent();
            ResumeLayout();
            if (!stateCore.addonsLoaded || !stateCore.addons.ContainsKey("weather"))
            {
                translations.load("errorMessages");
                string message3 = translations.getText("errorWeatherAddonNotFound") + ". " + translations.getText("contactEnterpriseSupport");
                translations.load("messagebox");
                msgbox = new messageBoxForm(message3 + ". ", translations.getText("warning"), MessageBoxButtons.OK, MessageBoxIcon.Information, Location.X + Width / (double)2, Location.Y + Height / (double)2);
                msgbox.ShowDialog();
                mainForm.busy.Close(true);
                return;
            }

            _weather_pic.Name             = "weather_pic";
            _city_txt.Name                = "city_txt";
            _site_combo.Name              = "site_combo";
            _select_location_lbl.Name     = "select_location_lbl";
            _descricao_txt.Name           = "descricao_txt";
            _meteo_txt.Name               = "meteo_txt";
            _PictureBoxDoubleBuffer1.Name = "PictureBoxDoubleBuffer1";
            _AlphaGradientPanel1.Name     = "AlphaGradientPanel1";
            _LabelDoubleBuffer1.Name      = "LabelDoubleBuffer1";
            _LabelDoubleBuffer2.Name      = "LabelDoubleBuffer2";
            _Label1.Name = "Label1";
        }
コード例 #2
0
        public initializeSmartCard(MainMdiForm _mainMdiForm, environmentVars _state, Dictionary <string, string> _currentFormData)
        {
            mainForm        = _mainMdiForm;
            state           = _state;
            currentFormData = _currentFormData;
            // has: cardId, authString, userCode, pin

            SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.UserPaint, true);
            SuspendLayout();
            InitializeComponent();
            ResumeLayout();
            _closeBtn.Name     = "closeBtn";
            _Panel1.Name       = "Panel1";
            _authCode_lbl.Name = "authCode_lbl";
            _readCodeOnly.Name = "readCodeOnly";
            _cardIdCode.Name   = "cardIdCode";
            _progressBar.Name  = "progressBar";
            _StartBtn.Name     = "StartBtn";
            _PictureBox1.Name  = "PictureBox1";
        }