示例#1
0
        /*
         * Constructor
         */

        public ApplianceGrid()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

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

            Globals.Init(VERSION_STRING, ".\\debugdata.xml", this, this, this, null, _measureCtl, "echodevice.xml");
            this.Text = Globals.GetVersionString();

            _uiEventQueue = new Queue();
            _mutex        = new Mutex();

            _portCounter = DEBUG_PORT_START;

            _server = new PUCServer();

            _optionsDialog = new DesktopOptionsDialog();

            SetupDataTable();
            SetupRecentList();
        }
示例#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.");
        }
示例#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.");
        }