private void ExecuteEdit(object parameter) { int index = ProcessTypes.IndexOf(parameter as ProcessType); if (index > -1 && index < ProcessTypes.Count) { ProcessType = new ProcessType(); ProcessType = ProcessTypes[index]; } }
private void Execute(object parameter) { int index = ProcessTypes.IndexOf(parameter as ProcessType); if (index > -1 && index < ProcessTypes.Count) { FAMA.AP.DataLayer.DbProcessType au = new FAMA.AP.DataLayer.DbProcessType(); au.DeleteData(ProcessTypes[index]); ProcessTypes.RemoveAt(index); } }