Skip to content

Commit

Permalink
完成
Browse files Browse the repository at this point in the history
  • Loading branch information
matanki-saito committed Jul 28, 2019
1 parent 8dc31f9 commit 7a565c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
16 changes: 8 additions & 8 deletions claes/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ private void DownloadChanged(object sender, DownloadProgressChangedEventArgs e)
MyWebClient w = (MyWebClient)sender;

uiThread.Invoke(new Action<long, long>(delegate (long totalBytes, long byteRec) {
dView.Progress.Text = byteRec + "byte" + "/" + totalBytes + "byte";
dView.Progress.Text = byteRec + "/" + totalBytes + " byte";

if (!uiThread.viewLatch)
if (!uiThread.ViewLatch)
{
uiThread.ShowInTaskbar = true;
uiThread.WindowState = FormWindowState.Normal;
uiThread.viewLatch = true;
uiThread.ViewLatch = true;
}

if (totalBytes <= byteRec) return;
Expand Down Expand Up @@ -169,12 +169,12 @@ internal class MainWindow : Form
private ConcurrentDictionary<string, string> keyFilePath2Md5;
private List<DownloadView> downloadViews;
private ConcurrentDictionary<string, Cache> cacheDict;
public bool viewLatch { get; set; }
public string[] cmds { get; set; }
public bool ViewLatch { get; set; }
public string[] Cmds { get; set; }

public MainWindow()
{
viewLatch = false;
ViewLatch = false;
SetUp();
Shown += FormShow;
}
Expand Down Expand Up @@ -260,7 +260,7 @@ private IEnumerable<string> Validaton()
private void SetUp()
{
// オプション取得
cmds = System.Environment.GetCommandLineArgs();
Cmds = System.Environment.GetCommandLineArgs();

// exeのあるディレクトリを基準とする
currentDirectory = Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName;
Expand Down Expand Up @@ -330,7 +330,7 @@ private void SetUp()
});

// アンインストールモード
if (Array.IndexOf(cmds, "/uninstall-all") != -1)
if (Array.IndexOf(Cmds, "/uninstall-all") != -1)
{
UninstallMods(keyDict.Keys, true);
}
Expand Down
1 change: 0 additions & 1 deletion claes/claes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Cache.cs" />
<Compile Include="DownloadFileTaskAsync.cs" />
<Compile Include="MyWebClient .cs">
<SubType>Component</SubType>
</Compile>
Expand Down

0 comments on commit 7a565c2

Please sign in to comment.