Пример #1
0
        public void Execute(object parameter)
        {
            var          childWindow = new EditKanBanColumnChildWindow();
            KanBanColumn newColumn   = new KanBanColumn()
            {
                Header = "", Id = ""
            };

            childWindow.DataContext = newColumn;
            childWindow.Closed     += EditKanBanColumnChildWindow_Closed;
            childWindow.Show();
        }
Пример #2
0
        internal void MenuItemEditColumn_Click(object sender, RoutedEventArgs e)
        {
            var          childWindow = new EditKanBanColumnChildWindow();
            KanBanColumn dummyColumn = new KanBanColumn()
            {
                Header = ColumnDefinition.Header, Id = ColumnDefinition.Id
            };

            childWindow.DataContext = dummyColumn;
            childWindow.Closed     += EditKanBanColumnChildWindow_Closed;
            childWindow.Show();

            ((ContextMenu)((MenuItem)sender).Tag).IsOpen = false;
        }