int s = 0;
private void button1_Click(object sender, EventArgs e)
{
this.BackgroundImage = Properties.Resources.doluna;
}
private void button2_Click(object sender, EventArgs e)
{
this.BackgroundImage = Properties.Resources.gora;
}
private void button3_Click(object sender, EventArgs e)
{
this.BackgroundImage = Properties.Resources.ozero;
}
private void button4_Click(object sender, EventArgs e)
{
if (s==1)
this.BackgroundImage = Properties.Resources.secret;
else
this.BackgroundImage = Properties.Resources.ri;
s = 0;
}
private void secret_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
s = 1;
// this.BackgroundImage = Properties.Resources.secret;
}
}
private void secret_MouseMove(object sender, MouseEventArgs e)
{
if (s==1)
if (e.X {
s = 2;
}
}
private void button1_Click(object sender, EventArgs e)
{
this.BackgroundImage = Properties.Resources.doluna;
}
private void button2_Click(object sender, EventArgs e)
{
this.BackgroundImage = Properties.Resources.gora;
}
private void button3_Click(object sender, EventArgs e)
{
this.BackgroundImage = Properties.Resources.ozero;
}
private void button4_Click(object sender, EventArgs e)
{
if (s==1)
this.BackgroundImage = Properties.Resources.secret;
else
this.BackgroundImage = Properties.Resources.ri;
s = 0;
}
private void secret_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
s = 1;
// this.BackgroundImage = Properties.Resources.secret;
}
}
private void secret_MouseMove(object sender, MouseEventArgs e)
{
if (s==1)
if (e.X
s = 2;
}
}
Комментариев нет:
Отправить комментарий