private void ToolsFlowChart_Click(object sender, RoutedEventArgs e) { if (FlowChart.Active) { FlowChart.THIS.Display(); FlowChart.THIS.Activate(); if (FlowChart.THIS.WindowState == WindowState.Minimized) { FlowChart.THIS.WindowState = WindowState.Normal; } return; } FlowChart fc = new FlowChart(MainWindow.THIS); fc.Show(); }
private void OpenFlowChart(object sender, EventArgs e) { try { if (FlowChart.Active) { FlowChart.THIS.Display(); FlowChart.THIS.Activate(); if (FlowChart.THIS.WindowState == System.Windows.WindowState.Minimized) { FlowChart.THIS.WindowState = System.Windows.WindowState.Normal; } return; } FlowChart fc = new FlowChart(MainWindow.THIS); fc.Show(); } catch { } }