public void loadDefaults(environmentVarsCore envars) { // ToDo check default font files are present var FontFileName = new FileInfo(envars.fontsPath + fontTitleFile); FontFileName.Refresh(); if (FontFileName.Exists) { envars.layoutDesign.fontTitle.AddFontFile(envars.fontsPath + fontTitleFile); } else { MessageBox.Show("font file not found. reinstall the program"); throw new Exception("font file not found"); } FontFileName = new FileInfo(envars.fontsPath + fontTextFile); FontFileName.Refresh(); if (FontFileName.Exists) { envars.layoutDesign.fontText.AddFontFile(envars.fontsPath + fontTextFile); } else { MessageBox.Show("font file not found. reinstall the program"); throw new Exception("font file not found"); } }
public void loadCustomizationFile(environmentVarsCore envars) { // ToDo check if customization file is present var custom = new FileInfo(envars.libraryPath + "custom.eon"); custom.Refresh(); if (custom.Exists) { } // TODO LOAD FILE else { // TODO LOAD BLANK UNCONFIGURED APP - MAKE AN external APP for building this file } }
public MessageBoxChild(global::System.String _message, global::System.String _title, MessageBoxButtons _buttons, MessageBoxIcon _icon, global::System.Int32 posx = -1, global::System.Int32 posy = -1, AeonLabs.Environment.Core.environmentVarsCore _state = default) { base.Load += message_box_frm_load; base.Shown += message_box_frm_show; this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.UserPaint, true); // This call is required by the designer. this.SuspendLayout(); InitializeComponent(); this.ResumeLayout(); titleMsg = _title; messageText = _message; iconImage = _icon; buttons = _buttons; if (_state == null) { enVars = new AeonLabs.Environment.Core.environmentVarsCore(); enVars.loadEnvironmentcoreDefaults(); } else { enVars = _state; } title.Font = new Font(enVars.layoutDesign.fontTitle.Families[0], enVars.layoutDesign.DialogTitleFontSize, FontStyle.Bold); message.Font = new Font(enVars.layoutDesign.fontText.Families[0], enVars.layoutDesign.RegularTextFontSize, FontStyle.Regular); ContinueBtn.Font = new Font(enVars.layoutDesign.fontTitle.Families[0], enVars.layoutDesign.buttonFontSize, FontStyle.Bold); cancelBtn.Font = new Font(enVars.layoutDesign.fontTitle.Families[0], enVars.layoutDesign.buttonFontSize, FontStyle.Bold); ContinueBtn.BackColor = Color.FromArgb(200, Color.Black); ContinueBtn.Parent = AlphaGradientPanel1; ContinueBtn.Location = new Point(40, this.Height - 10 - this.ContinueBtn.Height); cancelBtn.BackColor = Color.FromArgb(200, Color.Black); cancelBtn.Parent = AlphaGradientPanel1; cancelBtn.Location = new Point(this.Width - 40 - this.cancelBtn.Width, this.Height - 10 - this.cancelBtn.Height); }
public EnvironmentAssembliesLoadClass(environmentVarsCore _enVars) { enVarsAssemblies = _enVars.assemblies; enVars = _enVars; }
public void RaiseEnventUpDateEnvironemnt(object sender, environmentVarsCore envars) { UpDateEnvironemnt?.Invoke(sender, envars); }