private void AddButton_Click(object sender, EventArgs e) { DescriptorForm df = new DescriptorForm(); df.Show(); ShowTermins(searchBox.Text); }
private void ChangeButton_Click_1(object sender, EventArgs e) { DescriptorForm df = new DescriptorForm(); Termin t = new Termin() { Descriptor = CheckedItem.Descriptor, StartLine = CheckedItem.DescriptorLocation[0], StartChar = CheckedItem.DescriptorLocation[1], EndLine = CheckedItem.DescriptorLocation[2], EndChar = CheckedItem.DescriptorLocation[3] }; df.Termin = t; Definition d = new Definition() { ID = CheckedItem.definitionId, Content = CheckedItem.Definition, StartLine = CheckedItem.DefinitionLocation[0], StartChar = CheckedItem.DefinitionLocation[1], EndLine = CheckedItem.DefinitionLocation[2], EndChar = CheckedItem.DefinitionLocation[3] }; df.id = CheckedItem.definitionId; df.Definition = d; df.Show(); answersPanel.Controls.Clear(); ShowTermins(searchBox.Text); }