Пример #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 async void DoSomethingWithNote(Session session, Note note)
        {
            IDeserialize des = new JsConvert();
            Network      net = new Network();
            //var answ = await net.GetAll();
            IEnumerable <Note> aa = await net.GetAll();

            session.mainwindow.Notes.ItemsSource = aa;
            session.mainwindow.test.Content      = "get notes";
        }
Пример #3
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";
        }