public static void InitializeForm() { Form = new AntiFlickerForm(); //можете заменить AntiFlickerForm на Form, запустить и подвигать мышкой. Form.Text = "Manipulator"; Form.ClientSize = new Size(800, 600); Form.Paint += (sender, ev) => Paint((Form)sender, ev); Form.KeyDown += (sender, ev) => VisualizerTask.KeyDown((Form)sender, ev); Form.MouseMove += (sender, ev) => VisualizerTask.MouseMove((Form)sender, ev); Form.MouseWheel += (sender, ev) => VisualizerTask.MouseWheel((Form)sender, ev); Form.Resize += (s, e) => Form.Invalidate(); }
public static void InitializeForm() { Form = new AntiFlickerForm(); Form.Text = "Manipulator"; Form.ClientSize = new Size(700, 700); Form.Paint += (sender, ev) => Paint((Form)sender, ev); Form.KeyDown += (sender, ev) => VisualizerTask.KeyDown((Form)sender, ev); Form.MouseMove += (sender, ev) => VisualizerTask.MouseMove((Form)sender, ev); Form.MouseWheel += (sender, ev) => VisualizerTask.MouseWheel((Form)sender, ev); Form.Resize += (s, e) => Form.Invalidate(); }