예제 #1
0
파일: Room.cs 프로젝트: julmaxi/opdtab
        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();
            };
        }
예제 #2
0
 public MyConflictButton()
 {
     settings          = AppSettings.I.GenerateRound;
     BorderWidth       = 0;
     Relief            = ReliefStyle.None;
     NoShowAll         = true;
     FocusOnClick      = false;
     ButtonPressEvent += OnBtnPressed;
 }