public Room(RoomData rd, bool s) { this.Build(); roomData = rd; settings = AppSettings.I.GenerateRound; penalty = -1; small = s; MyGridLine.H(tableSmall, 2, tableSmall.NColumns, 1, new Gdk.Color(0, 0, 0)); // generate widget containers widgetsContainer = new List <Container>(); cBig = new List <Container>(); cSmall = new List <Container>(); foreach (string sec in sections) { widgetsContainer.Add((Container)GetField("c" + sec)); cBig.Add((Container)GetField("c" + sec + "Big")); cSmall.Add((Container)GetField("c" + sec + "Small")); } // Update Gui after Realized for scrolled window support... this.Realized += delegate(object sender, EventArgs e) { UpdateGui(); // done by UpdateGui: UpdateConflicts(); }; }
public MyConflictButton() { settings = AppSettings.I.GenerateRound; BorderWidth = 0; Relief = ReliefStyle.None; NoShowAll = true; FocusOnClick = false; ButtonPressEvent += OnBtnPressed; }