SoftwareEngineering2/winVCR/winVCR/Form1.cs

91 lines
1.7 KiB
C#
Raw Normal View History

2019-04-06 11:37:12 +02:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
2019-04-09 16:14:26 +02:00
using System.Configuration;
2019-04-06 11:37:12 +02:00
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
2019-04-09 16:14:26 +02:00
using VCRlogic;
2019-04-06 11:37:12 +02:00
namespace winVCR
{
public partial class Form1 : Form
{
2019-04-09 18:41:49 +02:00
2019-04-06 11:37:12 +02:00
public Form1()
{
InitializeComponent();
2019-04-09 16:14:26 +02:00
SMtape.initSMtape();
2019-04-09 18:41:49 +02:00
SMvcr.initSMvcr();
2019-04-09 16:14:26 +02:00
2019-04-09 19:01:22 +02:00
SMvcr.evUpdateStatus += setLabelText;
2019-04-09 16:14:26 +02:00
2019-04-06 11:37:12 +02:00
}
2019-04-06 12:04:11 +02:00
2019-04-09 16:14:26 +02:00
2019-04-09 19:01:22 +02:00
public void setLabelText(StatusEventArgs e)
2019-04-09 16:14:26 +02:00
{
2019-04-09 19:01:22 +02:00
statusLabel.Text = e.Text;
2019-04-09 16:14:26 +02:00
}
2019-04-06 12:04:11 +02:00
private void BtnPlay_Click(object sender, EventArgs e)
{
2019-04-09 18:41:49 +02:00
SMvcr.play();
2019-04-06 12:04:11 +02:00
}
private void Rewind_Click(object sender, EventArgs e)
{
2019-04-09 18:41:49 +02:00
SMvcr.rewind();
2019-04-06 12:04:11 +02:00
}
private void BtnRecord_Click(object sender, EventArgs e)
{
2019-04-09 18:41:49 +02:00
SMvcr.record();
2019-04-06 12:04:11 +02:00
}
private void Power_Click(object sender, EventArgs e)
{
2019-04-06 13:34:30 +02:00
}
private void BtnInsertTape_Click(object sender, EventArgs e)
{
2019-04-09 16:14:26 +02:00
SMtape.insertTape();
2019-04-06 13:34:30 +02:00
}
private void BtnEjectTape_Click(object sender, EventArgs e)
2019-04-09 16:14:26 +02:00
{
SMtape.ejectTape();
}
private void BtnNotEndTape_Click(object sender, EventArgs e)
{
2019-04-09 17:29:40 +02:00
SMtape.notEndTape();
2019-04-09 16:14:26 +02:00
}
private void BtnEndTape_Click(object sender, EventArgs e)
2019-04-06 13:34:30 +02:00
{
2019-04-09 17:29:40 +02:00
SMtape.endTape();
2019-04-06 12:04:11 +02:00
}
2019-04-09 18:41:49 +02:00
private void BtnFastForward_Click(object sender, EventArgs e)
{
SMvcr.fastforward();
}
private void BtnStop_Click(object sender, EventArgs e)
{
SMvcr.stop();
}
2019-04-06 11:37:12 +02:00
}
2019-04-06 13:34:30 +02:00
}