Exemple #1
0
        public KeysController(RemoteRewinderForm form, string[] minusKeys, string[] plusKeys)
        {
            this.form = form;
            if (minusKeys != null && plusKeys != null && minusKeys.Length == 3 && plusKeys.Length == 3)            // Get loaded binds.
            {
                this.minusKeys[0] = minusKeys[0];
                this.plusKeys[0]  = plusKeys[0];

                this.minusKeys[1] = minusKeys[1];
                this.plusKeys[1]  = plusKeys[1];

                this.minusKeys[2] = minusKeys[2];
                this.plusKeys[2]  = plusKeys[2];
            }
            else             // Default binds.
            {
                this.minusKeys[0] = "{LEFT}";
                this.plusKeys[0]  = "{RIGHT}";

                this.minusKeys[1] = "%{LEFT}";
                this.plusKeys[1]  = "%{RIGHT}";

                this.minusKeys[2] = "{LEFT}";
                this.plusKeys[2]  = " ";
            }
        }
 public Communication(KeysController keysController, RemoteRewinderForm form, Label label_StatusDesc, TextBox textBox_Port)
 {
     this.keysController   = keysController;
     this.form             = form;
     this.label_StatusDesc = label_StatusDesc;
     this.textBox_Port     = textBox_Port;
     GetIP();
 }