示例#1
0
        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();
        }
示例#2
0
        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
            {
            }
        }