public void ExecuteRemoveSalaryTypeItem(object sender) { TypeSalary _ts = sender as TypeSalary; if (_ts != null) { SalaryTypeItems.Remove(_ts); } }
/// <summary> /// Сравнивание объектов по интексу(Метод переопределен) /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(object obj) { if (obj == null) { return(false); } if (this.GetType() != obj.GetType()) { return(false); } TypeSalary item = obj as TypeSalary; return(this.Index.Equals(item.Index)); }