Beispiel #1
0
        public CreatePrize() :
            base(Gtk.WindowType.Toplevel)
        {
            // Populating the fixed container
            @fixed.Put(lblPrizeMain, 10, 10);

            @fixed.Put(lblPrizePlaceNumber, 40, 60);
            @fixed.Put(entryPrizePlaceNumber, 200, 60);

            @fixed.Put(lblPrizePlaceName, 40, 100);
            @fixed.Put(entryPrizePlaceName, 200, 100);

            @fixed.Put(lblPrizePlaceAmount, 40, 140);
            @fixed.Put(entryPrizePlaceAmount, 200, 140);

            @fixed.Put(lblOR, 160, 180);

            @fixed.Put(lblPrizePercentage, 40, 220);
            @fixed.Put(entryPrizePercentage, 200, 220);

            @fixed.Put(btnPrizeCreate, 160, 280);

            // Assigning widget colora and fonts
            GeneralMethods.LabelColoursFonts(@fixed,
                                             new byte[] { 255, 255, 255 }, new Label[] { lblPrizeMain });

            // Window setup
            ModifyBg(StateType.Normal, new Gdk.Color(36, 36, 36));
            SetDefaultSize(400, 400);
            SetPosition(WindowPosition.Center);
            Title = "Prize Creator";

            hBox.Add(@fixed);

            Add(hBox);

            ShowAll();
        }