Esempio n. 1
0
        /*
         * Constructor
         */

        public DebugServerFrame(String filename, int port)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            _filename = filename;
            _port     = port;

            _appliance       = null;
            _debugConnection = new DebugConnection(this);
            _running         = false;
            _connections     = new ArrayList();

            this.logPanel.Size = this.ClientSize;
            this.logBox.Size   = new System.Drawing.Size(this.logPanel.Size.Width,
                                                         this.logPanel.Size.Height -
                                                         this.logBox.Location.Y);

            _undefineDialog = new UndefineDlg(this);

            SetupRulePhases();

            _widgetRegistry = WidgetRegistryParser.Parse(Globals.GetWidgetRegistryFileName());

            SetupSmartCIOManager();

            AddLogLine("Parsing specification from " + filename + "...");

            OpenSpec(filename);

            AddLogLine("Done.");
        }
Esempio n. 2
0
        public PUCFrame()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            Debug.Assert(DEFAULT_FRAME == null, "PUCFrame should only be instantiated once.");
            PUCFrame.DEFAULT_FRAME = this;

            _measureCtl = new MeasureStringControl();
            this.Controls.Add(_measureCtl);
            _measureCtl.Location = new Point(0, 0);
            _measureCtl.Size     = new Size(0, 0);
            _measureCtl.Enabled  = false;

            Globals.Init(VERSION_STRING, "\\Storage\\PUC\\pucdata.xml",
                         this, this, this, this, _measureCtl,
                         "\\Storage\\PUC\\smartphone.xml");

            _uiEventQueue = new Queue();

            _appliances = new ArrayList();
            _servers    = new ArrayList();

            this.Text = Globals.GetVersionString();
            AddLogText(Globals.GetVersionString() + " Starting...");

            this.logPanel.Size = this.ClientSize;
            this.logBox.Size   = new System.Drawing.Size(this.logPanel.Size.Width,
                                                         this.logPanel.Size.Height -
                                                         this.logBox.Location.Y);

            _connectDialog = new PhoneConnectDlg(this);
            _optionsDialog = new PhoneOptionsDlg();

            _leftMenuStack = new Stack();

            LeftMenuStackItem item =
                new LeftMenuStackItem("Open", new EventHandler(this.openItem_Click));

            this.PushLeftMenuStack(item);

            _mutex = new Mutex();

            SetupRecentList();

            SetupRulePhases();

            _registry = WidgetRegistryParser.Parse(Globals.GetWidgetRegistryFileName());

            SetupSmartCIOManager();

            AddLogLine("Done.");
        }
Esempio n. 3
0
        public PUCFrame()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            Debug.Assert(DEFAULT_FRAME == null, "PUCFrame should only be instantiated once.");
            PUCFrame.DEFAULT_FRAME = this;

            _measureCtl = new MeasureStringControl();
            this.Controls.Add(_measureCtl);
            _measureCtl.Location = new Point(0, 0);
            _measureCtl.Size     = new Size(0, 0);

            Globals.Init(VERSION_STRING, ".\\pucdata.xml", this, this, this, this, _measureCtl, "pocketpc.xml");

            _uiEventQueue = new Queue();

            _appliances = new ArrayList();
            _servers    = new ArrayList();

            this.Text = Globals.GetVersionString();
            AddLogText(Globals.GetVersionString() + " Starting...");

            this.logPanel.Size = this.ClientSize;
            this.logBox.Size   = new System.Drawing.Size(this.logPanel.Size.Width,
                                                         this.logPanel.Size.Height -
                                                         this.logBox.Location.Y);

            _connectDialog = new DesktopConnectDlg(this);
            _optionsDialog = new DesktopOptionsDialog();

            _mutex = new Mutex();

            this.Closing += new CancelEventHandler(PUCFrame_Closing);

            SetupRecentList();

            SetupRulePhases();

            _registry = WidgetRegistryParser.Parse(Globals.GetWidgetRegistryFileName());

            SetupSmartCIOManager();

            AddLogLine("Done.");
        }