示例#1
0
        public void DoSomethingWithNote(Session session, Note note)
        {
            Network      net = new Network();
            IDeserialize des = new JsConvert();

            net.Update(note.id, des.SerializeObj(note));
            session.state = new StateMainWindow(session);
        }
示例#2
0
        public void DoSomethingWithNote(Session session, Note note)
        {
            IDeserialize des = new JsConvert();
            Network      net = new Network();

            Note not = new Note(session.Get_id_for_create(), note.text);

            net.Create(des.SerializeObj(not));



            session.state = new StateMainWindow(session);
            session.mainwindow.test.Content = "item created";
        }