Fix enabled/disabled on buttons
This commit is contained in:
@@ -292,6 +292,7 @@ class MainViewModel : BaseViewModel, IFontResolver
|
|||||||
LogInfo(e.InnerException.StackTrace);
|
LogInfo(e.InnerException.StackTrace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
LogInfo("Please report this error to a programmer or fix the issue listed above.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
HorizontalAlignment="Center"/>
|
HorizontalAlignment="Center"/>
|
||||||
<Button Content="Choose Receipt Folder"
|
<Button Content="Choose Receipt Folder"
|
||||||
Command="{Binding ChooseFolder}"
|
Command="{Binding ChooseFolder}"
|
||||||
IsEnabled="{Binding !IsCreatingPDF}" />
|
IsEnabled="{Binding IsCreatePDFButtonEnabled}" />
|
||||||
<Label Content="Report Title"
|
<Label Content="Report Title"
|
||||||
IsVisible="{Binding IsTitleBoxVisible}" />
|
IsVisible="{Binding IsTitleBoxVisible}" />
|
||||||
<TextBox Text="{Binding ReportTitle}"
|
<TextBox Text="{Binding ReportTitle}"
|
||||||
@@ -128,15 +128,15 @@
|
|||||||
<StackPanel Orientation="Horizontal"
|
<StackPanel Orientation="Horizontal"
|
||||||
Spacing="4">
|
Spacing="4">
|
||||||
<Button Command="{Binding AddItem}"
|
<Button Command="{Binding AddItem}"
|
||||||
IsEnabled="{Binding IsTitleBoxVisible}">
|
IsEnabled="{Binding IsCreatePDFButtonEnabled}">
|
||||||
<TextBlock><Run Text="+" FontFamily="{StaticResource FontAwesomeSolid}"/> Add Item</TextBlock>
|
<TextBlock><Run Text="+" FontFamily="{StaticResource FontAwesomeSolid}"/> Add Item</TextBlock>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Command="{Binding SaveInterimReportInfo}"
|
<Button Command="{Binding SaveInterimReportInfo}"
|
||||||
IsEnabled="{Binding IsTitleBoxVisible}">
|
IsEnabled="{Binding IsCreatePDFButtonEnabled}">
|
||||||
<TextBlock><Run Text="" FontFamily="{StaticResource FontAwesomeSolid}"/> Save Report Info</TextBlock>
|
<TextBlock><Run Text="" FontFamily="{StaticResource FontAwesomeSolid}"/> Save Report Info</TextBlock>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Command="{Binding ResortPDFItemsByDate}"
|
<Button Command="{Binding ResortPDFItemsByDate}"
|
||||||
IsEnabled="{Binding IsTitleBoxVisible}">
|
IsEnabled="{Binding IsCreatePDFButtonEnabled}">
|
||||||
<TextBlock><Run Text="" FontFamily="{StaticResource FontAwesomeSolid}"/> Resort PDF Items</TextBlock>
|
<TextBlock><Run Text="" FontFamily="{StaticResource FontAwesomeSolid}"/> Resort PDF Items</TextBlock>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Command="{Binding BuildPDF}"
|
<Button Command="{Binding BuildPDF}"
|
||||||
|
|||||||
Reference in New Issue
Block a user