Exemplo n.º 1
0
        //截图按钮
        private void btn_screen_shotcut_BtnClick(object sender, EventArgs e)
        {
            if (Recorder.State == Recorder.Record_State.NOT_BEGIN)
            {
                WindowUtils.Hide(Handle);
                if (!Settings.fullscreen)
                {
                    WindowUtils.Hide(formRect.Handle);
                }

                if (formScreenShutcut == null)
                {
                    formScreenShutcut = new FormScreenShutcut();
                    formScreenShutcut.Show(this);
                    formScreenShutcut.FormClosed += (object sender2, FormClosedEventArgs e2) =>
                    {
                        WindowUtils.Show(Handle);
                        if (!Settings.fullscreen)
                        {
                            WindowUtils.Show(formRect.Handle);
                        }
                        Invalidate();

                        formScreenShutcut = null;
                    };
                }
                else
                {
                    WindowUtils.Show(formScreenShutcut.Handle);
                    WindowUtils.SetForeground(formScreenShutcut.Handle);
                }
            }
        }
Exemplo n.º 2
0
 public FormEditScreenShutTools(FormScreenShutcut formScreenShutcut)
 {
     InitializeComponent();
     this.formScreenShutcut = formScreenShutcut;
     cur_pen          = new Cursor(new MemoryStream(Properties.Resources.cur_pen));
     cur_brush_small  = new Cursor(new MemoryStream(Properties.Resources.cur_brush_small));
     cur_brush_normal = new Cursor(new MemoryStream(Properties.Resources.cur_brush_normal));
     cur_brush_big    = new Cursor(new MemoryStream(Properties.Resources.cur_brush_big));
     cur_default      = Cursors.Arrow;//new Cursor(new MemoryStream(Properties.Resources.cur_default));
 }
Exemplo n.º 3
0
 public FormColorPick(FormScreenShutcut bg)
 {
     InitializeComponent();
     formScreenShutcut = bg;
 }