コード例 #1
0
ファイル: Core.cs プロジェクト: isalosta/SimpleNotesMvvm
        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;
        }
コード例 #2
0
ファイル: Core.cs プロジェクト: isalosta/SimpleNotesMvvm
        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;
        }
コード例 #3
0
 private void GET_DISPLAY(GetDataMain GDM)
 {
     GDM.Callback(ID, TITLE, CONTENT);
 }