// 点击 添加 按钮后的响应事件
 private void addButtonClicked(object sender, RoutedEventArgs args)
 {
     StackPanel panel = _column.Header.Parent as StackPanel;
     StaticDiagram diagram = panel.Parent as StaticDiagram;
     int index = panel.Children.IndexOf(_column);
     ChooseColumnWindow window = new ChooseColumnWindow(diagram, index, this);
     window.Show();
 }
Exemplo n.º 2
0
 private void addColumnToTheRight(object sender, RoutedEventArgs args)
 {
     StackPanel panel = _header.Parent as StackPanel;
     StaticDiagram diagram = panel.Parent as StaticDiagram;
     int index = panel.Children.IndexOf(_header);
     ChooseColumnWindow window = new ChooseColumnWindow(diagram, index, this);
     window.Show();
 }