Beispiel #1
0
        public void DeleteNote()
        {
            string id      = "";
            string title   = "";
            string content = "";

            GetDataMain GDM = new GetDataMain();

            GDM.Callback = (output, outputP, outputC) => { id = output; title = outputP; content = outputC; };

            Messenger.Default.Send <GetDataMain>(GDM);

            while (string.IsNullOrEmpty(id) && string.IsNullOrEmpty(title) && string.IsNullOrEmpty(content))
            {
                System.Threading.Thread.Sleep(200);
            }

            DeleteNote DN = new DeleteNote();

            DN.id = id;

            Messenger.Default.Send <DeleteNote>(DN);
            GDM = null;
            DN  = null;
        }
Beispiel #2
0
        private void UpdateNote()
        {
            string id      = "";
            string title   = "";
            string content = "";

            GetDataMain GDM = new GetDataMain();

            GDM.Callback = (output, outputP, outputC) => { id = output; title = outputP; content = outputC; };

            Messenger.Default.Send <GetDataMain>(GDM);

            while (string.IsNullOrEmpty(id) && string.IsNullOrEmpty(title) && string.IsNullOrEmpty(content))
            {
                System.Threading.Thread.Sleep(200);
            }

            ServerUpdate SA = new ServerUpdate();

            SA.id      = id;
            SA.title   = title;
            SA.content = content;
            Messenger.Default.Send <ServerUpdate>(SA);

            GDM = null;
            SA  = null;
        }
 private void GET_DISPLAY(GetDataMain GDM)
 {
     GDM.Callback(ID, TITLE, CONTENT);
 }