FileWork update

This commit is contained in:
2021-07-20 20:31:27 +03:00
parent 2fc547a117
commit ac9ef98cf9
17 changed files with 774 additions and 68 deletions

View File

@@ -1,9 +1,9 @@
using DTLib;
using System;
using System.IO;
using System.Net.Sockets;
using System.Text;
using System.Windows;
using static DTLib.Filework;
namespace dtlauncher_client_win
{

View File

@@ -1,10 +1,10 @@
using DTLib;
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Windows;
using static DTLib.Filework;
namespace dtlauncher_client_win
{
@@ -23,11 +23,11 @@ namespace dtlauncher_client_win
{
InitializeComponent();
LogBox.Text = " \n"; // костыль для работы Log()
Filework.Directory.Create("logs");
Filework.Directory.Create("downloads");
Filework.Directory.Create("installed");
Filework.Directory.Create("installscripts");
Filework.Directory.Create("launchinfo");
Directory.Create("logs");
Directory.Create("downloads");
Directory.Create("installed");
Directory.Create("installscripts");
Directory.Create("launchinfo");
PublicLog.Log += Log;
LoginButton.Click += Login;
RegisterButton.Click += Register;
@@ -122,7 +122,7 @@ namespace dtlauncher_client_win
public void Log(string msg)
{
if (LogBox.Text[LogBox.Text.Length - 1] == '\n') msg = "[" + DateTime.Now.ToString() + "]: " + msg;
Filework.LogToFile(logfile, msg);
LogToFile(logfile, msg);
LogBox.Text += msg;
}

View File

@@ -107,14 +107,14 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\dtscript\dtscript.csproj">
<Project>{e02ea967-fd29-47d2-b25b-ba684b784aee}</Project>
<Name>dtscript</Name>
</ProjectReference>
<ProjectReference Include="..\DTLib\DTLib.csproj">
<Project>{ce793497-2d5c-42d8-b311-e9b32af9cdfb}</Project>
<Name>DTLib</Name>
</ProjectReference>
<ProjectReference Include="..\dtscript\dtscript.csproj">
<Project>{e02ea967-fd29-47d2-b25b-ba684b784aee}</Project>
<Name>dtscript</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Resource Include="logo-D.ico" />