private bool IsExist(CharacterEvent chev) { for (int i = 0; i < listBox1.Items.Count;i++ ) { if (chev.CompareTo((CharacterEvent)listBox1.Items[i])) { return true; } } return false; }
private bool IsExist(CharacterEvent chev) { for (int i = 0; i < listBox1.Items.Count;i++ ) { if (chev.CompareTo((CharacterEvent)listBox1.Items[i])) { return true; } } return false; }