Exemplo n.º 1
0
        public ucCalcKeyboard()
        {
            InitializeComponent();

            txtInput.Font = GerenciadorDeFontesCustomizadas.GetFont(GerenciadorDeFontesCustomizadas.LEDFonte, txtInput.Font);

            _fontErro   = GerenciadorDeFontesCustomizadas.GetFont(GerenciadorDeFontesCustomizadas.LCDFonte, new Font(new FontFamily("Microsoft Sans Serif"), 14, FontStyle.Italic));
            _fontNormal = GerenciadorDeFontesCustomizadas.GetFont(GerenciadorDeFontesCustomizadas.LCDFonte, new Font(new FontFamily("Microsoft Sans Serif"), 30, FontStyle.Bold));

            lbResult.Font = _fontNormal;

            _ucDx = new ucDx();
            _dpDx = new DropDownProvider(_ucDx, btnDx);
        }
Exemplo n.º 2
0
        private void TaskInicializacao()
        {
            try
            {
                ReportProgress("Inicializando banco de dados...");
                Global.Contexto = new DicesContext(Global.DbFile);

                ReportProgress("Carregando Fontes...");
                GerenciadorDeAmbiente.CarregarFontes();
                GerenciadorDeFontesCustomizadas.LoadFontes();

                ReportProgress("Carregando Configuração...");
                GerenciadorDeAmbiente.CarregarConfiguracao();

                DialogResult = DialogResult.OK;
            }
            catch (Exception ex)
            {
                ex.Show();
                DialogResult = DialogResult.Cancel;
            }
        }
Exemplo n.º 3
0
        public ucShowNumber()
        {
            InitializeComponent();

            lbValue.Font = GerenciadorDeFontesCustomizadas.GetFont(GerenciadorDeFontesCustomizadas.LCDFonte, lbValue.Font);
        }