private void PuzzleTag_Load(object sender, EventArgs e) { ShowStatusMessage("ЗАГРУЗКА..."); this.BackgroundImageLayout = ImageLayout.Stretch; SetupClickEvents(this); SetupKeyDownEvents(this); InitializeControls(this); SetupConfiguration(); InitializeGameData(); InitPlayers(); InitGameRules(); var sourceApiUrl = Settings.Api; customImageCollectionConfigurator = new CustomImageCollectionConfigurator(sourceApiUrl, libManager); this.appSize = new int[] { this.Size.Width, this.Size.Height }; UI.Update.MainFormUI = this; }
public SettingsForm( Ruler ruler, Players players, CustomButtonsManager buttonManager, ImageLibraryManager libManager, FileManager.FileManager fileManager, PuzzleTag baseForm, CustomImageCollectionConfigurator customImageCollectionConfigurator) { this.customImageCollectionConfigurator = customImageCollectionConfigurator; this.ruler = ruler; this.players = players; this.fileManager = fileManager; this.buttonManager = buttonManager; this.libManager = libManager; this.baseForm = baseForm; this.queue = new Queue <Player>(QueueType.CircleFIFO); InitializeComponent(); InitSettings(); }