예제 #1
0
        private void btnEditNote_Click(object sender, System.EventArgs e)
        {
            if(lvNotes.SelectedItems.Count == 0)
            {
                btnEditNote.Enabled = false;
                btnDeleteNote.Enabled = false;
                return;
            }
            bool ResumePlaying = false;
            if(PreviewPlayer.IsPlaying)
            {
                PreviewPlayer.PauseAllPlayers();
                ResumePlaying = true;
            }
            OCL.Note N = (OCL.Note)lvNotes.SelectedItems[0].Tag;

            frmNote FN = new frmNote(frmParent.LUser,RS,N);
            FN.ShowDialog(this);
            if(ResumePlaying)
            {
                PreviewPlayer.PlayAllPlayers();
            }
            UpdateNotes();
        }
예제 #2
0
 private void btnAddNote_Click(object sender, System.EventArgs e)
 {
     OCL.Note CN = null;
     frmNote FN = new frmNote(frmParent.LUser,RS,CN);
     bool ResumePlaying = false;
     if(PreviewPlayer.IsPlaying)
     {
         PreviewPlayer.PauseAllPlayers();
         ResumePlaying = true;
     }
     FN.txtTime.Text = PreviewPlayer.CurrentPlaybackTimeString;
     DialogResult DR = FN.ShowDialog(this);
     if(ResumePlaying)
     {
         PreviewPlayer.PlayAllPlayers();
     }
     UpdateNotes();
 }