public InformationBox(GeneralPage page) { InitializeComponent(); _page = page; positionX = 125; positionY = 10; BackgroundImageLayout = ImageLayout.Stretch; }
public ActionsPanel(GeneralPage p) { InitializeComponent(); this.SuspendLayout(); _page = p; // Disable elements LockElements(); this.ResumeLayout(); }
public TabIndex(GeneralPage p) { InitializeComponent(); _page = p; isOnBought = false; rnd = new Random(); positionX = 0; positionY = 10; GeneralTooltip = new ToolTip(); GeneralTooltip.ShowAlways = true; GeneralTooltip.InitialDelay = 100; GeneralTooltip.ReshowDelay = 100; // Create imageList ImageList imageList = new ImageList(); imageList.Images.Add(GamePages.Properties.Resources.ActionTab_building_TabIcon); imageList.Images.Add(GamePages.Properties.Resources.ActionTab_happiness_TabIcon); imageList.Images.Add(GamePages.Properties.Resources.ActionTab_VillagerList_TabIcon); imageList.Images.Add(GamePages.Properties.Resources.ActionTab_action_TabIcon); // Add images to tabs actionsMenu.ImageList = imageList; for (int i = 0; i < 4; i++) actionsMenu.TabPages[i].ImageIndex = i; #region Jobs ApothecaryOffice.Click += ApothicaryOffice_Click; Forge.Click += Forge_Click; UnionOfCrafter.Click += UnionOfCrafter_Click; Restaurant.Click += Restaurant_Click; Farm.Click += Farm_Click; Mill.Click += Mill_Click; ClothesShop.Click += ClothesShop_Click; #endregion #region Hobbies Baths.Click += Baths_Click; Brothel.Click += Brothel_Click; Chapel.Click += Chapel_Click; PartyRoom.Click += PartyRoom_Click; Tavern.Click += TavernButton_Click; Theater.Click += Theater_Click; #endregion #region Specials OfferingsWarehouse.Click += OfferingsWarehouse_Click; House.Click += House_Click; #endregion }
public Parameters(GeneralPage generalPage) { InitializeComponent(); _generalPage = generalPage; _generalPage.PropertyChanged += timerValue_value; if (_generalPage.Interval == 0) timerValue.Text = "Aucun."; else { timerTrackBar.Value = _generalPage.Interval; timerValue.Text = _generalPage.Interval.ToString() + " ms"; } }
public InformationsUC(GeneralPage p) { _page = p; InitializeComponent(); }
public InGameMenu(GeneralPage page) { _goBack = false; _page = page; InitializeComponent(); }
public HomepageUC(GeneralPage page) { _page = page; InitializeComponent(); }
public ScenarioBox(GeneralPage actualGame) { gameWindow = actualGame; InitializeComponent(); }