Skip to content

Commit

Permalink
Enhancements and Fixes (#6)
Browse files Browse the repository at this point in the history
* Enhancements and Fixes
- Added column for file size and file date
- Fixed handling with timestamps in FTP transfers (UTC), adjustment of year
- Added marker, if file is not using UUID plus .yyyyMM as filename
- Added button to delete file on MS and local file system
- Added button to konvert a file (not ready yet)
- Fixed calcuation for modification date when file list is retrieved from MS via FTP
  - handle Feb 29 correctly
  - translate from UTC to local time
- Added tooltip for potentially malformed statistics filename
- Stability improvements
- At start the window size in main window is restored to previous settings
- Enhancements in tool tip messages to explain columns
  • Loading branch information
Jan21493 authored Jan 26, 2025
1 parent 0dd6c9d commit cc87812
Show file tree
Hide file tree
Showing 12 changed files with 677 additions and 71 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
bin/
obj/
TestData/
.vs/
.vs/
.DS_Store
18 changes: 18 additions & 0 deletions App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="LoxStatEdit.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<userSettings>
<LoxStatEdit.Properties.Settings>
<setting name="WindowPosition" serializeAs="String">
<value>0, 0, -1, -1</value>
</setting>
<setting name="IsMaximized" serializeAs="String">
<value>False</value>
</setting>
<setting name="IsSettingsUpgradeRequired" serializeAs="String">
<value>True</value>
</setting>
</LoxStatEdit.Properties.Settings>
</userSettings>
</configuration>
11 changes: 10 additions & 1 deletion LoxStatEdit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Include="SortableBindingList.cs" />
<EmbeddedResource Include="MiniserverForm.resx">
<DependentUpon>MiniserverForm.cs</DependentUpon>
Expand All @@ -88,6 +93,10 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Content Include="favicon.ico" />
Expand All @@ -100,4 +109,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>
6 changes: 6 additions & 0 deletions LoxStatFileForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,12 @@ private static DialogResult ShowInputDialog(ref string input, Form parentForm)

private void MainForm_Load(object sender, EventArgs e)
{
// if not remote desktop session then enable double-buffering optimization
if (!System.Windows.Forms.SystemInformation.TerminalServerSession)
{
typeof(DataGridView).InvokeMember("DoubleBuffered", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.SetProperty, null, _dataGridView, new object[] { true });
}

if((_args != null) && (_args.Length > 0))
{
_fileNameTextBox.Text = _args[0];
Expand Down
111 changes: 96 additions & 15 deletions MiniserverForm.Designer.cs

Large diffs are not rendered by default.

Loading

0 comments on commit cc87812

Please sign in to comment.