コード例 #1
0
        public LoginForm()
        {
            InitializeComponent();
            ControlsUtil.SetBackColor(this.Controls);
            tfCPF.Focus();
            tfCPF.SelectAll();

            if (Environment.MachineName == "CADORE-NOTE")
            {
                tfCPF.Text      = "050.425.459-64";
                tfPassword.Text = "cadore";
            }

            SplashScreenManager.CloseForm(false);
        }
コード例 #2
0
        public ChooseColorFocusedForm()
        {
            InitializeComponent();
            ControlsUtil.SetBackColor(this.Controls);
            string c = INI.ReadValue("SYSTEM", "AppearanceFocused");

            string[] color;
            if (String.IsNullOrEmpty(c))
            {
                color = new string[] { "235", "235", "235" }
            }
            ;
            else
            {
                color = c.Split(';');
            }

            int   red   = Convert.ToInt32(color[0]);
            int   green = Convert.ToInt32(color[1]);
            int   blue  = Convert.ToInt32(color[2]);
            Color col   = Color.FromArgb(red, green, blue);

            colorEdit.Color = col;
        }