private void btnXtalCapBankHelp_Click(object sender, EventArgs e) { if ((this._helpWindow == null) || this._helpWindow.IsDisposed) { this._helpWindow = new HelpWindow(); this.components.Add(this._helpWindow); this._helpWindow.setText((string) this._appResources.GetObject("CrystalCapHelp")); this._helpWindow.setTitle("Crystal Information"); this._helpWindow.setImage((Bitmap) this._appResources.GetObject("crystalCapBankHelp")); this._helpWindow.Size = new Size(440, 430); this._helpWindow.Location = new Point((base.Location.X + (base.Width / 2)) - (this._helpWindow.Width / 2), (base.Location.Y + (base.Height / 2)) - (this._helpWindow.Height / 2)); this._helpWindow.Owner = this; this._helpWindow.Show(); } else { this._helpWindow.BringToFront(); } }
private void rxo_restartRxHelpClicked(object sender, EventArgs e) { if ((this._helpWindow == null) || this._helpWindow.IsDisposed) { this._helpWindow = new HelpWindow(); this.components.Add(this._helpWindow); this._helpWindow.setText((string) this._appResources.GetObject("RestartRxHelpRxOption")); this._helpWindow.setTitle("(Re)Start RX Information"); this._helpWindow.Location = new Point((base.Location.X + (base.Width / 2)) - (this._helpWindow.Width / 2), (base.Location.Y + (base.Height / 2)) - (this._helpWindow.Height / 2)); this._helpWindow.Owner = this; this._helpWindow.Show(); } else { this._helpWindow.BringToFront(); } }
private void btnLoadFirmwareHelp_Click(object sender, EventArgs e) { if ((this._helpWindow == null) || this._helpWindow.IsDisposed) { this._helpWindow = new HelpWindow(); this.components.Add(this._helpWindow); this._helpWindow.setText((string) this._appResources.GetObject("FwLoadHelp")); this._helpWindow.setTitle("Firmware Load Information"); this._helpWindow.Location = new Point((base.Location.X + (base.Width / 2)) - (this._helpWindow.Width / 2), (base.Location.Y + (base.Height / 2)) - (this._helpWindow.Height / 2)); this._helpWindow.Owner = this; this._helpWindow.Show(); } else { this._helpWindow.BringToFront(); } }
private void btnXOHelp_Click(object sender, EventArgs e) { if ((this._XOHelpWindow == null) || this._XOHelpWindow.IsDisposed) { this._XOHelpWindow = new HelpWindow(); this.components.Add(this._XOHelpWindow); this._XOHelpWindow.setText((string) this._appResources.GetObject("App_Si4012CP_XOHelp")); this._XOHelpWindow.Location = new Point((base.Location.X + (base.Width / 2)) - (this._XOHelpWindow.Width / 2), (base.Location.Y + (base.Height / 2)) - (this._XOHelpWindow.Height / 2)); this._XOHelpWindow.Owner = this; this._XOHelpWindow.Show(); } else { this._XOHelpWindow.BringToFront(); } }
private void dumpEZConfigCommand(byte[] ezConfigurationDebug) { StringBuilder builder = new StringBuilder(); for (int i = 0; i < ezConfigurationDebug.Length; i++) { builder.AppendLine(this._ezr2Config.EzRadio2ConfigNameSet[i] + " - 0x" + ezConfigurationDebug[i].ToString("X2")); } if ((this._helpWindow == null) || this._helpWindow.IsDisposed) { this._helpWindow = new HelpWindow(); this.components.Add(this._helpWindow); this._helpWindow.setText(builder.ToString()); this._helpWindow.setTitle("Command Dump"); this._helpWindow.Size = new Size(300, base.Size.Height); this._helpWindow.Location = new Point((base.Location.X + base.Width) + 10, base.Location.Y + 80); this._helpWindow.Owner = this; this._helpWindow.Show(); } else { this._helpWindow.BringToFront(); this._helpWindow.setText(builder.ToString()); this._helpWindow.setTitle("Command Dump"); this._helpWindow.Size = new Size(300, base.Size.Height); this._helpWindow.Location = new Point((base.Location.X + base.Width) + 10, base.Location.Y + 80); } }
private void ercPerTest_hwHeplRequested(object sender, EventArgs e) { if ((this._hwConnectionHelpWindow == null) || this._hwConnectionHelpWindow.IsDisposed) { this._hwConnectionHelpWindow = new HelpWindow(); this.components.Add(this._hwConnectionHelpWindow); this._hwConnectionHelpWindow.setText((string) this._appResources.GetObject("App_Si4460CP_FwSetupDescription")); this._helpWindow.Location = new Point((base.Location.X + (base.Width / 2)) - (this._helpWindow.Width / 2), (base.Location.Y + (base.Height / 2)) - (this._helpWindow.Height / 2)); this._helpWindow.Owner = this; this._hwConnectionHelpWindow.Show(); } else { this._helpWindow.BringToFront(); } }
private void btnSynchWordHelp_Click(object sender, EventArgs e) { if ((this._helpWindow == null) || this._helpWindow.IsDisposed) { this._helpWindow = new HelpWindow(); this.components.Add(this._helpWindow); this._helpWindow.setText((string) this._appResources.GetObject("App_Si4460CP_SyncWord_FRED")); this._helpWindow.setTitle("Synchron word Information"); this._helpWindow.Location = new Point((base.Location.X + (base.Width / 2)) - (this._helpWindow.Width / 2), (base.Location.Y + (base.Height / 2)) - (this._helpWindow.Height / 2)); this._helpWindow.Owner = this; this._helpWindow.Show(); } else { this._helpWindow.BringToFront(); } }
private void showHelpWindow(string contentResourceName, string titleText, string imageResourceName, Size customSize) { if ((contentResourceName != null) && (titleText != null)) { if ((this._helpWindow == null) || this._helpWindow.IsDisposed) { this._helpWindow = new HelpWindow(); this.components.Add(this._helpWindow); this._helpWindow.setText((string) this._appResources.GetObject(contentResourceName)); this._helpWindow.setTitle(titleText); if ((imageResourceName != null) && (imageResourceName != string.Empty)) { this._helpWindow.setImage((Bitmap) this._appResources.GetObject(imageResourceName)); } if (!customSize.IsEmpty) { this._helpWindow.Size = customSize; } this._helpWindow.Location = new Point((base.Location.X + (base.Width / 2)) - (this._helpWindow.Width / 2), (base.Location.Y + (base.Height / 2)) - (this._helpWindow.Height / 2)); this._helpWindow.Owner = this; this._helpWindow.Show(); } else { this._helpWindow.setText((string) this._appResources.GetObject(contentResourceName)); this._helpWindow.setTitle(titleText); if ((imageResourceName != null) && (imageResourceName != string.Empty)) { this._helpWindow.setImage((Bitmap) this._appResources.GetObject(imageResourceName)); } if (!customSize.IsEmpty) { this._helpWindow.Size = customSize; } this._helpWindow.BringToFront(); } } }
private void showTextHelpWindow(string content, string titleText, Bitmap image, Size customSize) { if ((content != null) && (titleText != null)) { if ((_helpWindow == null) || _helpWindow.IsDisposed) { _helpWindow = new HelpWindow(); components.Add(_helpWindow); _helpWindow.setText(content); _helpWindow.setTitle(titleText); if (image != null) { _helpWindow.setImage(image); } if (!customSize.IsEmpty) { _helpWindow.Size = customSize; } _helpWindow.Location = new Point((base.Location.X + (base.Width / 2)) - (_helpWindow.Width / 2), (base.Location.Y + (base.Height / 2)) - (_helpWindow.Height / 2)); _helpWindow.Owner = this; _helpWindow.Show(); } else { _helpWindow.setText(content); _helpWindow.setTitle(titleText); if (image != null) { _helpWindow.setImage(image); } if (!customSize.IsEmpty) { _helpWindow.Size = customSize; } _helpWindow.BringToFront(); } } }
private void btnModeHelp_Click(object sender, EventArgs e) { if ((this._helpWindow == null) || this._helpWindow.IsDisposed) { this._helpWindow = new HelpWindow(); this.components.Add(this._helpWindow); this._helpWindow.setText((string) this._appResources.GetObject("ModeHelp")); this._helpWindow.setTitle("Input Mode Information"); this._helpWindow.setImage((Bitmap) this._appResources.GetObject("packetFixLenPayload")); this._helpWindow.Size = new Size(this._helpWindow.Size.Width + 100, this._helpWindow.Size.Height); this._helpWindow.Location = new Point((base.Location.X + (base.Width / 2)) - (this._helpWindow.Width / 2), (base.Location.Y + (base.Height / 2)) - (this._helpWindow.Height / 2)); this._helpWindow.Owner = this; this._helpWindow.Show(); } else { this._helpWindow.BringToFront(); } }