public void CreateCheckBox(string key, EventHandler ev) { CheckBox cb = new CheckBox(manager); cb.Init(); cb.Parent = CheckBoxes.panel; cb.Text = key; cb.Top = HeightCounter4; cb.Width = 100; cb.Click += ev; HeightCounter4 += cb.Height; }
public Sidebar(UserInterface ui) { this.game = ui.game; //this.room = ui.game.room; this.ui = ui; NotImplemented = delegate { PopUp.Toast("Not Implemented. Take a hike."); //throw new NotImplementedException(); }; manager = game.Manager; manager.SetSkin("Green"); }
public void CreateCheckBox(string key, bool isChecked, EventHandler ev) { CheckBox cb = new CheckBox(manager); cb.Init(); cb.Parent = window; cb.Text = key; cb.Top = HeightCounter; cb.Left = LeftPadding; cb.Width = 180; cb.Click += ev; cb.Checked = isChecked; HeightCounter += cb.Height; }
public opt(OptType t, object c, TomShane.Neoforce.Controls.EventHandler e = null) { if (c.GetType() != tc[t]) throw new System.ArgumentException("Content does not match option type"); type = t; content = c; action = e ?? action; }