Exemplo n.º 1
0
 private void UI_recordBtn_Click(object sender, EventArgs e)
 {
     UI_Statusbar.Text = "Recording";
     UI_Statusbar.Show();
     UI_Statusbar.Text = "Recording";
     //UI_progressBar.Show(); // needs to be repeating. No fixed end time.
     currentinstance = new songinstance();
     instancelist.Add(currentinstance);
     currentinstance.record();
     recordtime.Text = currentinstance.getrecordtime().Hour + ":" + currentinstance.getrecordtime().Minute + " " + currentinstance.getrecordtime().DayOfWeek;
     //DynamicRecord.start();
     //Thread record = new Thread(link_RecordViaThread);
     //record.Name = "recorder";
     //record.IsBackground = true;
     //record.Start();
     //Recordtimer.Enabled = true;
 }
Exemplo n.º 2
0
 private void instancedelete_Click(object sender, EventArgs e)
 {
     currentinstance.delete();
     int i = instancelist.IndexOf(currentinstance);
     instancelist.Remove(currentinstance);
     if ((i > 0) && (i < instancelist.Count - 1))
     { currentinstance = instancelist[i - 1];
     recordtime.Text = currentinstance.getrecordtime().Hour + ":" + currentinstance.getrecordtime().Minute + " " + currentinstance.getrecordtime().DayOfWeek;
     }
 }
Exemplo n.º 3
0
        private void nextinstance_Click(object sender, EventArgs e)
        {
            int i = instancelist.IndexOf(currentinstance);
            if (i < instancelist.Count - 1)
            {
#if VERBOSE
                MessageBox.Show("going to next instance");
#endif
                currentinstance = instancelist[i + 1];
                recordtime.Text = currentinstance.getrecordtime().Hour + ":" + currentinstance.getrecordtime().Minute + " " + currentinstance.getrecordtime().DayOfWeek;
            }
        }