private static void Main(string[] args) { XmlConfigurator.Configure(); Log.Info("-------------------------- Starting " + NaroAppConstantNames.AppName + " " + NaroAppConstantNames.Version + " session ---------------------------"); AttemptUpdate(@"UpdateFailed\", @"auxiliary", @"DownloadSucceeded\"); NaroStartInfo.Instance.Arguments = args; ServicePointManager.Expect100Continue = false; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); #if NO_INSTALLER CheckEnvironmentRuntime(); if (EnvironmentErrorsForm.NoOcc || EnvironmentErrorsForm.NoVcRuntime) { Application.Run(new EnvironmentErrorsForm()); if (!EnvironmentErrorsForm.IgnoreErrors) { return; } } #endif ReportingForm form; var fromLastCrash = false; do { CheckEnvironmentRuntime(); form = null; StarterUtils.RunNaroCad(!EnvironmentErrorsForm.NoOcc, fromLastCrash); var guardExists = File.Exists(NaroAppConstantNames.GuardFileName); var logExists = File.Exists(NaroAppConstantNames.LogFileName); if (!guardExists /* || !logExists*/) { continue; } bool sent; fromLastCrash = File.Exists(NaroAppConstantNames.AutoSaveFileName); do { form = new ReportingForm(); sent = StarterUtils.SendBugReport(form); } while (!sent); } while (form != null && form.NaroNeedRestart); }
private void reportABugToolStripMenuItem_Click(object sender, EventArgs e) { ReportingForm form = new ReportingForm(); form.checkBoxRestart.Checked = false; form.checkBoxRestart.Visible = false; form.FileNames.Add(NaroAppConstantNames.LogFileName); form.FileNames.Add(NaroAppConstantNames.AutoSaveFileName); form.ShowDialog(); if (form.DialogResult == DialogResult.OK) { var sent = StarterUtils.SendReportToSf(form, form.FileNames); if (!sent) { MessageBox.Show("Error seding the log to internet. There may be internet problems"); } } }
private static void BtnReportABugClick(object sender, RoutedEventArgs e) { StarterUtils.SendBugReport(new ReportingForm()); }