Exemplo n.º 1
0
        void editCMD(object param)
        {
            ((App)App.Current).all_data.stat_it(selectedCard.Id, ((App)App.Current).the_person.Id, "editing card start");
            Model.Card        tmp     = new Model.Card(selectedCard);
            AddEdit_ViewModel addedvm = new AddEdit_ViewModel(selectedCard);

            addedvm.ShowDialog();
            if (!addedvm.worked)
            {
                selectedCard.copy(tmp);
            }
            try
            {
                System.IO.Directory.Delete(addedvm.catalog, true);
            }
            catch { }
        }
Exemplo n.º 2
0
        void execCMD(object param)
        {
            Model.Card new_card = null;
            ((App)App.Current).all_data.stat_it(0, ((App)App.Current).the_person.Id, "button new_card");
            AddEdit_ViewModel addedvm = new AddEdit_ViewModel(new_card);

            addedvm.ShowDialog();
            if (addedvm.worked)
            {
                cards.Add(addedvm.that_card);
            }
            try
            {
                System.IO.Directory.Delete(addedvm.catalog, true);
            }
            catch { }
        }