コード例 #1
0
ファイル: MainForm.cs プロジェクト: deepblue/clipnote
        public MainForm(bool minimized)
        {
            InitializeComponent();

            this.setting = Setting.Load(Application.LocalUserAppDataPath);
            this.urlPattern = new Regex("^https?://([A-Za-z0-9-].*?).springnote.com/pages/([0-9]+)", RegexOptions.IgnoreCase | RegexOptions.Compiled);
            this.clipboardSender = new ClipboardSender(this.Handle, this.setting);

            if (minimized)
            {
                this.WindowState = FormWindowState.Minimized;
            }
        }
コード例 #2
0
ファイル: CaptureForm.cs プロジェクト: deepblue/clipnote
        public CaptureForm(Form frm, bool visible, ClipboardSender clipboardSender, NotifyIcon notifyIcon)
        {
            InitializeComponent();
            this.MouseDown += new MouseEventHandler(mouse_Click);
            this.MouseUp += new MouseEventHandler(mouse_Up);
            this.MouseMove += new MouseEventHandler(mouse_Move);
            MyPen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot;
            g = this.CreateGraphics();

            MyParentForm = frm;
            ParantFormVisible = visible;
            this.clipboardSender = clipboardSender;
            this.notifyIcon = notifyIcon;
        }
コード例 #3
0
ファイル: ChattyForm.cs プロジェクト: deepblue/clipnote
 public ChattyForm(ClipboardSender sender, NotifyIcon notifyIcon)
 {
     InitializeComponent();
     this.clipboardSender = sender;
     this.notifyIcon = notifyIcon;
 }