Ejemplo n.º 1
0
        public WindowsProxy(RootForm r) // Form
        {
            root        = r;
            winControls = Config.getConfig("control_types_windows");

            // loading the service_code dictionary
            Dictionary <string, object> serviceCodesTemp = Config.getConfig("service_code");

            hash = new ConcurrentDictionary <string, Control>();

            if (serviceCodesTemp != null)
            {
                serviceCodes    = serviceCodesTemp.ToDictionary(pair => pair.Key, pair => (int)pair.Value);
                serviceCodesRev = serviceCodes.ToDictionary(pair => pair.Value, pair => pair.Key);
            }

            type = GetType();

            // timer to avoid sending mouse click multiple times
            timer = new Timer
            {
                Interval = 50,
                Enabled  = false,
            };
            timer.Tick += Timer_Tick;
        }
Ejemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            RootForm form = new RootForm();

            Application.Run(form);
        }
Ejemplo n.º 3
0
        public RemoteProcessUI(RootForm controller)
        {
            this.controller = controller;

            XmlDocument configDoc = new XmlDocument();

            configDoc.Load("uiconfig.xml");

            buildDictionaryFromConfig(configDoc.SelectSingleNode(XMLTags.ROOTNODE_OF_XML));
        }
Ejemplo n.º 4
0
        static void Main()
        {
            /*String dict_name = "roles";
             * Dictionary<string, object> roles = plistParser.getdict(dict_name);
             * if (roles != null)
             * {
             *  foreach (KeyValuePair<string, object> kvp in roles)
             *  {
             *      Console.WriteLine("~~~~~~~~~~~~~~~~~~~~~~~~");
             *      Console.WriteLine("Key = {0}, Value = {1}", kvp.Key, kvp.Value);
             *
             *  }
             * }*/

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            RootForm form = new RootForm();

            Application.Run(form);
        }
Ejemplo n.º 5
0
 public ListProcessUI(RootForm controller)
 {
     this.controller = controller;
     processes       = new List <RemoteProcessDetails>();
 }