Skip to content

Commit

Permalink
在回報單處添加到Github回報的建議訊息
Browse files Browse the repository at this point in the history
  • Loading branch information
flier268 committed Apr 25, 2019
1 parent a772b07 commit 31b00cc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
26 changes: 17 additions & 9 deletions ConvertZZ/Window_Report.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,30 @@
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Label Content="姓名*" Grid.Row="0" Margin="0,0,20,0"/>
<Label Content="Email" Grid.Row="1" Margin="0 5"/>
<Label Content="標題*" Grid.Row="2" Margin="0 5"/>
<Label Content="內文" Grid.Row="3" Margin="0 10"/>
<TextBox Name="TextBox_Name" Grid.Row="0" Grid.Column="1"/>
<TextBox Name="TextBox_Email" Grid.Row="1" Grid.Column="1"/>
<TextBox Name="TextBox_Title" Grid.Row="2" Grid.Column="1"/>
<TextBox Name="Textbox_Content" Grid.Row="3" Grid.Column="1" Margin="0 15 0 15" Style="{StaticResource MaterialDesignOutlinedTextFieldTextBox}" AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" materialDesign:HintAssist.Hint="內文"/>
<Button Name="Button_Send" Content="送出" Grid.Row="4" Grid.Column="1" Click="Button_Click"/>
<DockPanel Grid.ColumnSpan="2" HorizontalAlignment="Right">
<TextBlock Text="為了方便追蹤問題,建議到"/>
<Button Click="Text_Github_Click" Style="{StaticResource MaterialDesignFlatButton}" Padding="0" Height="Auto">
<TextBlock Text="Github" Cursor="Hand"/>
</Button>
<TextBlock Text="上回報喔!"/>
</DockPanel>
<Label Content="姓名*" Grid.Row="1" Margin="0,0,20,0"/>
<Label Content="Email" Grid.Row="2" Margin="0 5"/>
<Label Content="標題*" Grid.Row="3" Margin="0 5"/>
<Label Content="內文" Grid.Row="4" Margin="0 10"/>
<TextBox Name="TextBox_Name" Grid.Row="1" Grid.Column="1"/>
<TextBox Name="TextBox_Email" Grid.Row="2" Grid.Column="1"/>
<TextBox Name="TextBox_Title" Grid.Row="3" Grid.Column="1"/>
<TextBox Name="Textbox_Content" Grid.Row="4" Grid.Column="1" Margin="0 15 0 15" Style="{StaticResource MaterialDesignOutlinedTextFieldTextBox}" AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" materialDesign:HintAssist.Hint="內文"/>
<Button Name="Button_Send" Content="送出" Grid.Row="5" Grid.Column="1" Click="Button_Click"/>
</Grid>
</Grid>
</materialDesign:Card>
Expand Down
6 changes: 6 additions & 0 deletions ConvertZZ/Window_Report.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Specialized;
using System.Diagnostics;
using System.Net;
using System.Text;
using System.Threading.Tasks;
Expand Down Expand Up @@ -74,5 +75,10 @@ await Task.Run(() =>
}
});
}

private void Text_Github_Click(object sender, RoutedEventArgs e)
{
Process.Start("https://github.com/flier268/ConvertZZ/issues");
}
}
}

0 comments on commit 31b00cc

Please sign in to comment.