Skip to content

Commit

Permalink
finished work for today. should work just fine.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidlemon committed May 2, 2016
1 parent a7331a3 commit 5dc0039
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 6 deletions.
14 changes: 13 additions & 1 deletion PraiseTheSave/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,14 @@ public void refreshInfo()
{
string backupDir = PraiseTheSave.Properties.Settings.Default.SaveLocation;
backupFolderLabel.Text = backupDir;
backupFolderSizeLabel.Text =
if (Directory.Exists(backupDir))
{
backupFolderSizeLabel.Text =
"Size of the backup folder is " +
(DirSize(new DirectoryInfo(backupDir)) / 1024.0 / 1024.0).ToString("0.00")
+ "Mb";
}


saveAmountInput.Value = PraiseTheSave.Properties.Settings.Default.SaveAmount;
saveIntervalInput.Value = PraiseTheSave.Properties.Settings.Default.SaveInterval;
Expand Down Expand Up @@ -177,6 +181,14 @@ public void doBackup(object sender, EventArgs e)
string ds3destination = PraiseTheSave.Properties.Settings.Default.SaveLocation + @"\ds3\";


if (!Directory.Exists(PraiseTheSave.Properties.Settings.Default.SaveLocation))
{
Directory.CreateDirectory(PraiseTheSave.Properties.Settings.Default.SaveLocation);
}




string ds1save = PraiseTheSave.Properties.Settings.Default.ds1location;
if (Directory.Exists(ds1save))
{
Expand Down
34 changes: 29 additions & 5 deletions PraiseTheSave/PraiseTheSave.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,24 @@
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<PublishUrl>publish\</PublishUrl>
<IsWebBootstrapper>true</IsWebBootstrapper>
<PublishUrl>C:\Users\dkrei\Desktop\PraiseTheSave\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<InstallFrom>Web</InstallFrom>
<UpdateEnabled>true</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<InstallUrl>https://github.com/lucidlemon/PraiseTheSave/</InstallUrl>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>publish.htm</WebPage>
<ApplicationRevision>1</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand All @@ -47,6 +51,22 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>5C3C8CB2FB7D07BE15A83574C2DB49C482F18B09</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>PraiseTheSave_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>true</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>true</SignManifests>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>sunbro_logo.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup />
<ItemGroup>
<Reference Include="Ionic.Zip, Version=1.9.8.0, Culture=neutral, PublicKeyToken=6583c7c814667745, processorArchitecture=MSIL">
<HintPath>..\packages\DotNetZip.1.9.8\lib\net20\Ionic.Zip.dll</HintPath>
Expand Down Expand Up @@ -86,6 +106,7 @@
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="packages.config" />
<None Include="PraiseTheSave_TemporaryKey.pfx" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
Expand All @@ -111,6 +132,9 @@
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<Content Include="sunbro_logo.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
Binary file added PraiseTheSave/sunbro_logo.ico
Binary file not shown.

0 comments on commit 5dc0039

Please sign in to comment.