Spacing v2
This commit is contained in:
@@ -45,7 +45,7 @@ namespace BeWo.AI.Controls
|
||||
set => SetValue(TargetTextBoxProperty, value);
|
||||
}
|
||||
|
||||
public bool HasRightToUseAIVoice
|
||||
public static bool HasRightToUseAIVoice
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
@@ -1692,9 +1692,10 @@
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Grid.ColumnSpan="4"
|
||||
Margin="3,3,3,6"
|
||||
Margin="3,3,3,3"
|
||||
HorizontalAlignment="Right"
|
||||
Orientation="Horizontal">
|
||||
Orientation="Horizontal"
|
||||
Visibility="{Binding IsAiRowVisible, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<StackPanel.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
@@ -1758,6 +1759,7 @@
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="3"
|
||||
Margin="0,3,0,0"
|
||||
VerticalAlignment="Stretch"
|
||||
AcceptsReturn="True"
|
||||
AutoWordSelection="True"
|
||||
|
||||
@@ -79,6 +79,12 @@ namespace BeWo.ViewModel
|
||||
FirePropertyChanged(nameof(Itself));
|
||||
}
|
||||
|
||||
protected virtual void FirePropertyChanged(params string[] properties)
|
||||
{
|
||||
foreach (var p in properties)
|
||||
FirePropertyChanged(PropertyChanged, this, p);
|
||||
}
|
||||
|
||||
protected virtual void FirePropertyChanged(string pPropertyName)
|
||||
{
|
||||
FirePropertyChanged(PropertyChanged, this, pPropertyName);
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Text;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Threading;
|
||||
|
||||
using BeWo.AI.Controls;
|
||||
using BeWo.Core;
|
||||
using BeWo.Core.Commands;
|
||||
using BeWo.Core.Service;
|
||||
@@ -253,6 +253,7 @@ namespace BeWo.ViewModel.ListViewModel
|
||||
public bool IsAiModuleEnabled => (BeWoApp.AppSettings.ShowAI || BeWoApp.AppSettings.ShowAIVoice);
|
||||
public bool IsAiChatButtonVisible => SelectedCustomerNode is object && IsAiModuleEnabled && BeWoApp.HasLoggedOnUserRight(UserRightType.AiModuleServiceRecordChat);
|
||||
public bool IsAiDocuButtonVisible => SelectedCustomerNode is object && IsAiModuleEnabled && BeWoApp.HasLoggedOnUserRight(UserRightType.AiModuleServiceRecordDocu);
|
||||
public bool IsAiRowVisible => IsAiDocuButtonVisible || VoiceToTextButtonControl.HasRightToUseAIVoice;
|
||||
public bool IsAiDocuButtonCanExecute => !string.IsNullOrWhiteSpace(AktuellerDokutext);
|
||||
public bool IsUndoButtonVisible => _AiActionHistoryIndex > 0;
|
||||
public bool IsRedoButtonVisible => _AiActionHistoryIndex < _AiActionHistory.Count - 1;
|
||||
@@ -1094,8 +1095,7 @@ namespace BeWo.ViewModel.ListViewModel
|
||||
lClickedNode.SupportConceptTreeNodeDC.CostBearer))
|
||||
{
|
||||
_SelectedCustomerNode = lClickedNode;
|
||||
FirePropertyChanged(nameof(IsAiChatButtonVisible));
|
||||
FirePropertyChanged(nameof(IsAiDocuButtonVisible));
|
||||
FirePropertyChanged(nameof(IsAiChatButtonVisible), nameof(IsAiDocuButtonVisible), nameof(IsAiRowVisible));
|
||||
CustomerNodes.Clear();
|
||||
|
||||
if (lClickedNode != null)
|
||||
|
||||
Reference in New Issue
Block a user