A ton of improvements
This commit is contained in:
@@ -29,6 +29,7 @@ namespace FoxTube
|
||||
/// </summary>
|
||||
public sealed partial class Feedback : Page
|
||||
{
|
||||
string debugData = "";
|
||||
ApplicationDataContainer settings = ApplicationData.Current.LocalSettings;
|
||||
public Feedback()
|
||||
{
|
||||
@@ -83,7 +84,7 @@ namespace FoxTube
|
||||
msg.To.Add("foxgameofficial+foxtube@gmail.com");
|
||||
msg.From = new MailAddress("foxgameofficial+foxtube@gmail.com");
|
||||
msg.Subject = "FoxTube feedback";
|
||||
msg.Body = string.Format("Type: {0}\nTime: {1}\n\nTitle:\n{2}\n\nDetails:\n{3}", Type(), DateTime.Now, subject.Text, details.Text);
|
||||
msg.Body = string.Format("Type: {0}\nTime: {1}\n\nTitle:\n{2}\n\nDetails:\n{3}\n\nResponse e-mail: {4}\n\nException details:\n{5}", Type(), DateTime.Now, subject.Text, details.Text, email.Text, debugData);
|
||||
|
||||
subject.IsEnabled = false;
|
||||
details.IsEnabled = false;
|
||||
@@ -127,6 +128,27 @@ namespace FoxTube
|
||||
subject.Background = new SolidColorBrush();
|
||||
}
|
||||
|
||||
private void emailToggle_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
email.IsEnabled = (bool)emailToggle.IsChecked;
|
||||
}
|
||||
|
||||
public void PreDefine(bool isProblem, string meta)
|
||||
{
|
||||
if (isProblem)
|
||||
{
|
||||
promblemRadio.IsChecked = true;
|
||||
suggestionRadio.IsChecked = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
promblemRadio.IsChecked = false;
|
||||
suggestionRadio.IsChecked = true;
|
||||
}
|
||||
debugData = meta;
|
||||
debugAttached.Visibility = Visibility.Visible;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
private void feedbackSubmit_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user