Exemple #1
0
        private void ApplyPacket(string[] ids, string[] tit, string[] contents)
        {
            arr_id      = ids;
            arr_title   = tit;
            arr_content = contents;

            CollectionDataResponse CDR = new CollectionDataResponse();

            CDR.ARR_ID      = arr_id;
            CDR.ARR_TITLE   = arr_title;
            CDR.ARR_CONTENT = arr_content;

            Messenger.Default.Send <CollectionDataResponse>(CDR);
        }
        private void SET_COLLECTION(CollectionDataResponse CDR)
        {
            RESET_COLLECTION();
            int length = CDR.ARR_CONTENT.Length;

            Array.Resize(ref ARR_CONTENT, length);
            Array.Resize(ref ARR_ID, length);
            Array.Resize(ref ARR_TITLE, length);

            for (int i = 0; i < length; i++)
            {
                ARR_CONTENT[i] = CDR.ARR_CONTENT[i];
                ARR_ID[i]      = CDR.ARR_ID[i];
                ARR_TITLE[i]   = CDR.ARR_TITLE[i];
            }

            ITEM_ARR = ARR_TITLE;
            Messenger.Default.Send <SelectData>(new SelectData()
            {
                content = ARR_TITLE[0]
            });
        }
Exemple #3
0
        private void GET_LOCAL(ExceptWeb EW)
        {
            System.Windows.MessageBox.Show("YOU ARE OFFLINE", "ERROR");

            Messenger.Default.Send <NotificationMessage>(new NotificationMessage(EW.message));
            string[] id      = new string[0];
            string[] title   = new string[0];
            string[] content = new string[0];

            DM.Read((output, output_2, output_3) => { id = output; title = output_2; content = output_3; });

            CollectionDataResponse cdr = new CollectionDataResponse();

            cdr.ARR_ID      = id;
            cdr.ARR_TITLE   = title;
            cdr.ARR_CONTENT = content;
            Messenger.Default.Send <CollectionDataResponse>(cdr);
            Messenger.Default.Send <Busy>(new Busy()
            {
                busy = false
            });
        }