Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public ChattyForm(ClipboardSender sender, NotifyIcon notifyIcon)
 {
     InitializeComponent();
     this.clipboardSender = sender;
     this.notifyIcon = notifyIcon;
 }