Esempio n. 1
0
        public void OpenListform(object s, RoutedEventArgs e) // open New form to add new List
        {
            CreateListForm win2 = new CreateListForm();

            win2.ShowDialog();
            listDataGrid.Items.Refresh();
            itemsDataGrid.Items.Refresh();
            GetList();
        }
Esempio n. 2
0
        public void SelectListToEdit(object s, RoutedEventArgs e)
        {
            var ListData = (s as FrameworkElement).DataContext as Datalist;

            CreateListForm winlist = new CreateListForm();

            winlist._ListId          = ListData.DatalistId;
            winlist._ListName        = ListData.Name;
            winlist._ListDescription = ListData.Description;

            winlist.ShowDialog();
        }