using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Media.Imaging; using Tango.BL.Enumerations; using Tango.PPC.Common; using Tango.PPC.BugReporting.Views; using Tango.SharedUI.Helpers; using Tango.Settings; using System.Diagnostics; namespace Tango.PPC.BugReporting { /// /// Represents a PPC . /// /// [PPCModule(6)] public class BugReportingModule : PPCModuleBase { /// /// Initializes a new instance of the class. /// public BugReportingModule() : base() { IsVisibleInMenu = false; try { var settings = SettingsManager.Default.GetOrCreate(); IsVisibleInMenu = settings.DeploymentSlot != Web.DeploymentSlot.PROD; } catch (Exception ex) { Debug.WriteLine("Could not retrieve settings for PPC!\n" + ex.ToString()); } } /// /// Gets the module name. /// public override string Name { get { return "Report Issue"; } } /// /// Gets the module description. /// public override string Description { get { return "Bug Reporting Module"; } } /// /// Gets the module cover image. /// public override BitmapSource Image { get { return ResourceHelper.GetImageFromResources("Images/bug_reporting.png"); } } /// /// Gets the module entry point view type. /// public override Type MainViewType { get { return typeof(MainView); } } /// /// Gets the permission required to see and load this module. /// public override Permissions Permission { get { return Permissions.RunPPC; } } /// /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// public override void Dispose() { //Dispose module here... } } }