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(); // // TODO: Add any constructor code after InitializeComponent call // }
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 // }
private void btnSave_Click(object sender, System.EventArgs e) { gbNotes.Enabled = true; LockScreenActivity(true); System.Windows.Forms.Cursor OriginalCursor = this.Cursor; this.Cursor = System.Windows.Forms.Cursors.WaitCursor; if(CN != null) { CN.Update(txtTime.Text,txtNoteBody.Text); } else { CN = RS.AddNote(AccessingUser,txtTime.Text,txtNoteBody.Text); } ProcessAttachments(); RefreshScreen(); this.Cursor = System.Windows.Forms.Cursors.Default; }
private void btnSave_Click(object sender, System.EventArgs e) { gbNotes.Enabled = true; if(CN != null) { CN.Update(txtTime.Text,txtNoteBody.Text); } else { CN = RS.AddNote(AccessingUser,txtTime.Text,txtNoteBody.Text); } ProcessAttachments(); }