Skip to content

Commit

Permalink
Fixes #45
Browse files Browse the repository at this point in the history
Move DiskInfo class
  • Loading branch information
takuya-takeuchi committed Dec 23, 2015
1 parent 5101c19 commit 531d562
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 23 deletions.
20 changes: 2 additions & 18 deletions source/RedArmory/Models/BackupModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ protected override void ExecuteSelectDirectory()
this.Directory = dlg.FileName;
this._Configuration.DefaultDestionation = this.Directory;
this.UpdateDiskSpace();

this.RaiseCanExecuteBackupRestoreChanged();
}
}
}
Expand Down Expand Up @@ -174,27 +176,9 @@ private void UpdateDiskSpace()
}
}

private void UpdateStatus()
{
}

#endregion

#endregion

public class DiskInfo
{
public string Category
{
get; set;
}

public long Number
{
get; set;
}
}

}

}
6 changes: 1 addition & 5 deletions source/RedArmory/Models/BackupRestoreModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,18 +233,14 @@ public bool Themes

#region ヘルパーメソッド

private void RaiseCanExecuteBackupRestoreChanged()
protected void RaiseCanExecuteBackupRestoreChanged()
{
if (this.Command != null)
{
this.Command.RaiseCanExecuteChanged();
}
}

protected void UpdateStatus()
{
}

#endregion

#endregion
Expand Down
22 changes: 22 additions & 0 deletions source/RedArmory/Models/DiskInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
namespace RedArmory.Models
{

/// <summary>
/// ディスクの特定のカテゴリのサイズを表します。このクラスは継承できません。
/// </summary>
public sealed class DiskInfo
{

public string Category
{
get; set;
}

public long Number
{
get; set;
}

}

}
1 change: 1 addition & 0 deletions source/RedArmory/RedArmory.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
<Compile Include="Models\AcknowledgmentModel.cs" />
<Compile Include="Models\BackupRestoreModel.cs" />
<Compile Include="Models\ConfigurationService.cs" />
<Compile Include="Models\DiskInfo.cs" />
<Compile Include="Models\ProgressState.cs" />
<Compile Include="Models\ResourceService.cs" />
<Compile Include="Models\RestoreModel.cs" />
Expand Down

0 comments on commit 531d562

Please sign in to comment.