Exemplo n.º 1
0
        private void ExecuteEdit(object parameter)
        {
            int index = ProcessTypes.IndexOf(parameter as ProcessType);

            if (index > -1 && index < ProcessTypes.Count)
            {
                ProcessType = new ProcessType();
                ProcessType = ProcessTypes[index];
            }
        }
Exemplo n.º 2
0
        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);
            }
        }