<UserControl x:Class="Serein.Workbench.Views.MainMenuBarView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Serein.Workbench.Views"
             xmlns:vm="clr-namespace:Serein.Workbench.ViewModels"
             mc:Ignorable="d" 
             d:DesignHeight="70" d:DesignWidth="350"
             d:DataContext="{d:DesignInstance vm:MainMenuBarViewModel}"
             >
    <Grid >
        <Menu DockPanel.Dock="Top" Grid.Row="0" Grid.ColumnSpan="5" Height="20">
            <MenuItem Header="项目">
                <MenuItem Header="保存项目" Command="{Binding SaveProjectCommand}"></MenuItem>
                <MenuItem Header="加载本地项目"  Command="{Binding LoadLocalProjectCommand}" ></MenuItem>
                <!--<MenuItem Header="加载远程项目"></MenuItem>-->
            </MenuItem>

            <MenuItem Header="画布">
                <MenuItem Header="增加画布" Command="{Binding CreateFlowCanvasCommand}"></MenuItem>
                <MenuItem Header="删除当前画布" Command="{Binding RemoteFlowCanvasCommand}"></MenuItem>
            </MenuItem>

            <MenuItem Header="运行">
                <MenuItem Header="运行（仅当前画布）" Command="{Binding StartCurrentCanvasFlowCommand}"></MenuItem>
                <!--<MenuItem Header="运行（从选定节点）" ></MenuItem>-->
                <MenuItem Header="运行（全部画布）" Command="{Binding StartFlowCommand}"></MenuItem>
                <!--<MenuItem Header="结束流程" ></MenuItem>-->
            </MenuItem>
            
            <MenuItem Header="视图">
                <MenuItem Header="输出窗口" Command="{Binding OpenEnvOutWindowCommand}"></MenuItem>
                <!--<MenuItem Header="定位节点" ></MenuItem>-->
            </MenuItem>
            <MenuItem Header="拓展">
                <!--<MenuItem Header="动态编译" ></MenuItem>-->
                <!--<MenuItem Header="流程图转C#代码" Command="{Binding OpenRemoteServerCommand}"></MenuItem>-->
                <MenuItem Header="流程图转C#代码" Command="{Binding ConvertCodeCommand}"></MenuItem>
            </MenuItem>
        </Menu>

    </Grid>
</UserControl>
