Permalink
Browse files

fix: idx for fnc types; update screenshot

  • Loading branch information...
cbries committed Sep 9, 2017
1 parent 210beb1 commit 304c6f530798e541e22335fedf0140e397eef714
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -106,8 +106,10 @@
</StackPanel>
<DockPanel Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0,10,0,0">
<ComboBox Margin="2" ItemsSource="{Binding Entity.ObjectItem.FncNames, Mode=OneWay}" SelectedItem="{Binding Entity.ObjectItem.FncSelectedName}" Width="50"/>
<ComboBox Margin="0,2,2,2" Width="100" SelectedIndex="{Binding Entity.ObjectItem.FncTypeIndex}" ItemsSource="{Binding Entity.ObjectItem.FncTypeNames, Mode=OneWay}"/>
<ComboBox Margin="2" ItemsSource="{Binding Entity.ObjectItem.FncNames, Mode=OneWay}"
SelectedItem="{Binding Entity.ObjectItem.FncSelectedName}" Width="50"/>
<ComboBox Margin="0,2,2,2" Width="100" ItemsSource="{Binding Entity.ObjectItem.FncTypeNames, Mode=OneWay}"
SelectedIndex="{Binding Entity.ObjectItem.FncTypeIndex}"/>
<Button Name="CmdFncTypeSet" Content="SET" Click="CmdFncTypeSet_OnClick"/>
</DockPanel>
@@ -168,7 +168,7 @@ public bool Generate(string targetFilepath)
oSb.Append("<tr class=\"row\">");
for (int x = 0; x < Columns; ++x)
{
var cellInfo = $"title=\"X={x+1}, Y={y+1}\"";
var cellInfo = ""; // $"title=\"X={x+1}, Y={y+1}\"";
var cellId = $"id=\"td_{x+1}_{y+1}\"";
oSb.Append($"<td {cellId} class=\"cell\" {cellInfo}><div class=\"overflow\"></div></td></td>");
@@ -246,7 +246,7 @@ public string FncSelectedName
_fncSelectedName = value;
if (_fncTypes.ContainsKey(value))
FncTypeIndex = (int) _fncTypes[value];
FncTypeIndex = (int) _fncTypes[value] + 1; // +1 because "--" has index 0
else
FncTypeIndex = 0;

0 comments on commit 304c6f5

Please sign in to comment.