Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }