public int GetItemId() { string[] text = this.comboBoxEquipment.Text.Split(':'); return text.Length <= 1 ? 0 : Convert.ToInt32(text[0]); }