Archived
1
0

A ton of improvements

This commit is contained in:
Michael Gordeev
2018-06-07 10:29:00 +03:00
parent 031d9ab368
commit 41c5420b9f
24 changed files with 727 additions and 356 deletions
+23 -1
View File
@@ -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)