示例#1
0
        public string Take(object sender, EventArgs e, TaskTrayApplicationContext ctx)
        {
            _context                 = ctx;
            _ni                      = ctx.notifyIcon;
            _ssField                 = new Form();
            _ssField.BackColor       = Color.AliceBlue;
            _ssField.TransparencyKey = _ssField.BackColor;
            _ssField.ControlBox      = false;
            _ssField.MaximizeBox     = false;
            _ssField.MinimizeBox     = false;
            _ssField.FormBorderStyle = FormBorderStyle.None;
            _ssField.WindowState     = FormWindowState.Maximized;
            _ssField.MouseDown      += ss_MouseDown;
            _ssField.MouseMove      += ss_MouseMove;
            _ssField.Paint          += ss_Paint;
            _ssField.MouseUp        += ss_MouseUp;
            _ssField.Cursor          = Cursors.Cross;

            _ssField.Show();

            return(_url);
        }
示例#2
0
 private void DoneBTN_Click(object sender, EventArgs e)
 {
     SaveConfigurations();
     TaskTrayApplicationContext.RegisterHotKey(this);
     Close();
 }