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