Читайте также:
|
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TP1
{
public partial class Prog: Form
{
public OutPanel op=new OutPanel();
public InPanel ip = new InPanel();
public CSystem sys = new CSystem();
public CDisplay dis = new CDisplay();
public CRing ring = new CRing();
public CMic inmic = new CMic();
public CMic outmic = new CMic();
public CSpeaker insp = new CSpeaker();
public CSpeaker outsp = new CSpeaker();
public CLock lk = new CLock();
public Prog()
{
InitializeComponent();
dis.SetD(textBox1);
}
private void button1_Click(object sender, EventArgs e)
{
op.SetCode("1", dis, lk, sys, labelSD, labelKD, labelKK);
}
private void button2_Click(object sender, EventArgs e)
{
op.SetCode("2",dis, lk,sys, labelSD, labelKD, labelKK);
}
private void button3_Click(object sender, EventArgs e)
{
op.SetCode("3",dis, lk,sys, labelSD, labelKD, labelKK);
}
private void button4_Click(object sender, EventArgs e)
{
op.SetCode("4",dis, lk,sys, labelSD, labelKD, labelKK);
}
private void button5_Click(object sender, EventArgs e)
{
op.SetCode("5",dis, lk,sys, labelSD, labelKD, labelKK);
}
private void button6_Click(object sender, EventArgs e)
{
op.SetCode("6",dis, lk,sys, labelSD, labelKD, labelKK);
}
private void button7_Click(object sender, EventArgs e)
{
op.SetCode("7",dis, lk,sys, labelSD, labelKD, labelKK);
}
private void button8_Click(object sender, EventArgs e)
{
op.SetCode("8",dis, lk,sys, labelSD, labelKD, labelKK);
}
private void button9_Click(object sender, EventArgs e)
{
op.SetCode("9",dis, lk,sys, labelSD, labelKD, labelKK);
}
private void button0_Click(object sender, EventArgs e)
{
op.SetCode("0",dis, lk,sys, labelSD, labelKD, labelKK);
}
private void buttonCall_Click(object sender, EventArgs e)
{
op.PushKeyRing(dis, lk, ring, sys, labelA, timer1);
}
private void timer1_Tick(object sender, EventArgs e)
{
labelA.Visible = false;
ring.RingOff();
}
private void buttonAnswer_Click(object sender, EventArgs e)
{
if ((inmic.MicStat == false) && (insp.SpStat == false))
{
labelIM.Text = "Вкл";
labelIG.Text = "Вкл";
labelOm.Text = "Вкл";
labelOG.Text = "Вкл";
}
else
{
labelIM.Text = "Выкл";
labelIG.Text = "Выкл";
labelOm.Text = "Выкл";
labelOG.Text = "Выкл";
}
ip.PushKeyAnswer(inmic,outmic,insp,outsp);
}
private void buttonOpen_Click(object sender, EventArgs e)
{
ip.PushKeyOpen(lk,labelSD);
}
private void timer2_Tick(object sender, EventArgs e)
{
}
private void buttonControl_Click(object sender, EventArgs e)
{
op.PushKeyControl(lk,dis,sys);
}
private void buttonClose_Click(object sender, EventArgs e)
{
lk.CloseLock(sys,labelSD);
}
}
}
Дата добавления: 2015-08-20; просмотров: 62 | Нарушение авторских прав
<== предыдущая страница | | | следующая страница ==> |
Класс InPanel | | | Заменитель полноценного приема пищи |