Example #1
0
        private void EditSubBlock_Click(object sender, RoutedEventArgs e)
        {
            Block        b        = ((Block)dataGrid.SelectedItem);
            EditSubBlock subBlock = new EditSubBlock(b);

            subBlock.Show();
            resetGrid();
        }
        private void Edit_Click(object sender, RoutedEventArgs e)
        {
            Block obj = new Block();

            obj.Name     = Input_Name.Text;
            obj.Id       = listSubBlock[CB_SubBlock.SelectedIndex].Id;
            obj.ParentId = listSubBlock[CB_SubBlock.SelectedIndex].ParentId;

            EditSubBlock sb = new EditSubBlock(obj);

            sb.Show();
        }