private void comboBox3_SelectedIndexChanged(object sender, EventArgs e) { if (this.comboBox3.SelectedItem.ToString().Trim() == "Добавить новый шаблон...") { short _Type = Convert.ToInt16(this.comboBox2.SelectedIndex); int _rId = rl[this.comboBox1.SelectedIndex].ResearchId; Editor.FormNewRadiologyItem fnri = new FormNewRadiologyItem(_Type, 2, _rId); fnri.ShowDialog(); if (_Type != -1) { fillZoneList(zl[_Type].ZoneId); } } else { getTemplateBody(); } }
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { if (this.comboBox2.SelectedIndex != -1) { _SelectedZoneIndex = this.comboBox2.SelectedIndex; if (this.comboBox2.SelectedItem.ToString().Trim() == "Добавить новую зону...") { short _Type = Convert.ToInt16(this.comboBox1.SelectedIndex); Editor.FormNewRadiologyItem fnri = new FormNewRadiologyItem(_Type,1,0); fnri.ShowDialog(); fillTemplateList(); } else { int _zone = zl[_SelectedZoneIndex].ZoneId; fillZoneList(_zone); //getTemplateBody(_zone); } } }