コード例 #1
0
		public UserDetails (bool showDetailed, ExceptionBase.NETGTKSharp.Application app, ExceptionInfo exinfo, Server server) : 
				base(Gtk.WindowType.Toplevel)
		{
			this.Build ();
			//Set title and description
			this.Title = language.winTitle;
			this.lblDescription.Text = language.winDescription;
			//Name the tabs
			this.btnSkip.Label = language.bSkip;
			this.btnSend.Label = language.bSend;
			GtkLabel3.Text = language.appVersionCaption;
			GtkLabel4.Text = language.netVersionCaption;
			GtkLabel5.Text = language.osVersionCaption;
			GtkLabel.Text = language.errorDetailsCaption;
			label6.Text = app.Version;
			label7.Text = Environment.Version.ToString ();
			label8.Text = ReadSTDOutput ("lsb_release", "--d").Replace ("Description:", "").Trim () + " " + ReadSTDOutput ("arch", "");
			this.image26.Pixbuf = app.Icon;
			label4.Text = exinfo.Message;
			label5.Text = exinfo.Inner;
			ex = exinfo;
			sv = server;
			appl = app;
			if (showDetailed == false)
				notebook1.GetNthPage (1).HideAll ();
		}
コード例 #2
0
		//TODO: Change The Drawing.Image to Pixbuf!
		public Base (String Server, int AppID, String Version, Gdk.Pixbuf AppIcon)
		{
			this.language = new Language ();
			this.server = new ExceptionBase.NETGTKSharp.Server ();
			this.application = new Application ();
			this.exception = new ExceptionInfo ();
			this.application.Version = Version;
			this.application.ID = AppID;
			this.server.server = Server;
			this.application.Icon = AppIcon;
			application.ShowErrorDetails = true;
		}
コード例 #3
0
		public void Send (ExceptionInfo exception, Server server)
		{
			string NETFramework = "0.0"; 
			string InstalledOS = "Other Linux";

			try {
				NETFramework = Environment.Version.ToString ();
				InstalledOS = ReadSTDOutput ("lsb_release", "--d").Replace ("Description:", "").Trim ();
			} catch {

			}
			String args = "em=" + exception.Message + "&ei=" + exception.Inner + "&st=" + exception.StackTrace + "&eme=" + exception.TargetSite + "&udesc=" + exception.UserDescription + "&appid=" + appl.ID + "&v=" + appl.Version + "&net=" + NETFramework + "&os=" + InstalledOS;
			//TODO: Changed the not existing namespace to C#
			if (true) { //new System.Net.NetworkInformation.Ping ().Send (server.PingIP).Status == System.Net.NetworkInformation.IPStatus.Success) {
				if (Functions.PostURL (server.server, args).Split (';') [0] == "1") {
					//TODO: Logging into the system logs
				} else {
					//FIXME: Hey leolabs, you have a bug there.
				}
			}
		}