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."); }
public DesktopConnectDlg(IPUCFrame frame) { // // Required for Windows Form Designer support // InitializeComponent(); _frame = frame; SetupRecentList(); }
public PhoneConnectDlg(IPUCFrame frame) { // // Required for Windows Form Designer support // InitializeComponent(); _frame = frame; SetupRecentList(); addressBox.Text = recentBox.Text; }
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."); }
public ConnectServerDlg(IPUCFrame frame) { // // Required for Windows Form Designer support // InitializeComponent(); _frame = frame; _inputPanel = new InputPanel(); int count = Globals.GetDataStore().GetIntData(Globals.RECENT_COUNT_ATTR); if (count > 0) { addressBox.Text = Globals.GetDataStore().GetStringData(Globals.RECENT_SERVER_PRFX + "0"); } }
public static void AddFrameMapping(Appliance a, IPUCFrame f) { _applianceFrameMap[a] = f; }