Пример #1
0
        public MSWordViewerFrm(DataSources.dsQueries.QryItemsRow row)
        {
            InitializeComponent();

            _row = row;
            notify = new nsLib.Utilities.UpdateInfo();
            notify.AddItem(false); notify.AddItem(false);
            notify.AddItem(new int()); notify.AddItem(new int());
        }
Пример #2
0
        private void SendFiles()
        {
            List<string[]> list = new List<string[]>();
            list.Add(new string[] { "e:\\test1", "c:\\test1" });
            list.Add(new string[] { "e:\\test2", "c:\\test2" });
            list.Add(new string[] { "e:\\test3", "c:\\test3" });

            nsLib.Utilities.UpdateInfo notify = new nsLib.Utilities.UpdateInfo();
            notify.AddItem(false);
            notify.AddItem(pbMultiFileS.Maximum); notify.AddItem(pbMultiFileS.Value);
            notify.AddItem(pbMultiFileS.Maximum); notify.AddItem(pbMultiFileS.Value);
            notify.OnItemChanged += notifySendFiles_OnItemChanged;

            System.Threading.ThreadPool.QueueUserWorkItem((o) =>
            {
                //lib.C_SendFiles(list, notify);
            });
        }
Пример #3
0
        private void ReciveFiles()
        {
            List<string> slist = new List<string>();
            slist.Add("e:\\test1");
            slist.Add("e:\\test2");
            slist.Add("e:\\test3");

            List<string> clist = new List<string>();
            clist.Add("c:\\test1");
            clist.Add("c:\\test2");
            clist.Add("c:\\test3");

            nsLib.Utilities.UpdateInfo noty = new nsLib.Utilities.UpdateInfo();
            noty.AddItem(false);
            noty.AddItem(pbMultiFileR.Maximum); noty.AddItem(pbMultiFileR.Value);
            noty.AddItem(pbMultiFileR.Maximum); noty.AddItem(pbMultiFileR.Value);
            noty.OnItemChanged += notifySReciveFiles_OnItemChanged;


            lib.C_ReciveFiles(clist, slist, ref noty);
            MessageBox.Show("file recive complated ..");
        }