public static void ShowNPCForm(NPC c, string command) { if (c == null) { return; } string[] split = command.Split(Constants.CommandSymbol); int page = 0; int currentDisplay = -1; if (split.Length > 2 && int.TryParse(split[2], out page)) { } if (split.Length > 3 && int.TryParse(split[3], out currentDisplay)) { } NPCForm f = new NPCForm(page, currentDisplay); f.npc = c; ShowNotification(f, command); }
public static void ShowNPCForm(NPC c, string command) { if (c == null) return; string[] split = command.Split(Constants.CommandSymbol); int page = 0; int currentDisplay = -1; if (split.Length > 2 && int.TryParse(split[2], out page)) { } if (split.Length > 3 && int.TryParse(split[3], out currentDisplay)) { } NPCForm f = new NPCForm(page, currentDisplay); f.npc = c; ShowNotification(f, command); }