Finishing touches
This commit is contained in:
parent
2d55eb52cd
commit
31d520d677
4 changed files with 42 additions and 32 deletions
|
|
@ -10,13 +10,13 @@
|
||||||
<Grid>
|
<Grid>
|
||||||
<TabControl Margin="10">
|
<TabControl Margin="10">
|
||||||
<TabItem Header="Employment">
|
<TabItem Header="Employment">
|
||||||
<TextBox x:Name="EmploymentBox" IsReadOnly="True" IsUndoEnabled="False" AutoWordSelection="True" FontFamily="Times New Roman"/>
|
<TextBox x:Name="EmploymentBox" IsReadOnly="True" IsUndoEnabled="False" AutoWordSelection="True" FontFamily="Consolas"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="Medical">
|
<TabItem Header="Medical">
|
||||||
<TextBox x:Name="MedicalBox" IsReadOnly="True" IsUndoEnabled="False" AutoWordSelection="True" FontFamily="Times New Roman"/>
|
<TextBox x:Name="MedicalBox" IsReadOnly="True" IsUndoEnabled="False" AutoWordSelection="True" FontFamily="Consolas"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="Security">
|
<TabItem Header="Security">
|
||||||
<TextBox x:Name="SecurityBox" IsReadOnly="True" IsUndoEnabled="False" AutoWordSelection="True" FontFamily="Times New Roman"/>
|
<TextBox x:Name="SecurityBox" IsReadOnly="True" IsUndoEnabled="False" AutoWordSelection="True" FontFamily="Consolas"/>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
|
||||||
|
|
@ -35,18 +35,18 @@
|
||||||
Margin="10,26,5,0"
|
Margin="10,26,5,0"
|
||||||
TextWrapping="Wrap" VerticalAlignment="Top"
|
TextWrapping="Wrap" VerticalAlignment="Top"
|
||||||
ToolTip="Your character's first name. Required."
|
ToolTip="Your character's first name. Required."
|
||||||
Text="{Binding Path=FirstName}" controls:TextBoxHelper.Watermark="Urist" />
|
Text="{Binding Path=FirstName}" controls:TextBoxHelper.Watermark="Urist" TabIndex="1" />
|
||||||
<TextBox Height="26"
|
<TextBox Height="26"
|
||||||
Margin="0,26,0,0"
|
Margin="0,26,0,0"
|
||||||
TextWrapping="Wrap"
|
TextWrapping="Wrap"
|
||||||
ToolTip="Your character's middle name. Optional." Grid.Column="1"
|
ToolTip="Your character's middle name. Optional." Grid.Column="1"
|
||||||
HorizontalAlignment="Left" Width="120" VerticalAlignment="Top"
|
HorizontalAlignment="Left" Width="120" VerticalAlignment="Top"
|
||||||
Text="{Binding Path=MiddleName}" />
|
Text="{Binding Path=MiddleName}" TabIndex="2" />
|
||||||
<TextBox Height="26"
|
<TextBox Height="26"
|
||||||
Margin="125,26,0,0"
|
Margin="125,26,0,0"
|
||||||
TextWrapping="Wrap" VerticalAlignment="Top"
|
TextWrapping="Wrap" VerticalAlignment="Top"
|
||||||
ToolTip="Your character's last name. Required." Grid.Column="1"
|
ToolTip="Your character's last name. Required." Grid.Column="1"
|
||||||
Text="{Binding Path=LastName}" controls:TextBoxHelper.Watermark="McScientist" />
|
Text="{Binding Path=LastName}" controls:TextBoxHelper.Watermark="McScientist" TabIndex="3" />
|
||||||
<TextBlock Grid.Column="0" Margin="10,10,10,0" TextWrapping="Wrap"
|
<TextBlock Grid.Column="0" Margin="10,10,10,0" TextWrapping="Wrap"
|
||||||
Text="First"
|
Text="First"
|
||||||
VerticalAlignment="Top" Height="16" />
|
VerticalAlignment="Top" Height="16" />
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
Margin="5,26,10.5,0" TextWrapping="Wrap"
|
Margin="5,26,10.5,0" TextWrapping="Wrap"
|
||||||
ToolTip="Your character's name suffix, if present. Optional." Grid.Column="2"
|
ToolTip="Your character's name suffix, if present. Optional." Grid.Column="2"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
Text="{Binding Path=NameSuffix}" controls:TextBoxHelper.Watermark="the Third" />
|
Text="{Binding Path=NameSuffix}" controls:TextBoxHelper.Watermark="the Third" TabIndex="4" />
|
||||||
<TextBlock HorizontalAlignment="Left" Margin="5,10,0,0" TextWrapping="Wrap"
|
<TextBlock HorizontalAlignment="Left" Margin="5,10,0,0" TextWrapping="Wrap"
|
||||||
Text="Suffix (Optional)" VerticalAlignment="Top" Grid.Column="2"
|
Text="Suffix (Optional)" VerticalAlignment="Top" Grid.Column="2"
|
||||||
Height="15.96" Width="150" />
|
Height="15.96" Width="150" />
|
||||||
|
|
@ -71,14 +71,14 @@
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
ItemsSource="{Binding Source={StaticResource SpeciesEnum}}"
|
ItemsSource="{Binding Source={StaticResource SpeciesEnum}}"
|
||||||
ToolTip="Your character's species. Required."
|
ToolTip="Your character's species. Required."
|
||||||
SelectionChanged="SpeciesSelectChanged" Height="26"/>
|
SelectionChanged="SpeciesSelectChanged" Height="26" TabIndex="5"/>
|
||||||
<TextBlock HorizontalAlignment="Left" Margin="0,57,0,0" TextWrapping="Wrap"
|
<TextBlock HorizontalAlignment="Left" Margin="0,57,0,0" TextWrapping="Wrap"
|
||||||
Text="Gender"
|
Text="Gender"
|
||||||
VerticalAlignment="Top" Grid.Column="1" Height="15.96" Width="120"/>
|
VerticalAlignment="Top" Grid.Column="1" Height="15.96" Width="120"/>
|
||||||
<ComboBox x:Name="GenderCombo" HorizontalAlignment="Left" Margin="0,73,0,0"
|
<ComboBox x:Name="GenderCombo" HorizontalAlignment="Left" Margin="0,73,0,0"
|
||||||
VerticalAlignment="Top" Width="120"
|
VerticalAlignment="Top" Width="120"
|
||||||
ToolTip="Your character's gender. Does not apply to Dionae and IPCs."
|
ToolTip="Your character's gender. Does not apply to Dionae and IPCs."
|
||||||
Grid.Column="1" Height="26">
|
Grid.Column="1" Height="26" TabIndex="6">
|
||||||
<ComboBoxItem Content="Male" />
|
<ComboBoxItem Content="Male" />
|
||||||
<!-- Define here instead of loading from enum as we don't want NotApplicable listed -->
|
<!-- Define here instead of loading from enum as we don't want NotApplicable listed -->
|
||||||
<ComboBoxItem Content="Female" />
|
<ComboBoxItem Content="Female" />
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
SelectedDateFormat="Short" DisplayDateEnd="2470-01-01"
|
SelectedDateFormat="Short" DisplayDateEnd="2470-01-01"
|
||||||
DisplayDateStart="1955-01-01" DisplayDate="2458-01-01" Grid.Column="1"
|
DisplayDateStart="1955-01-01" DisplayDate="2458-01-01" Grid.Column="1"
|
||||||
Height="26"
|
Height="26"
|
||||||
SelectedDate="{Binding Path=BirthDate}" />
|
SelectedDate="{Binding Path=BirthDate}" TabIndex="7" />
|
||||||
<TextBlock Margin="125,57,40.96,0" TextWrapping="Wrap" Text="Date of Birth"
|
<TextBlock Margin="125,57,40.96,0" TextWrapping="Wrap" Text="Date of Birth"
|
||||||
VerticalAlignment="Top" Grid.Column="1" Height="15.96" />
|
VerticalAlignment="Top" Grid.Column="1" Height="15.96" />
|
||||||
<TextBlock Grid.Column="0" Margin="10,0,0,34" TextWrapping="Wrap" Text="Clearance"
|
<TextBlock Grid.Column="0" Margin="10,0,0,34" TextWrapping="Wrap" Text="Clearance"
|
||||||
|
|
@ -96,20 +96,20 @@
|
||||||
VerticalAlignment="Bottom" Grid.ColumnSpan="2"
|
VerticalAlignment="Bottom" Grid.ColumnSpan="2"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
controls:TextBoxHelper.Watermark="Staff (Research, Xenobiology), Command (Research)"
|
controls:TextBoxHelper.Watermark="Staff (Research, Xenobiology), Command (Research)"
|
||||||
Text="{Binding Path=Clearance}" />
|
Text="{Binding Path=Clearance}" TabIndex="11" />
|
||||||
<TextBlock HorizontalAlignment="Left" Margin="0,0,0,81"
|
<TextBlock HorizontalAlignment="Left" Margin="0,0,0,81"
|
||||||
TextWrapping="Wrap" Text="Employed As" VerticalAlignment="Bottom" Grid.Column="1" />
|
TextWrapping="Wrap" Text="Employed As" VerticalAlignment="Bottom" Grid.Column="1" />
|
||||||
<TextBox Height="23" Margin="0,0,0,55" TextWrapping="Wrap"
|
<TextBox Height="23" Margin="0,0,0,55" TextWrapping="Wrap"
|
||||||
VerticalAlignment="Bottom" controls:TextBoxHelper.Watermark="Xenobiologist"
|
VerticalAlignment="Bottom" controls:TextBoxHelper.Watermark="Xenobiologist"
|
||||||
Text="{Binding Path=EmployedAs}" HorizontalAlignment="Left" Width="260" Grid.Column="1" />
|
Text="{Binding Path=EmployedAs}" HorizontalAlignment="Left" Width="260" Grid.Column="1" TabIndex="10" />
|
||||||
<TextBox Grid.Column="2" Height="23" Margin="5,73,10.5,0"
|
<TextBox Grid.Column="2" Height="23" Margin="5,73,10.5,0"
|
||||||
TextWrapping="Wrap" VerticalAlignment="Top" controls:TextBoxHelper.Watermark="Sol Alliance"
|
TextWrapping="Wrap" VerticalAlignment="Top" controls:TextBoxHelper.Watermark="Sol Alliance"
|
||||||
Text="{Binding Path=Citizenship}" />
|
Text="{Binding Path=Citizenship}" TabIndex="8" />
|
||||||
<TextBlock Grid.Column="2" HorizontalAlignment="Left" Margin="5,57,0,0" TextWrapping="Wrap" Text="Citizenship" VerticalAlignment="Top" />
|
<TextBlock Grid.Column="2" HorizontalAlignment="Left" Margin="5,57,0,0" TextWrapping="Wrap" Text="Citizenship" VerticalAlignment="Top" />
|
||||||
<ComboBox Grid.Column="0" x:Name="SubSpeciesCombo" Margin="10,120,5,0"
|
<ComboBox Grid.Column="0" x:Name="SubSpeciesCombo" Margin="10,120,5,0"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
ToolTip="Your character's ethnic group or subtype."
|
ToolTip="Your character's ethnic group or subtype."
|
||||||
SelectionChanged="SpeciesSelectChanged" Height="26"
|
SelectionChanged="SpeciesSelectChanged" Height="26" TabIndex="9"
|
||||||
/>
|
/>
|
||||||
<TextBlock Grid.Column="0" Margin="10,104,10,0" TextWrapping="Wrap"
|
<TextBlock Grid.Column="0" Margin="10,104,10,0" TextWrapping="Wrap"
|
||||||
Text="Subtype/Ethnicity"
|
Text="Subtype/Ethnicity"
|
||||||
|
|
@ -130,13 +130,13 @@
|
||||||
HorizontalAlignment="Left" Margin="10,26,0,0"
|
HorizontalAlignment="Left" Margin="10,26,0,0"
|
||||||
Minimum="10" Maximum="400" HideUpDownButtons="True" Width="1"
|
Minimum="10" Maximum="400" HideUpDownButtons="True" Width="1"
|
||||||
StringFormat="N1" VerticalAlignment="Top"
|
StringFormat="N1" VerticalAlignment="Top"
|
||||||
HorizontalContentAlignment="Center" />
|
HorizontalContentAlignment="Center" TabIndex="12" />
|
||||||
<controls:NumericUpDown Grid.Column="0"
|
<controls:NumericUpDown Grid.Column="0"
|
||||||
Value="{Binding Path=Weight}"
|
Value="{Binding Path=Weight}"
|
||||||
HorizontalAlignment="Left" Margin="77.033,26,0,0"
|
HorizontalAlignment="Left" Margin="77.033,26,0,0"
|
||||||
Minimum="10" Maximum="100" HideUpDownButtons="True" Width="1"
|
Minimum="10" Maximum="1000" HideUpDownButtons="True" Width="1"
|
||||||
StringFormat="N1" VerticalAlignment="Top"
|
StringFormat="N1" VerticalAlignment="Top"
|
||||||
HorizontalContentAlignment="Center" />
|
HorizontalContentAlignment="Center" TabIndex="13" />
|
||||||
<TextBlock Grid.Column="0" HorizontalAlignment="Left" Margin="77.033,10,0,0"
|
<TextBlock Grid.Column="0" HorizontalAlignment="Left" Margin="77.033,10,0,0"
|
||||||
TextWrapping="Wrap"
|
TextWrapping="Wrap"
|
||||||
VerticalAlignment="Top" Text="Weight (kg)" />
|
VerticalAlignment="Top" Text="Weight (kg)" />
|
||||||
|
|
@ -146,18 +146,18 @@
|
||||||
<TextBox Grid.Column="0" Height="23"
|
<TextBox Grid.Column="0" Height="23"
|
||||||
Margin="144.033,25.96,261.967,0" TextWrapping="Wrap" VerticalAlignment="Top"
|
Margin="144.033,25.96,261.967,0" TextWrapping="Wrap" VerticalAlignment="Top"
|
||||||
ToolTip="The color of your character's skin/scales/fur/chassis. Not applicable for Dionae."
|
ToolTip="The color of your character's skin/scales/fur/chassis. Not applicable for Dionae."
|
||||||
d:LayoutOverrides="HorizontalAlignment" Text="{Binding Path=SkinColor}" />
|
d:LayoutOverrides="HorizontalAlignment" Text="{Binding Path=SkinColor}" TabIndex="14" />
|
||||||
<TextBlock Grid.Column="0" HorizontalAlignment="Left" Margin="10,57,0,52"
|
<TextBlock Grid.Column="0" HorizontalAlignment="Left" Margin="10,57,0,52"
|
||||||
TextWrapping="Wrap"
|
TextWrapping="Wrap"
|
||||||
Text="Distinguishing Features" d:LayoutOverrides="Height" />
|
Text="Distinguishing Features" d:LayoutOverrides="Height" />
|
||||||
<TextBox Grid.Column="0" Height="23"
|
<TextBox Grid.Column="0" Height="23"
|
||||||
Margin="10,0,0,26" Text="{Binding Path=DistinguishingFeatures}"
|
Margin="10,0,0,26" Text="{Binding Path=DistinguishingFeatures}"
|
||||||
TextWrapping="Wrap" VerticalAlignment="Bottom" />
|
TextWrapping="Wrap" VerticalAlignment="Bottom" TabIndex="17" />
|
||||||
<TextBox Grid.Column="0" Height="23"
|
<TextBox Grid.Column="0" Height="23"
|
||||||
Margin="0,25.96,136.967,0"
|
Margin="0,25.96,136.967,0"
|
||||||
TextWrapping="Wrap" VerticalAlignment="Top" HorizontalAlignment="Right"
|
TextWrapping="Wrap" VerticalAlignment="Top" HorizontalAlignment="Right"
|
||||||
Width="120" d:LayoutOverrides="HorizontalAlignment"
|
Width="120" d:LayoutOverrides="HorizontalAlignment"
|
||||||
Text="{Binding Path=HairColor}" />
|
Text="{Binding Path=HairColor}" TabIndex="15" />
|
||||||
<TextBlock Grid.Column="0" Margin="0,10,203.403,0" TextWrapping="Wrap"
|
<TextBlock Grid.Column="0" Margin="0,10,203.403,0" TextWrapping="Wrap"
|
||||||
Text="Hair Color"
|
Text="Hair Color"
|
||||||
VerticalAlignment="Top" HorizontalAlignment="Right"
|
VerticalAlignment="Top" HorizontalAlignment="Right"
|
||||||
|
|
@ -165,7 +165,7 @@
|
||||||
<TextBox Grid.Column="0" HorizontalAlignment="Right"
|
<TextBox Grid.Column="0" HorizontalAlignment="Right"
|
||||||
Margin="0,25.96,0,0"
|
Margin="0,25.96,0,0"
|
||||||
TextWrapping="Wrap" Width="131.967" Height="26" VerticalAlignment="Top"
|
TextWrapping="Wrap" Width="131.967" Height="26" VerticalAlignment="Top"
|
||||||
Text="{Binding Path=EyeColor}" />
|
Text="{Binding Path=EyeColor}" TabIndex="16" />
|
||||||
<TextBlock Grid.Column="0" HorizontalAlignment="Right" Margin="0,10,81.957,0"
|
<TextBlock Grid.Column="0" HorizontalAlignment="Right" Margin="0,10,81.957,0"
|
||||||
TextWrapping="Wrap"
|
TextWrapping="Wrap"
|
||||||
Text="Eye Color" VerticalAlignment="Top" />
|
Text="Eye Color" VerticalAlignment="Top" />
|
||||||
|
|
@ -260,16 +260,16 @@
|
||||||
<!-- Opt-Outs -->
|
<!-- Opt-Outs -->
|
||||||
<Grid Grid.Row="0" ToolTip="If the character wishes to not be cloned.">
|
<Grid Grid.Row="0" ToolTip="If the character wishes to not be cloned.">
|
||||||
<CheckBox x:Name="NoClone" Content="Do Not Clone" HorizontalAlignment="Left"
|
<CheckBox x:Name="NoClone" Content="Do Not Clone" HorizontalAlignment="Left"
|
||||||
Margin="10,10,0,0" VerticalAlignment="Top" />
|
Margin="10,10,0,0" VerticalAlignment="Top" TabIndex="1" />
|
||||||
<CheckBox x:Name="NoProsthetic" Content="No Prosthetics"
|
<CheckBox x:Name="NoProsthetic" Content="No Prosthetics"
|
||||||
HorizontalAlignment="Left" Margin="10,33,0,0" VerticalAlignment="Top"
|
HorizontalAlignment="Left" Margin="10,33,0,0" VerticalAlignment="Top"
|
||||||
ToolTip="If the character should not be fitted with prosthetics." />
|
ToolTip="If the character should not be fitted with prosthetics." TabIndex="3" />
|
||||||
<CheckBox x:Name="NoBorg" Content="Do Not Borgify" HorizontalAlignment="Left"
|
<CheckBox x:Name="NoBorg" Content="Do Not Borgify" HorizontalAlignment="Left"
|
||||||
Margin="136,10,0,0" VerticalAlignment="Top"
|
Margin="136,10,0,0" VerticalAlignment="Top"
|
||||||
ToolTip="If the character should not be borged." />
|
ToolTip="If the character should not be borged." TabIndex="2" />
|
||||||
<CheckBox x:Name="NoRevive" Content="Do Not Resuscitate"
|
<CheckBox x:Name="NoRevive" Content="Do Not Resuscitate"
|
||||||
HorizontalAlignment="Left" Margin="136,33,0,0" VerticalAlignment="Top"
|
HorizontalAlignment="Left" Margin="136,33,0,0" VerticalAlignment="Top"
|
||||||
ToolTip="If the character should not be revived." />
|
ToolTip="If the character should not be revived." TabIndex="4" />
|
||||||
</Grid>
|
</Grid>
|
||||||
<!-- user-resizable stuff is fun! Not. -->
|
<!-- user-resizable stuff is fun! Not. -->
|
||||||
<GridSplitter Grid.Row="1" Grid.ColumnSpan="1" HorizontalAlignment="Stretch"
|
<GridSplitter Grid.Row="1" Grid.ColumnSpan="1" HorizontalAlignment="Stretch"
|
||||||
|
|
@ -291,42 +291,42 @@
|
||||||
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
||||||
ToolTip="Public medical notes posted on employment and security records. One per line."
|
ToolTip="Public medical notes posted on employment and security records. One per line."
|
||||||
Grid.Row="1" VerticalScrollBarVisibility="Auto"
|
Grid.Row="1" VerticalScrollBarVisibility="Auto"
|
||||||
Text="{Binding Path=MedicalPublicRecord}" />
|
Text="{Binding Path=MedicalPublicRecord}" TabIndex="5" />
|
||||||
<TextBox Margin="0,10,0,10" AcceptsReturn="True" TextWrapping="Wrap"
|
<TextBox Margin="0,10,0,10" AcceptsReturn="True" TextWrapping="Wrap"
|
||||||
controls:TextBoxHelper.Watermark="Medical History"
|
controls:TextBoxHelper.Watermark="Medical History"
|
||||||
controls:TextBoxHelper.UseFloatingWatermark="True"
|
controls:TextBoxHelper.UseFloatingWatermark="True"
|
||||||
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
||||||
VerticalScrollBarVisibility="Auto"
|
VerticalScrollBarVisibility="Auto"
|
||||||
ToolTip="Dated list of operations, surgeries, checkups of note, etc. One per line."
|
ToolTip="Dated list of operations, surgeries, checkups of note, etc. One per line."
|
||||||
Grid.Row="2" Text="{Binding Path=MedicalHistory}" />
|
Grid.Row="2" Text="{Binding Path=MedicalHistory}" TabIndex="6" />
|
||||||
<TextBox Margin="0,10,0,10" AcceptsReturn="True" TextWrapping="Wrap"
|
<TextBox Margin="0,10,0,10" AcceptsReturn="True" TextWrapping="Wrap"
|
||||||
controls:TextBoxHelper.Watermark="Medical Notes"
|
controls:TextBoxHelper.Watermark="Medical Notes"
|
||||||
controls:TextBoxHelper.UseFloatingWatermark="True"
|
controls:TextBoxHelper.UseFloatingWatermark="True"
|
||||||
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
||||||
VerticalScrollBarVisibility="Auto"
|
VerticalScrollBarVisibility="Auto"
|
||||||
ToolTip="Notes about physical/medical health. One per line." Grid.Row="3"
|
ToolTip="Notes about physical/medical health. One per line." Grid.Row="3"
|
||||||
Text="{Binding Path=MedicalNotes}" />
|
Text="{Binding Path=MedicalNotes}" TabIndex="7" />
|
||||||
<TextBox Margin="0,10,0,10" AcceptsReturn="True"
|
<TextBox Margin="0,10,0,10" AcceptsReturn="True"
|
||||||
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Psychiatric History"
|
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Psychiatric History"
|
||||||
controls:TextBoxHelper.UseFloatingWatermark="True"
|
controls:TextBoxHelper.UseFloatingWatermark="True"
|
||||||
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
||||||
VerticalScrollBarVisibility="Auto"
|
VerticalScrollBarVisibility="Auto"
|
||||||
ToolTip="Dated records of psych evals and other psychological events." Grid.Row="4"
|
ToolTip="Dated records of psych evals and other psychological events." Grid.Row="4"
|
||||||
Text="{Binding Path=MedicalPsychHistory}" />
|
Text="{Binding Path=MedicalPsychHistory}" TabIndex="8" />
|
||||||
<TextBox Margin="0,10,0,10" AcceptsReturn="True"
|
<TextBox Margin="0,10,0,10" AcceptsReturn="True"
|
||||||
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Psychiatric Notes"
|
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Psychiatric Notes"
|
||||||
controls:TextBoxHelper.UseFloatingWatermark="True"
|
controls:TextBoxHelper.UseFloatingWatermark="True"
|
||||||
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
||||||
VerticalScrollBarVisibility="Auto"
|
VerticalScrollBarVisibility="Auto"
|
||||||
ToolTip="Notes about mental/psychiatric health. One per line." Grid.Row="5"
|
ToolTip="Notes about mental/psychiatric health. One per line." Grid.Row="5"
|
||||||
Text="{Binding Path=MedicalPsychNotes}" />
|
Text="{Binding Path=MedicalPsychNotes}" TabIndex="9" />
|
||||||
<TextBox Margin="0,10,0,10" AcceptsReturn="True"
|
<TextBox Margin="0,10,0,10" AcceptsReturn="True"
|
||||||
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Prescriptions"
|
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Prescriptions"
|
||||||
controls:TextBoxHelper.UseFloatingWatermark="True"
|
controls:TextBoxHelper.UseFloatingWatermark="True"
|
||||||
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
||||||
VerticalScrollBarVisibility="Auto"
|
VerticalScrollBarVisibility="Auto"
|
||||||
ToolTip="Notes regarding assigned prescriptions. One per line." Grid.Row="6"
|
ToolTip="Notes regarding assigned prescriptions. One per line." Grid.Row="6"
|
||||||
Text="{Binding Path=MedicalPrescriptions}" />
|
Text="{Binding Path=MedicalPrescriptions}" TabIndex="10" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,16 @@ namespace AuroraRecordGenerator
|
||||||
if (_targetRecord.Weight != null)
|
if (_targetRecord.Weight != null)
|
||||||
record.AppendLine($"Weight: {_targetRecord.Weight} kg ({Utility.KgToLb(_targetRecord.Weight ?? 0)} lb)");
|
record.AppendLine($"Weight: {_targetRecord.Weight} kg ({Utility.KgToLb(_targetRecord.Weight ?? 0)} lb)");
|
||||||
|
|
||||||
|
// Eye color
|
||||||
|
var trimmedEye = _targetRecord.EyeColor.Trim();
|
||||||
|
record.AppendFormat("Eye Color: {0}\n", trimmedEye.Length > 0 ? trimmedEye : "Not Specified.");
|
||||||
|
|
||||||
|
var bodyColor = _targetRecord.SkinColor.Trim();
|
||||||
|
record.AppendFormat("Skin/Body Color: {0}\n", bodyColor.Length > 0 ? bodyColor : "Not Specified.");
|
||||||
|
|
||||||
|
var hairColor = _targetRecord.HairColor.Trim();
|
||||||
|
record.AppendFormat("Hair Color: {0}\n", hairColor.Length > 0 ? hairColor : "Not Specified.");
|
||||||
|
|
||||||
// identifying features
|
// identifying features
|
||||||
var trimmedFeatures = _targetRecord.DistinguishingFeatures.Trim();
|
var trimmedFeatures = _targetRecord.DistinguishingFeatures.Trim();
|
||||||
record.Append("Distinguishing Features: ");
|
record.Append("Distinguishing Features: ");
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ namespace AuroraRecordGenerator
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="val"></param>
|
/// <param name="val"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static string SpaceIfValue(this string val) => string.IsNullOrWhiteSpace(val) ? string.Empty : " " + val + " ";
|
public static string SpaceIfValue(this string val) => string.IsNullOrWhiteSpace(val) ? string.Empty : $" {val} ";
|
||||||
|
|
||||||
public static string IfEmpty(this string target, string fallback) =>
|
public static string IfEmpty(this string target, string fallback) =>
|
||||||
target.IsEmpty() ? fallback : target;
|
target.IsEmpty() ? fallback : target;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue