Ejemplo n.º 1
0
 private void btnEditNote_Click(object sender, System.EventArgs e)
 {
     if(lvNotes.SelectedItems.Count == 0) return;
     CurrentNote = (OysterClassLibrary.Note)lvNotes.SelectedItems[0].Tag;
     CurrentDescription = CurrentNote.Description;
     CurrentSyncTime = CurrentNote.SyncTime;
     IsNewNote = false;
     frmNoteWizard fNW = new frmNoteWizard();
     fNW.ShowDialog(this);
     Refresh_Views();
 }
Ejemplo n.º 2
0
        private void btnNewNote_Click(object sender, System.EventArgs e)
        {
            try
            {
                if(FrmParent.CurrentPlayingRecording.ID == ThisRecording.ID)
                {
                    if(FrmParent.MediaPlayer.openState == WMPLib.WMPOpenState.wmposMediaOpen)
                    {
                       CurrentSyncTime = FrmParent.MediaPlayer.Ctlcontrols.currentPositionString;
                    }
                    else
                      CurrentSyncTime = "00:00:00";
                }
                Refresh_Views();
            }
            catch(Exception Err)
            {string pError = Err.Message;
                CurrentSyncTime = "00:00:00";
            }
            CurrentDescription = "Enter new description here.";
            IsNewNote = true;
            frmNoteWizard fNW = new frmNoteWizard();

            fNW.ShowDialog(this);
            Refresh_Views();
        }