//----< load getFiles processing into dispatcher dictionary >------

        private void DispatcherLoadGetFiles()
        {
            Action <CsMessage> getFiles = (CsMessage rcvMsg) =>
            {
                Action clrFiles = () =>
                {
                    NavRemote.clearFiles();
                };
                Dispatcher.Invoke(clrFiles, new Object[] { });
                var enumer = rcvMsg.attributes.GetEnumerator();
                while (enumer.MoveNext())
                {
                    string key = enumer.Current.Key;
                    if (key.Contains("file"))
                    {
                        Action <string> doFile = (string file) =>
                        {
                            NavRemote.addFile(file);
                        };
                        Dispatcher.Invoke(doFile, new Object[] { enumer.Current.Value });
                    }
                }
            };

            addClientProc("getFiles", getFiles);
        }
Beispiel #2
0
        //----< load getFiles processing into dispatcher dictionary >------

        private void DispatcherLoadGetFiles()
        {
            Action <CsMessage> getFiles = (CsMessage rcvMsg) =>
            {
                Action clrFiles = () =>
                {
                    NavRemote.clearFiles();
                };
                Dispatcher.Invoke(clrFiles, new Object[] { });
                var enumer = rcvMsg.attributes.GetEnumerator();
                while (enumer.MoveNext())
                {
                    string key = enumer.Current.Key;
                    if (key.Contains("file"))
                    {
                        Action <string> doFile = (string file) =>
                        {
                            NavRemote.addFile(file);
                        };
                        Dispatcher.Invoke(doFile, new Object[] { enumer.Current.Value });
                    }
                }
                Action mytest = () =>
                {
                    if (testCin == true)
                    {
                        testCheckIn();
                        testBrowse();
                        testCin = false;
                    }
                    if (testCout == true)
                    {
                        testCheckOut();
                        testConnect();
                        testCout = false;
                    }
                };
                Dispatcher.Invoke(mytest, new Object[] { });
            };

            addClientProc("getFiles", getFiles);
        }