using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Windows.Forms; using FastReport.Design; using FastReport.Utils; using FastReport.Wizards; using System.Linq; using FastReport.Cloud.FastReport; namespace FastReport.Forms { /// /// Represents the Welcome window displayed on the designer startup /// public partial class WelcomeForm : BaseForm { private Designer designer; private Button btnOpen; private const int maxItemsInColumn = 9; /// /// Initializes a new instance of the class. /// /// public WelcomeForm(Designer designer) { InitializeComponent(); #if COMMUNITY if (Config.WelcomeScreen != null) this.banner.Image = Config.WelcomeScreen; btnAccount.Visible = false; #endif this.designer = designer; setupLeftPanel(); setupRightPanel(); Localize(); cbShowOnStartup.Checked = Config.WelcomeShowOnStartup; FRCloudOptions.Instance.ResetBackendHostAndApiKey(); Config.DesignerSettings.ReportLoaded += DesignerSettings_ReportLoaded; UIUtils.CheckRTL(this); UpdateDpiDependencies(); } public override void UpdateDpiDependencies() { base.UpdateDpiDependencies(); this.banner.Image = GetImage("Images.Welcome.png"); this.lblNew.Font = this.lblOpen.Font = this.LogicalToDevice(new Font("Arial", 11.25F, FontStyle.Bold), true); panelLeft.Controls.OfType