private void ViewButton_Click(object sender, EventArgs e) { FileDescription description = (FileDescription)ChannelSettingList.SelectedItem; List<ChannelSetting> channelSettings = DataCenter.Instance().ChannelSettings[description.ID]; ChannelSettingDetailForm channelSettingForm = new ChannelSettingDetailForm(channelSettings); channelSettingForm.Text = "Channel Setting - " + description.Title; channelSettingForm.ShowDialog(); }
void ChannelSettingManagementForm_onUploadFileSuccessfully(HTTPAgent.FileType type, WatsEMIAnalyzer.Bindings.FileDescription description, byte[] parseData) { DataCenter.Instance().ChannelSettings[description.ID] = Utility.Deserailize<List<ChannelSetting>>(parseData); DataCenter.Instance().ChannelSettingDescriptions[description.ID] = description; ChannelSettingList.Items.Add(description); ViewButton.Enabled = RemoveButton.Enabled = (ChannelSettingList.SelectedItems.Count > 0); ChannelSettingDetailForm detailForm = new ChannelSettingDetailForm(DataCenter.Instance().ChannelSettings[description.ID]); detailForm.ShowDialog(); }
private void ChannelSettingDetailButton_Click(object sender, EventArgs e) { ChannelSettingDetailForm channelSettingDetailForm = new ChannelSettingDetailForm(mChannelSettings); channelSettingDetailForm.ShowDialog(); }
private void ChannelSettingDetailButton_Click(object sender, EventArgs e) { ChannelSettingDetailForm channelSettingForm = new ChannelSettingDetailForm(DataCenter.Instance().ChannelSettings[mChannelSettingID]); channelSettingForm.ShowDialog(); }
private void ChannelDetailToolStripMenuItem_Click(object sender, EventArgs e) { long channelID = ((ChannelModel)WorkspaceTreeView.SelectedNode.Tag).ID; ChannelSettingDetailForm channelSettingForm = new ChannelSettingDetailForm(DataCenter.Instance().ChannelSettings[channelID]); channelSettingForm.ShowDialog(); }