public Setup() { InitializeComponent(); CoordsScrolling = new Forms.PanelScroll(this.panel1, false); SendMessage(textBoxQuestNum.Handle, 0x1501, 1, "30103"); SendMessage(textBoxFPKName.Handle, 0x1501, 1, "Example_Quest_Name"); SendMessage(textBoxQuestTitle.Handle, 0x1501, 1, "Example Quest Title Text"); LocationBoxes = new Tuple <Label, TextBox>[6] { new Tuple <Label, TextBox>(labelHos, textBoxHosCoords), new Tuple <Label, TextBox>(labelVeh, textBoxVehCoords), new Tuple <Label, TextBox>(labelAni, textBoxAnimalCoords), new Tuple <Label, TextBox>(labelItem, textBoxItemCoords), new Tuple <Label, TextBox>(labelActiveItem, textBoxActiveItemCoords), new Tuple <Label, TextBox>(labelModel, textBoxStMdCoords) }; for (int i = 0; i < AfghCPs.Length; i++) { afghCP[i] = AfghCPs[i].CPname; } for (int i = 0; i < MafrCPs.Length; i++) { mafrCP[i] = MafrCPs[i].CPname; } mtbsCP[0] = MtbsCP.CPname; refreshNotifsList(); }
public FormMain() { InitializeComponent(); setupPage.ShiftGroups(Height - 100, Width - 42); detailPage.ShiftGroups(Height - 100, Width - 42); GoToPanel(); Forms.PanelScroll CoordsScrolling = new Forms.PanelScroll(setupPage.panel1, false); Application.AddMessageFilter(CoordsScrolling); buttonBack.Visible = false; }