Routine Doppelklick
This commit is contained in:
@@ -220,7 +220,7 @@
|
||||
Margin="6"
|
||||
Background="Transparent"
|
||||
ContextMenuOpening="ListBox_ContextMenuOpening"
|
||||
PreviewMouseDown="Grid_PreviewMouseDown_1">
|
||||
PreviewMouseDown="Grid_PreviewMouseDown_2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="9" />
|
||||
@@ -563,8 +563,9 @@
|
||||
<StackPanel
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
IsHitTestVisible="False"
|
||||
Visibility="{Binding SelectedFolder.AlleFolderItems.Count, Converter={StaticResource CollectionCountToVisibilityConverter}, ConverterParameter=reverse}">
|
||||
<Path Fill="Black" Stretch="Uniform" Height="32"
|
||||
<Path Fill="Black" Stretch="Uniform" Height="32" Margin="6"
|
||||
Data="{StaticResource GeometryFileAdd2}">
|
||||
</Path>
|
||||
<TextBlock>
|
||||
@@ -574,7 +575,8 @@
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="Prompts">
|
||||
<dxe:ListBoxEdit
|
||||
<Grid>
|
||||
<dxe:ListBoxEdit
|
||||
x:Name="listBoxEdit1"
|
||||
Padding="8,16,8,16"
|
||||
HorizontalContentAlignment="Stretch"
|
||||
@@ -610,9 +612,23 @@
|
||||
</ContextMenu>
|
||||
</dxe:ListBoxEdit.ContextMenu>
|
||||
</dxe:ListBoxEdit>
|
||||
<StackPanel
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
IsHitTestVisible="False"
|
||||
Visibility="{Binding SelectedFolder.AlleFolderItems.Count, Converter={StaticResource CollectionCountToVisibilityConverter}, ConverterParameter=reverse}">
|
||||
<Path Fill="Black" Stretch="Uniform" Height="32" Margin="6"
|
||||
Data="{StaticResource GeometryFileAdd2}">
|
||||
</Path>
|
||||
<TextBlock>
|
||||
Hier sind noch keine Prompts angelegt.
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="Routinen">
|
||||
<dxe:ListBoxEdit
|
||||
<Grid>
|
||||
<dxe:ListBoxEdit
|
||||
x:Name="listBoxEdit2"
|
||||
Padding="8,16,8,16"
|
||||
HorizontalContentAlignment="Stretch"
|
||||
@@ -641,7 +657,20 @@
|
||||
</MenuItem>
|
||||
</ContextMenu>
|
||||
</dxe:ListBoxEdit.ContextMenu>
|
||||
</dxe:ListBoxEdit>
|
||||
</dxe:ListBoxEdit>
|
||||
<StackPanel
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
IsHitTestVisible="False"
|
||||
Visibility="{Binding SelectedFolder.AlleFolderItems.Count, Converter={StaticResource CollectionCountToVisibilityConverter}, ConverterParameter=reverse}">
|
||||
<Path Fill="Black" Stretch="Uniform" Height="32" Margin="6"
|
||||
Data="{StaticResource GeometryFileAdd2}">
|
||||
</Path>
|
||||
<TextBlock>
|
||||
Hier sind noch keine Routinen angelegt.
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
|
||||
|
||||
@@ -97,6 +97,7 @@ namespace BeWo.View.Detail.AI
|
||||
|
||||
if (e.ClickCount == 2)
|
||||
{
|
||||
|
||||
ViewModel.OpenEditFolderDialogCommand.Execute(null);
|
||||
e.Handled = true;
|
||||
}
|
||||
@@ -145,5 +146,17 @@ namespace BeWo.View.Detail.AI
|
||||
listBoxEdit3.UnSelectAll();
|
||||
}
|
||||
}
|
||||
|
||||
private void Grid_PreviewMouseDown_2(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (!ViewModel.OpenEditRoutineDialogCommand.CanExecute(null))
|
||||
return;
|
||||
|
||||
if (e.ClickCount == 2)
|
||||
{
|
||||
ViewModel.OpenEditRoutineDialogCommand.Execute(null);
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user