Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KTechDev4213 committed Apr 1, 2022
1 parent a415ead commit aa42fcf
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 14 deletions.
7 changes: 5 additions & 2 deletions QuietCopy/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ internal class Program
private static string destPath;
static void Main(string[] args)
{
if (args[0] == "--edit"||args[0] == "-e")
if (args.Length != 0)
{
Application.Run(new SettingsMan());
if (args[0] == "--settings" || args[0] == "-s")
{
Application.Run(new SettingsMan());
}
}
//check if registry need to be edited
if(Settings.Default.setUp == false)
Expand Down
6 changes: 5 additions & 1 deletion QuietCopy/QuietCopy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ErrorReportUrl>http://localhost:8080/</ErrorReportUrl>
<PublisherName>Ktechdev</PublisherName>
<SuiteName>AutoWork</SuiteName>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>inst.html</WebPage>
<AutorunEnabled>true</AutorunEnabled>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationRevision>2</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
Expand Down
24 changes: 14 additions & 10 deletions QuietCopy/SettingsMan.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 37 additions & 1 deletion QuietCopy/SettingsMan.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using QuietCopy.Properties;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
Expand All @@ -15,6 +16,7 @@ public partial class SettingsMan : Form
public SettingsMan()
{
InitializeComponent();
load();
}

private void specYes_CheckedChanged(object sender, EventArgs e)
Expand All @@ -25,5 +27,39 @@ private void specYes_CheckedChanged(object sender, EventArgs e)
label3.Enabled = true;
}
}
void save()
{

}
void load()
{
Settings.Default.destDir = destDirTbox.Text;
}

private void okBut_Click(object sender, EventArgs e)
{
save();
Close();
}

private void cancelBut_Click(object sender, EventArgs e)
{
Close();
}

private void saveBut_Click(object sender, EventArgs e)
{
save();
}

private void destDirBut_Click(object sender, EventArgs e)
{
FolderBrowserDialog dialog = new FolderBrowserDialog();
dialog.RootFolder = Environment.SpecialFolder.MyVideos;
if(dialog.ShowDialog() == DialogResult.OK)
{
destDirTbox.Text = dialog.SelectedPath;
}
}
}
}

0 comments on commit aa42fcf

Please sign in to comment.