internal frmUpdatePbFiles(e_configParams type) { this.outputStr = string.Empty; this.selectUpdateElmName = e_configParams.E_CONFIG_UNKNOWN; this.toRunList = new List <string>(); this.filesFullPathList = new List <string>(); this.filesArray = new string[0]; this.InitializeComponent(); this.selectUpdateElmName = type; this.toRunList.Clear(); this.filesFullPathList.Clear(); this.updatePbAvailableFilesListVal.Items.Clear(); this.updatePbToRunFilesListVal.Items.Clear(); switch (type) { case e_configParams.E_PLAYBACK_FILES: this.updatePbFilePathLabel.Text = "Playback File Directory"; return; case e_configParams.E_LOG_DIR: case e_configParams.E_HOST_DIR: break; case e_configParams.E_HOST_APP_NAME: this.updatePbFilePathLabel.Text = "Host App Directory"; return; case e_configParams.E_PATCH_NAME: this.updatePbFilePathLabel.Text = "Patch File Directory"; break; default: return; } }
internal frmUpdatePbFiles(e_configParams type) { this.outputStr = string.Empty; this.selectUpdateElmName = e_configParams.E_CONFIG_UNKNOWN; this.toRunList = new List<string>(); this.filesFullPathList = new List<string>(); this.filesArray = new string[0]; this.InitializeComponent(); this.selectUpdateElmName = type; this.toRunList.Clear(); this.filesFullPathList.Clear(); this.updatePbAvailableFilesListVal.Items.Clear(); this.updatePbToRunFilesListVal.Items.Clear(); switch (type) { case e_configParams.E_PLAYBACK_FILES: this.updatePbFilePathLabel.Text = "Playback File Directory"; return; case e_configParams.E_LOG_DIR: case e_configParams.E_HOST_DIR: break; case e_configParams.E_HOST_APP_NAME: this.updatePbFilePathLabel.Text = "Host App Directory"; return; case e_configParams.E_PATCH_NAME: this.updatePbFilePathLabel.Text = "Patch File Directory"; break; default: return; } }
internal static frmUpdatePbFiles GetChildInstance(e_configParams type, string inStr) { if (m_SChildform == null) { m_SChildform = new frmUpdatePbFiles(type, inStr); } return(m_SChildform); }
internal static frmUpdateTestLogDir GetChildInstance(e_configParams type) { if (m_SChildform == null) { m_SChildform = new frmUpdateTestLogDir(type); } return(m_SChildform); }
internal static frmUpdateTestLogDir GetChildInstance(e_configParams type) { if (m_SChildform == null) { m_SChildform = new frmUpdateTestLogDir(type); } return m_SChildform; }
private void updatePlaybackFileBtn_Click(object sender, EventArgs e) { e_configParams type = e_configParams.E_PLAYBACK_FILES; frmUpdatePbFiles childInstance = frmUpdatePbFiles.GetChildInstance(type, this.playbackFileListTxtBox.Text); if (childInstance.IsDisposed) { childInstance = new frmUpdatePbFiles(type, this.playbackFileListTxtBox.Text); } childInstance.updateParent += new frmUpdatePbFiles.updateParentEventHandler(this.updatePlaybackFileList); childInstance.MdiParent = base.MdiParent; childInstance.ShowDialog(); }
internal frmUpdateTestLogDir(e_configParams type) { this.InitializeComponent(); this.elmType = type; switch (type) { case e_configParams.E_LOG_DIR: this.updateTestLogPathLabel.Text = "Base Log Directory"; return; case e_configParams.E_HOST_DIR: this.updateTestLogPathLabel.Text = "Host/Patch App Directory"; return; } }
internal frmUpdatePbFiles(e_configParams type, string inStr) { this.outputStr = string.Empty; this.selectUpdateElmName = e_configParams.E_CONFIG_UNKNOWN; this.toRunList = new List <string>(); this.filesFullPathList = new List <string>(); this.filesArray = new string[0]; this.InitializeComponent(); this.toRunList.Clear(); this.filesFullPathList.Clear(); this.updatePbAvailableFilesListVal.Items.Clear(); this.updatePbToRunFilesListVal.Items.Clear(); this.selectUpdateElmName = type; switch (type) { case e_configParams.E_PLAYBACK_FILES: this.updatePbFilePathLabel.Text = "Playback File Directory"; break; case e_configParams.E_HOST_APP_NAME: this.updatePbFilePathLabel.Text = "Host App Directory"; break; case e_configParams.E_PATCH_NAME: this.updatePbFilePathLabel.Text = "Patch File Directory"; break; } string[] strArray = inStr.Split(new char[] { ',' }); if (strArray.Length != 0) { this.filesFullPathList.Clear(); foreach (string str in strArray) { this.updateAvalableList(str); } } this.filesArray = this.filesFullPathList.ToArray(); }
internal frmUpdatePbFiles(e_configParams type, string inStr) { this.outputStr = string.Empty; this.selectUpdateElmName = e_configParams.E_CONFIG_UNKNOWN; this.toRunList = new List<string>(); this.filesFullPathList = new List<string>(); this.filesArray = new string[0]; this.InitializeComponent(); this.toRunList.Clear(); this.filesFullPathList.Clear(); this.updatePbAvailableFilesListVal.Items.Clear(); this.updatePbToRunFilesListVal.Items.Clear(); this.selectUpdateElmName = type; switch (type) { case e_configParams.E_PLAYBACK_FILES: this.updatePbFilePathLabel.Text = "Playback File Directory"; break; case e_configParams.E_HOST_APP_NAME: this.updatePbFilePathLabel.Text = "Host App Directory"; break; case e_configParams.E_PATCH_NAME: this.updatePbFilePathLabel.Text = "Patch File Directory"; break; } string[] strArray = inStr.Split(new char[] { ',' }); if (strArray.Length != 0) { this.filesFullPathList.Clear(); foreach (string str in strArray) { this.updateAvalableList(str); } } this.filesArray = this.filesFullPathList.ToArray(); }
private void configDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { e_configParams @params; int rowIndex = e.RowIndex; string source = this.configDataGridView.Rows[rowIndex].Cells[0].Value.ToString().Trim(); string inStr = this.configDataGridView.Rows[rowIndex].Cells[1].Value.ToString().Trim(); switch (source) { case "PLAYBACK_FILES": case "HOST_APP": case "PATCH_FILE": @params = e_configParams.E_CONFIG_UNKNOWN; if (!(source == "HOST_APP")) { if (source == "PATCH_FILE") { @params = e_configParams.E_PATCH_NAME; } else { @params = e_configParams.E_PLAYBACK_FILES; } break; } @params = e_configParams.E_HOST_APP_NAME; break; case "BASE_TEST_LOG": case "HOST_APP_DIR": { e_configParams type = e_configParams.E_CONFIG_UNKNOWN; if (!(source == "HOST_APP_DIR")) { type = e_configParams.E_LOG_DIR; } else { type = e_configParams.E_HOST_DIR; } frmUpdateTestLogDir dir = frmUpdateTestLogDir.GetChildInstance(type); if (dir.IsDisposed) { dir = new frmUpdateTestLogDir(type); } this.currentSelectCellIdx = 1; this.currentSelectRowIdx = rowIndex; dir.updateParent += new frmUpdateTestLogDir.updateParentEventHandler(this.updateConfigList); dir.MdiParent = base.MdiParent; dir.ShowDialog(); return; } case "PLAY_TIME_LISTS": { frmUpdatePlaybackTime time = frmUpdatePlaybackTime.GetChildInstance(); if (time.IsDisposed) { time = new frmUpdatePlaybackTime(); } this.currentSelectCellIdx = 1; this.currentSelectRowIdx = rowIndex; time.updateParent += new frmUpdatePlaybackTime.updateParentEventHandler(this.updateConfigList); time.MdiParent = base.MdiParent; time.ShowDialog(); return; } case "SIGNAL_SOURCE": case "ATTEN_SOURCE": case "POWER_SOURCE": { frmComboBoxSelection selection = frmComboBoxSelection.GetChildInstance(source); if (selection.IsDisposed) { selection = new frmComboBoxSelection(source); } this.currentSelectCellIdx = 1; this.currentSelectRowIdx = rowIndex; selection.updateParent += new frmComboBoxSelection.updateParentEventHandler(this.updateConfigList); selection.MdiParent = base.MdiParent; selection.ShowDialog(); return; } default: if (this.configDataGridView.Rows[rowIndex].HeaderCell.Value.ToString() == "RX_SETUP") { frmReceiverConfig config = frmReceiverConfig.GetChildInstance(); if (config.IsDisposed) { config = new frmReceiverConfig(); } config.MdiParent = base.MdiParent; config.updateParent += new frmReceiverConfig.updateParentEventHandler(this.updateConfigList); config.ShowDialog(); } return; } frmUpdatePbFiles childInstance = frmUpdatePbFiles.GetChildInstance(@params, inStr); if (childInstance.IsDisposed) { childInstance = new frmUpdatePbFiles(@params, inStr); } this.currentSelectCellIdx = 1; this.currentSelectRowIdx = rowIndex; childInstance.updateParent += new frmUpdatePbFiles.updateParentEventHandler(this.updateConfigList); childInstance.MdiParent = base.MdiParent; childInstance.ShowDialog(); }
internal static frmUpdatePbFiles GetChildInstance(e_configParams type, string inStr) { if (m_SChildform == null) { m_SChildform = new frmUpdatePbFiles(type, inStr); } return m_SChildform; }