tasque r147 - in trunk: . src/Backends/Hiveminder
- From: jjohnny svn gnome org
- To: svn-commits-list gnome org
- Subject: tasque r147 - in trunk: . src/Backends/Hiveminder
- Date: Wed, 15 Oct 2008 14:49:12 +0000 (UTC)
Author: jjohnny
Date: Wed Oct 15 14:49:12 2008
New Revision: 147
URL: http://svn.gnome.org/viewvc/tasque?rev=147&view=rev
Log:
Hiveminder Backend : Cleaned up redundant code. Use Path.PathSeperator in file path construction
Modified:
trunk/ChangeLog
trunk/src/Backends/Hiveminder/HmBackend.cs
trunk/src/Backends/Hiveminder/HmTask.cs
Modified: trunk/src/Backends/Hiveminder/HmBackend.cs
==============================================================================
--- trunk/src/Backends/Hiveminder/HmBackend.cs (original)
+++ trunk/src/Backends/Hiveminder/HmBackend.cs Wed Oct 15 14:49:12 2008
@@ -67,7 +67,8 @@
public event BackendSyncFinishedHandler BackendSyncFinished;
private static string credentialFile = System.IO.Path.Combine (
- Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "tasque/hm");
+ Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "tasque" + Path.DirectorySeparatorChar + "hm");
+
public HmBackend ()
{
Modified: trunk/src/Backends/Hiveminder/HmTask.cs
==============================================================================
--- trunk/src/Backends/Hiveminder/HmTask.cs (original)
+++ trunk/src/Backends/Hiveminder/HmTask.cs Wed Oct 15 14:49:12 2008
@@ -173,27 +173,18 @@
#region Constructors
- public HmTask ()
+ public HmTask () : this (new Task())
{
- this.task = new Task();
-
- //Add Description as note.
- this.notes = null;
- if (!string.IsNullOrEmpty (this.task.Description)) {
- this.notes = new List<INote>();
- HmNote hmnote = new HmNote (this.task.Description);
- notes.Add (new HmNote (this.task.Description));
- }
}
public HmTask (Hiveminder.Task task)
{
this.task = task;
+ //Add Description as note.
this.notes = null;
if (!string.IsNullOrEmpty (this.task.Description)) {
this.notes = new List<INote>();
- HmNote hmnote = new HmNote (this.task.Description);
notes.Add (new HmNote (this.task.Description));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]