CaptureItPlus/Capturemodes/WindowCapture.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace CaptureItPlus.Capturemodes
{
    using System;
    using System.Drawing;
    using System.Windows.Forms;
    

    
    public class WindowCapture : ICaptureMode
    {
        private string _folder;
        private object _owner;
        private IntPtr _windowHandle = IntPtr.Zero;

        public string Name
        {
            get { return "Window"; }
        }

        public string Text
        {
            get { return "&Window窗口"; }
        }

        //public Image Icon
        //{
        //    get { return Properties.Resources.window; }
        //}

        public string Description
        {
            get { return "Helps to capture any window, select any window after clicking this menu item"; }
        }

        public Keys ShortcutKey
        {
            get { return Keys.Control & Keys.W; }
        }

        public bool IsEnabled
        {
            get { return true; }
        }

        public void Initialize(params object[] arguments)
        {
            _folder = arguments[0].ToString();
            _owner = arguments[1].ToString();
            _windowHandle = (IntPtr)arguments[2];
        }

        public string Execute()
        {
            using (frmWindowCapture frmWindowCapture = new frmWindowCapture())
            {
                if (frmWindowCapture.ShowDialog() == DialogResult.OK)
                {
                    return frmWindowCapture.FileName;
                }
            }
后面还有 9 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。