コード例 #1
0
ファイル: frmNote.cs プロジェクト: CarverLab/Oyster
 public frmNote(OCL.User AccessingUser,OCL.RecordingSession RS,OCL.Note CN)
 {
     this.AccessingUser = AccessingUser;
     this.RS = RS;
     this.CN = CN;
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     NewFiles = new ArrayList();
     DeletedFiles = new ArrayList();
     OysterFTP = new OCL.FTPTransfer();
     OysterFTP.On_TransferProgress +=new OCL.FTPTransfer.FTPTransferEventHandler(OysterFTP_On_TransferProgress);
     //
     // TODO: Add any constructor code after InitializeComponent call
     //
 }
コード例 #2
0
ファイル: frmNote.cs プロジェクト: CarverLab/Oyster
        private void ProcessAttachments()
        {
            /// Add New Files To Oyster System
            ///
            if(CN == null)
                return;
            string[] sFiles = new string[NewFiles.Count];
            for(int i=0;i<NewFiles.Count;i++)
            {
                sFiles[i] = (string)NewFiles[i];
            }
            if(NewFiles.Count > 0)
            {
                OCL.FTPTransfer OysterFTP = new OCL.FTPTransfer();
                OCL.Attachments AS = CN.AddAttachments(AccessingUser,sFiles,ref OysterFTP);

                if(AS.Count != NewFiles.Count)
                    MessageBox.Show("Actual Attachments is not the same number as Expected Attachments","System Shouts to Kevin:");
            }
            /// Remove Deleted Files from Oyster System

            foreach(object obj in DeletedFiles)
            {
                OCL.Attachment DOA = (OCL.Attachment)obj;
                CN.RemoveAttachment(AccessingUser,DOA);
            }
        }
コード例 #3
0
ファイル: frmHardDisc.cs プロジェクト: CarverLab/Oyster
        public frmHardDisc()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            this.SelectedRecordingSessions = new OCL.RecordingSessions();
            frmShowProgress = new frmBurnOysterDisc();
            OysterFTP = new OCL.FTPTransfer();
            OysterFTP.On_TransferProgress +=new OCL.FTPTransfer.FTPTransferEventHandler(OysterFTP_On_TransferProgress);
            //OysterFTP.On_Download_Begin +=new OCL.FTPTransfer.FTPTransferEventHandler(OysterFTP_On_Download_Begin);
            //OysterFTP.On_Download_Complete +=new OCL.FTPTransfer.FTPTransferEventHandler(OysterFTP_On_Download_Complete);
        }