private void OnEnumNote() { List <int> notelist = null; if (NotebookApi.NotebookList(NotebookId, NotebookPass, ref notelist)) { NoteList = notelist; Console.WriteLine("Id为{0}的Notebook中 有如下Note", NotebookId); foreach (var obj in NoteList) { Console.WriteLine("Id : {0}", obj); Tuple <int, string, string> note = null; if (NoteApi.NoteGet(NotebookId, NotebookPass, obj, ref note)) { Console.WriteLine("Type : {0}", note.Item1); Console.WriteLine("Name : {0}", note.Item2); Console.WriteLine("Data : {0}", note.Item3); } else { Console.WriteLine("获取失败"); } } } else { Console.WriteLine("获取数据失败"); } Console.ReadKey(); }
private void OnEnterPass() { Console.WriteLine("请输入Notebook密码"); string pass = Console.ReadLine(); List <int> Notes = null; if (NotebookApi.NotebookList(Id, pass, ref Notes)) { SceneManager.Instance.PushScene(new NotebookScene(Username, Password, Id, pass)); Console.WriteLine("密码正确 按下任意按键转入Notebook页面"); } else { Console.WriteLine("密码错误"); } Console.ReadKey(); }