void SignUp(Messenger messenger, string key, SignUp packet) { try { using (var account = new StreamWriter(new FileStream(accountPath + "\\" + packet.id, FileMode.Create))) { account.WriteLine(packet.pw); account.WriteLine(packet.id); } } catch (Exception e) { History.Log(e.ToString()); } }
void SignUp(Messenger messenger, string key, SignUp packet) { _messenger.Send("Database", packet); }