private void EquipmentParameterDetailButton_Click(object sender, EventArgs e) { EquipmentParameterDetailForm equipmentParameterForm = new EquipmentParameterDetailForm(DataCenter.Instance().EquipmentParameters[mEquipmentParameterID]); equipmentParameterForm.ShowDialog(); }
private void ViewButton_Click(object sender, EventArgs e) { FileDescription description = (FileDescription)EquipmentParameterList.SelectedItem; Dictionary<string, EquipmentParameter> equipmentParameters = DataCenter.Instance().EquipmentParameters[description.ID]; EquipmentParameterDetailForm equipmentParameterDetailForm = new EquipmentParameterDetailForm(equipmentParameters); equipmentParameterDetailForm.Text = "Equipment Parameter - " + description.Title; equipmentParameterDetailForm.ShowDialog(); }
private void EquipmentDetailToolStripMenuItem_Click(object sender, EventArgs e) { long equipmentID = ((EquipmentModel)WorkspaceTreeView.SelectedNode.Tag).ID; EquipmentParameterDetailForm equipmentParameterForm = new EquipmentParameterDetailForm(DataCenter.Instance().EquipmentParameters[equipmentID]); equipmentParameterForm.ShowDialog(); }
void EquipmentParameterManagementForm_onUploadFileSuccessfully(HTTPAgent.FileType type, WatsEMIAnalyzer.Bindings.FileDescription description, byte[] parseData) { DataCenter.Instance().EquipmentParameters[description.ID] = Utility.Deserailize<Dictionary<string, EquipmentParameter>>(parseData); DataCenter.Instance().EquipmentParameterDescriptions[description.ID] = description; EquipmentParameterList.Items.Add(description); ViewButton.Enabled = RemoveButton.Enabled = (EquipmentParameterList.SelectedItems.Count > 0); EquipmentParameterDetailForm detailForm = new EquipmentParameterDetailForm(DataCenter.Instance().EquipmentParameters[description.ID]); detailForm.ShowDialog(); }