Пример #1
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            string tiAppSettingsFile = "titanium_settings.ini";

            if (File.Exists(tiAppSettingsFile))
            {
                StreamReader sr = new StreamReader(tiAppSettingsFile);
                string       line, key, value;
                int          p;
                while (true)
                {
                    line = sr.ReadLine();
                    if (line == null)
                    {
                        break;
                    }

                    line = line.Trim();
                    if (line.Length > 0 && !line.StartsWith("#") && !line.StartsWith(";"))
                    {
                        p = line.IndexOf('=');
                        if (p != -1)
                        {
                            key           = line.Substring(0, p).Trim();
                            value         = line.Substring(p + 1).Trim();
                            settings[key] = value;
                        }
                    }
                }
            }

            xhrProxy = new XHRProxy(9999);
        }
		// Constructor
		public MainPage() {
			InitializeComponent();

			string tiAppSettingsFile = "titanium_settings.ini";
			if (File.Exists(tiAppSettingsFile)) {
				StreamReader sr = new StreamReader(tiAppSettingsFile);
				string line, key, value;
				int p;
				while (true) {
					line = sr.ReadLine();
					if (line == null) {
						break;
					}

					line = line.Trim();
					if (line.Length > 0 && !line.StartsWith("#") && !line.StartsWith(";")) {
						p = line.IndexOf('=');
						if (p != -1) {
							key = line.Substring(0, p).Trim();
							value = line.Substring(p + 1).Trim();
							settings[key] = value;
						}
					}
				}
			}

			xhrProxy = new XHRProxy(9999);
		}
Пример #3
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            initTiSettings();

            Logger.init(settings);

            requestHandlers["file"] = new FileRequestHandler();
            requestHandlers["log"]  = new LogRequestHandler();
            requestHandlers["reflection"] = new ReflectionRequestHandler(app, browser, root);

            xhrProxy = new XHRProxy(9999);
        }
Пример #4
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            initTiSettings();

            Logger.init(settings);

            requestHandlers["download"]   = new DownloadRequestHandler();
            requestHandlers["file"]       = new FileRequestHandler();
            requestHandlers["log"]        = new LogRequestHandler();
            requestHandlers["reflection"] = new ReflectionRequestHandler(app, browser, root);

            xhrProxy = new XHRProxy(9999);
        }