private async void FrmMain_Shown(object sender, EventArgs e) { await GrocyDesktopDependencyManager.UnpackIncludedDependenciesIfNeeded(this.UserSettings, this); this.SetupGrocy(); if (this.UserSettings.EnableBarcodeBuddyIntegration) { this.SetupBarcodeBuddy(); } this.UserDataSyncRestore(); this.SetupPhpFastCgiServer(); this.SetupNginx(); this.SetupCef(); this.ToolStripMenuItem_EnableBarcodeBuddy.Checked = this.UserSettings.EnableBarcodeBuddyIntegration; this.ToolStripMenuItem_EnableExternalAccess.Checked = this.UserSettings.EnableExternalWebserverAccess; this.ToolStripMenuItem_EnableUserDataSync.Checked = this.UserSettings.EnableUserDataSync; if (this.UserSettings.EnableBarcodeBuddyIntegration) { this.ToolStripStatusLabel_ExternalAccessInfo.Text = this.ResourceManager.GetString("STRING_GrocyAndBarcodeBuddyExternalAccessInfo.Text") .Replace("%1$s", this.GrocyManager.HostnameUrl) .Replace("%2$s", this.GrocyManager.IpUrl) .Replace("%3$s", this.BarcodeBuddyManager.HostnameUrl) .Replace("%4$s", this.BarcodeBuddyManager.IpUrl); } else { this.ToolStripStatusLabel_ExternalAccessInfo.Text = this.ResourceManager.GetString("STRING_GrocyExternalAccessInfo.Text") .Replace("%1$s", this.GrocyManager.HostnameUrl) .Replace("%2$s", this.GrocyManager.IpUrl); } }
private async void FrmMain_Shown(object sender, EventArgs e) { await GrocyDesktopDependencyManager.UnpackIncludedDependenciesIfNeeded(this); this.SetupPhpServer(); this.SetupGrocy(); this.SetupCef(); }
private async void FrmMain_Shown(object sender, EventArgs e) { await GrocyDesktopDependencyManager.UnpackIncludedDependenciesIfNeeded(this.UserSettings, this); this.SetupGrocy(); if (this.UserSettings.EnableBarcodeBuddyIntegration) { this.SetupBarcodeBuddy(); } this.SetupCef(); this.ToolStripMenuItem_EnableBarcodeBuddy.Checked = this.UserSettings.EnableBarcodeBuddyIntegration; }