프로그램 아이콘 적용.

프로그램 시작시 clientexe 교체 오류로 인해, 바로 종료되는 현상 수정.
복본조사 화면을  old 와 new 로 분리 함.
This commit is contained in:
SeungHo Yang
2025-07-28 22:26:57 +09:00
parent 6cd5ab6f1c
commit 5949e3e7a1
6 changed files with 50 additions and 34 deletions

View File

@@ -105,10 +105,43 @@ namespace WindowsFormsApp1
SetBtnName();
}
catch (Exception ex) { MessageBox.Show(ex.ToString()); }
UpdaterCheck();
}
/// <summary>
/// factory client update checkd
/// </summary>
static void UpdaterCheck()
{
var fi = new System.IO.FileInfo("_Factory_Client.exe");
var fio = new System.IO.FileInfo("Factory_Client.exe");
if (fi.Exists)
{
if (fio.Exists == false)
{
fi.CopyTo(fio.FullName);
fio.LastWriteTime = fi.LastWriteTime;
fio.LastAccessTime = fi.LastAccessTime;
}
else
{
//check size
if (fi.Length != fio.Length || fi.LastWriteTime != fio.LastWriteTime)
{
fi.CopyTo(fio.FullName, true);
fio.LastWriteTime = fi.LastWriteTime;
fio.LastAccessTime = fi.LastAccessTime;
}
}
Console.WriteLine("updater patch");
}
}
#region
public void SetBtnName()
@@ -224,7 +257,7 @@ namespace WindowsFormsApp1
"마크통계", "장비관리" };
ToolStripMenuItem[] MarcT = {
, , , , iSBN조회, , , ,
, 1, dLS복본조사, , ,
, 1, 2, dLS복본조사, , ,
, , DLS조회, ,
,
};

View File

@@ -17,8 +17,15 @@ namespace WindowsFormsApp1
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//AR.UTIL.MsgE("unitmarc");
DB_InitSetting();
UpdaterCheck();
try
{
DB_InitSetting();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
Application.Run(new Main());
}
@@ -28,34 +35,6 @@ namespace WindowsFormsApp1
/// <summary>
/// factory client update checkd
/// </summary>
static void UpdaterCheck()
{
var fi = new System.IO.FileInfo("_Factory_Client.exe");
var fio = new System.IO.FileInfo("Factory_Client.exe");
if (fi.Exists)
{
if (fio.Exists == false)
{
fi.CopyTo(fio.FullName);
fio.LastWriteTime = fi.LastWriteTime;
fio.LastAccessTime = fi.LastAccessTime;
}
else
{
//check size
if(fi.Length != fio.Length || fi.LastWriteTime != fio.LastWriteTime)
{
fi.CopyTo(fio.FullName,true);
fio.LastWriteTime = fi.LastWriteTime;
fio.LastAccessTime = fi.LastAccessTime;
}
}
Console.WriteLine("updater patch");
}
}
static void DB_InitSetting()
{
UniMarc.Properties.Settings.Default.IP = ConvertIP(UniMarc.Properties.Settings.Default.IP);

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
// 기본값으로 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.187.1")]
[assembly: AssemblyFileVersion("1.0.187.1")]
[assembly: AssemblyVersion("1.0.187.3")]
[assembly: AssemblyFileVersion("1.0.187.3")]

View File

@@ -74,6 +74,9 @@
<PropertyGroup>
<ManifestKeyFile>UniMarc_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>UniMarc.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="AngleSharp, Version=1.0.4.0, Culture=neutral, PublicKeyToken=e83494dcdc6d31ea, processorArchitecture=MSIL">
<HintPath>..\packages\AngleSharp.1.0.4\lib\net472\AngleSharp.dll</HintPath>
@@ -1920,6 +1923,7 @@
<None Include="Resources\0_Empty.png" />
</ItemGroup>
<ItemGroup>
<Content Include="UniMarc.ico" />
<None Include="Connected Services\BaroService_TI\configuration91.svcinfo" />
<None Include="Connected Services\BaroService_TI\configuration.svcinfo" />
<None Include="Connected Services\BaroService_TI\Reference.svcmap">

BIN
unimarc/unimarc/UniMarc.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB