示例#1
0
 // Initialize Menu
 public Menu(Process.position x, ScriptHandler s, Items i1, Items i2, Items i3)
 {
     this.menuType = x;
     this.items[0] = i1;
     this.items[1] = i2;
     this.items[2] = i3;
     script = s;
 }
示例#2
0
        // Initialize Menu

        public Menu(Process.position x, ScriptHandler s, Items i1, Items i2, Items i3)
        {
            this.menuType = x;
            this.items[0] = i1;
            this.items[1] = i2;
            this.items[2] = i3;
            script        = s;
        }
示例#3
0
        public Process()
        {
            // Icons Used

            icons[0]  = Image.FromFile(@"imgProject\Applications\backw.png");
            icons[1]  = Image.FromFile(@"imgProject\Applications\playPause.png");
            icons[2]  = Image.FromFile(@"imgProject\Applications\forw.png");
            icons[3]  = Image.FromFile(@"imgProject\Applications\trycatchNb.png");
            icons[4]  = Image.FromFile(@"imgProject\Applications\ifelseNb.png");
            icons[5]  = Image.FromFile(@"imgProject\Applications\foriNb.png");
            icons[8]  = Image.FromFile(@"imgProject\Applications\Live Mail.png");
            icons[7]  = Image.FromFile(@"imgProject\Web Browsers\chgoogle.png");
            icons[6]  = Image.FromFile(@"imgProject\Web Browsers\chface.png");
            icons[9]  = Image.FromFile(@"imgProject\Other\Phone.png");
            icons[10] = Image.FromFile(@"imgProject\Other\Phoner.png");
            icons[11] = Image.FromFile(@"imgProject\Other\Reject.png");

            this.initializeCustomItem();

            // Reading the AutoHotKey scripts

            scrpthndl = new ScriptHandler("scripts.xml");

            this.Opacity = 0.2f;
            Timer t = new Timer();

            // Setting the display properties for the Form

            this.FormBorderStyle = FormBorderStyle.None;
            this.BackColor       = Color.CadetBlue;
            this.Visible         = false;
            this.WindowState     = FormWindowState.Minimized;
            this.Region          = new Region(emptyRect);

            // Setting the timer

            t.Interval = Process.clock;
            t.Tick    += new EventHandler(t_Tick);
            t.Start();
        }
示例#4
0
        public Process()
        {
            // Icons Used

            icons[0] = Image.FromFile(@"imgProject\Applications\backw.png");
            icons[1] = Image.FromFile(@"imgProject\Applications\playPause.png");
            icons[2] = Image.FromFile(@"imgProject\Applications\forw.png");
            icons[3] = Image.FromFile(@"imgProject\Applications\trycatchNb.png");
            icons[4] = Image.FromFile(@"imgProject\Applications\ifelseNb.png");
            icons[5] = Image.FromFile(@"imgProject\Applications\foriNb.png");
            icons[8] = Image.FromFile(@"imgProject\Applications\Live Mail.png");
            icons[7] = Image.FromFile(@"imgProject\Web Browsers\chgoogle.png");
            icons[6] = Image.FromFile(@"imgProject\Web Browsers\chface.png");
            icons[9] = Image.FromFile(@"imgProject\Other\Phone.png");
            icons[10] = Image.FromFile(@"imgProject\Other\Phoner.png");
            icons[11] = Image.FromFile(@"imgProject\Other\Reject.png");

            this.initializeCustomItem();

            // Reading the AutoHotKey scripts

            scrpthndl = new ScriptHandler("scripts.xml");

            this.Opacity = 0.2f;
            Timer t = new Timer();

            // Setting the display properties for the Form

            this.FormBorderStyle = FormBorderStyle.None;
            this.BackColor = Color.CadetBlue;
            this.Visible = false;
            this.WindowState = FormWindowState.Minimized;
            this.Region = new Region(emptyRect);

            // Setting the timer

            t.Interval = Process.clock;
            t.Tick += new EventHandler(t_Tick);
            t.Start();
        }