Top.Mail.Ru
Ответы
Аватар пользователя
Аватар пользователя
Аватар пользователя
Аватар пользователя
Программирование
+4

ПОМОГИТЕ ИСПРАВИТЬ ОШИБКИ КОДА C#

помогите пожалуйста исправить ошибки

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows .Forms;

namespace Октаэдр_2
{
public partial class Form1 : Form
{
OctahedronCl oc = new OctahedronCl();

public Form1()
{
InitializeComponent();
}

private void pictureBox1_Click(object sender, EventArgs e)
{

}

private void output_Click(object sender, EventArgs e)
{

oc.Starter();
oc.Main(pictureBox1);
}
protected override bool ProcessCmdKey(ref System.Windows .Forms.Message msg, System.Windows .Forms.Keys keyData)
{
float delta_theta = (float)Math.PI / 20;
if (keyData == System.Windows .Forms.Keys.Left)
Октаэдр_2.theta_Eye -= delta_theta;
if (keyData == System.Windows .Forms.Keys.Right)
Октаэдр_2.theta_Eye += delta_theta;
if (keyData == System.Windows .Forms.Keys.Up)
Октаэдр_2.phi_Eye -= delta_theta;
if (keyData == System.Windows .Forms.Keys.Down)
Октаэдр_2.phi_Eye += delta_theta;
oc.Main(pictureBox1);
return true;
}

private void timer1_Tick(object sender, EventArgs e)
{
int count = 0;
if (cx.Checked)
count++;
if (cy.Checked)
count++;
if (cz.Checked)
count++;
float delta_theta = (float)Math.PI / 20 / count;
if (cx.Checked)
Октаэдр_2.phi_Eye += delta_theta;
if (cy.Checked)
Октаэдр_2.theta_Eye += delta_theta;
if (cz.Checked)
Октаэдр_2.psi_Eye += delta_theta;
oc.Main(pictureBox1);
}

private void button1_Click(object sender, EventArgs e)
{
if (timer1.Enabled)
timer1.Stop();
else
timer1.Start();

}
}
}

По дате
По рейтингу
Аватар пользователя
Ученик
7мес

чо за смертельное послание

Аватар пользователя
Ученик
7мес

))))), у тебя русские буквы как минимум