[tasque/transition: 104/213] Formatting, forgotten usings and the like



commit 9c9d72c60f036c327cc75448da4c86f487c7748b
Author: Antonius Riha <antoniusriha gmail com>
Date:   Thu Aug 16 13:48:09 2012 +0200

    Formatting, forgotten usings and the like

 src/Addins/DummyBackend/DummyTask.cs |    3 +--
 src/Tasque.Gtk/CompletedTaskGroup.cs |    9 +++------
 src/Tasque.Gtk/NoteDialog.cs         |    3 +--
 src/Tasque.Gtk/Utilities.cs          |    1 +
 src/libtasque/Application.cs         |   10 +++++-----
 5 files changed, 11 insertions(+), 15 deletions(-)
---
diff --git a/src/Addins/DummyBackend/DummyTask.cs b/src/Addins/DummyBackend/DummyTask.cs
index 24c069a..39a4799 100644
--- a/src/Addins/DummyBackend/DummyTask.cs
+++ b/src/Addins/DummyBackend/DummyTask.cs
@@ -27,6 +27,7 @@
 // THE SOFTWARE.
 using System;
 using Tasque;
+using System.Diagnostics;
 
 namespace Tasque.Backends.Dummy
 {
@@ -34,7 +35,6 @@ namespace Tasque.Backends.Dummy
 	{
 		public DummyTask(string name) : base (name, TaskNoteSupport.Multiple) {}
 		
-		#region Public Methods
 		public override void Activate ()
 		{
 			Debug.WriteLine ("DummyTask.Activate ()");
@@ -54,7 +54,6 @@ namespace Tasque.Backends.Dummy
 			Debug.WriteLine ("DummyTask.Delete ()");
 			State = TaskState.Deleted;
 		}
-		#endregion
 		
 		public override TaskNote CreateNote (string text)
 		{
diff --git a/src/Tasque.Gtk/CompletedTaskGroup.cs b/src/Tasque.Gtk/CompletedTaskGroup.cs
index 4bb5a8a..4da7c64 100644
--- a/src/Tasque.Gtk/CompletedTaskGroup.cs
+++ b/src/Tasque.Gtk/CompletedTaskGroup.cs
@@ -5,15 +5,12 @@
 //
 
 using System;
-using Gtk;
-using Mono.Unix;
-using System.Collections.ObjectModel;
 using System.Collections.Generic;
+using System.ComponentModel;
 using System.Linq;
-using System.Collections;
+using Mono.Unix;
+using Gtk;
 using CollectionTransforms;
-using System.ComponentModel;
-using System.Collections.Generic;
 
 namespace Tasque
 {
diff --git a/src/Tasque.Gtk/NoteDialog.cs b/src/Tasque.Gtk/NoteDialog.cs
index cbe2dcf..39b81f8 100644
--- a/src/Tasque.Gtk/NoteDialog.cs
+++ b/src/Tasque.Gtk/NoteDialog.cs
@@ -1,8 +1,7 @@
 // NoteDialog.cs created with MonoDevelop
 // User: boyd at 5:24 PMÂ2/13/2008
-
 using System;
-using System.Collections.Generic;
+using System.Diagnostics;
 using Mono.Unix;
 
 namespace Tasque
diff --git a/src/Tasque.Gtk/Utilities.cs b/src/Tasque.Gtk/Utilities.cs
index f4bafa6..cafeb8d 100644
--- a/src/Tasque.Gtk/Utilities.cs
+++ b/src/Tasque.Gtk/Utilities.cs
@@ -35,6 +35,7 @@
 using System;
 using Gdk;
 using Mono.Unix;
+using System.Diagnostics;
 
 namespace Tasque
 {
diff --git a/src/libtasque/Application.cs b/src/libtasque/Application.cs
index 690f83f..53c5206 100644
--- a/src/libtasque/Application.cs
+++ b/src/libtasque/Application.cs
@@ -71,7 +71,7 @@ namespace Tasque
 			try {
 				Process.Start (url);
 			} catch (Exception e) {
-				Trace.TraceError ("Error opening url [{0}]:\n{1}", url, e.ToString ());
+				Trace.TraceError ("Error opening url [{0}]:\n{1}", url, e);
 			}
 		}
 		
@@ -264,13 +264,13 @@ namespace Tasque
 			backends.AddRange (GetBackendsFromAssembly (tasqueAssembly));
 			
 			// Look through the assemblies located in the same directory as Tasque.exe.
-			Debug.WriteLine ("Tasque.exe location: {0}", tasqueAssembly.Location);
+			Debug.WriteLine ("Tasque.exe location: " + tasqueAssembly.Location);
 			
 			var loadPathInfo = Directory.GetParent (tasqueAssembly.Location);
-			Trace.TraceInformation ("Searching for Backend DLLs in: {0}", loadPathInfo.FullName);
+			Trace.TraceInformation ("Searching for Backend DLLs in: " + loadPathInfo.FullName);
 			
 			foreach (var fileInfo in loadPathInfo.GetFiles ("*.dll")) {
-				Trace.TraceInformation ("\tReading {0}", fileInfo.FullName);
+				Trace.TraceInformation ("\tReading " + fileInfo.FullName);
 				Assembly asm = null;
 				try {
 					asm = Assembly.LoadFile (fileInfo.FullName);
@@ -310,7 +310,7 @@ namespace Tasque
 				if (type.GetInterface ("Tasque.Backends.IBackend") == null)
 					continue;
 				
-				Debug.WriteLine ("Found Available Backend: {0}", type.ToString ());
+				Debug.WriteLine ("Found Available Backend: {0}", type);
 				
 				Backend availableBackend = null;
 				try {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]