public void RemoveSelectedApply() { if (LstApply.Count() >= 1) { LstApply.RemoveAt(SelIndex); if (SelIndex > (LstApply.Count() - 1)) { SelIndex = (SelIndex - 1); } else { SelIndex = (LstApply.Count() - 1); } FirePropertyChanged("DocBlank"); FirePropertyChanged("TextIsEnabled"); MTParser.WritePatch(_objPatch); } }