public DDToolstripMenuItem(D2Game game) : base() { this.CheckOnClick = true; this.Game = game; this.Type = D2ToolstripType.Game; this.Text = game.ToString(); this.Checked = game.Installed; }
public DDToolstripMenuItem(D2ToolstripType type) : base() { this.CheckOnClick = false; this.Game = null; this.Type = type; switch (type) { case D2ToolstripType.AttachToAll: this.Text = "Attach to all"; break; case D2ToolstripType.DetachFromAll: this.Text = "Detach from all"; break; default: this.Text = "-"; break; } }