/// <summary> /// Invokes the command. /// </summary> public override void Invoke() { OnInvoking(); ClientApplication client = ClientApplication.Instance; GameRoot root = client.ServerInstance; //load the ruleset string loadingMessage = ClientResources.GetString("item_loading"); string message = string.Format(CultureInfo.CurrentCulture, loadingMessage, this.rulesetPath); client.Console.WriteLine(message); root.LoadRuleset(this.rulesetPath); //load the tileset message = string.Format(CultureInfo.CurrentCulture, loadingMessage, this.tilesetPath); client.Console.WriteLine(message); client.LoadTileset(this.tilesetPath); INewGameControl ctl = (INewGameControl)client.GetControl(typeof(INewGameControl)); ctl.ResultChosen += new EventHandler(HandleResultChosen); ctl.ShowSimilizationControl(); }