private static void DeckCPBChoice(bool result, string[] decklist, PlayerInfo sender, string deckname) { if (!result) { return; } string name = sender.Username + "_" + deckname + "_" + DateTime.Now.ToString("dd_MM_yyyy_hh_mm_ss") + ".ydk"; name = name.Replace(' ', '_'); File.WriteAllLines(Path.Combine(path, "BattleCityAlpha", "deck", name), decklist); YgoProHelper.LaunchYgoPro("-d " + name); }
private static void ReplayCPBChoice(bool result, byte[] replay, PlayerInfo sender, string replayname) { if (!result) { return; } string name = sender.Username + "_" + replayname + "_" + DateTime.Now.ToString("dd_MM_yyyy_hh_mm_ss") + ".yrp"; name = name.Replace(' ', '_'); File.WriteAllBytes(Path.Combine(path, "BattleCityAlpha", "replay", name), replay); YgoProHelper.LaunchYgoPro("-r " + name); }
private void btnCGU_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { YgoProHelper.LaunchYgoPro("-r"); }
private static void Client_LaunchYGOProWithoutRoom(string arg) { YgoProHelper.LaunchYgoPro(arg); }