fyf 2 lat temu
rodzic
commit
9f4b3e20f8
3 zmienionych plików z 24 dodań i 1 usunięć
  1. +2
    -0
      BPASmartClient.ScreenLib/AppMain.cs
  2. +20
    -0
      BPASmartClient.ScreenLib/Helper/Main.cs
  3. +2
    -1
      BPASmartClient.ScreenSplitMeals/App.config

+ 2
- 0
BPASmartClient.ScreenLib/AppMain.cs Wyświetl plik

@@ -89,6 +89,8 @@ namespace BPASmartClient.ScreenLib

}
}

Main.GetInstance.StartServer();
#region 不需要代码
//foreach (System.Windows.Forms.Screen scr in System.Windows.Forms.Screen.AllScreens)
//{


+ 20
- 0
BPASmartClient.ScreenLib/Helper/Main.cs Wyświetl plik

@@ -7,6 +7,7 @@ using Newtonsoft.Json;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
@@ -161,6 +162,25 @@ namespace BPASmartClient.ScreenLib
MessageLog.GetInstance.ShowEx($"{Name}:MQTT或者Redis启动时,连接失败,原因:{ex.Message}");
}
}

/// <summary>
///
/// </summary>
public void StartServer()
{
try
{
string path = System.Configuration.ConfigurationManager.AppSettings["StartServer"].ToString();
if (System.IO.File.Exists(path))
{
Process.Start(path);
}
}
catch (Exception ex)
{

}
}
/// <summary>
/// 停止服务
/// </summary>


+ 2
- 1
BPASmartClient.ScreenSplitMeals/App.config Wyświetl plik

@@ -8,7 +8,8 @@
<add key="GgAdder" value="https://stream7.iqilu.com/10339/upload_transcode/202002/18/20200218114723HDu3hhxqIT.mp4"/>
<add key="SaasRoute" value="https://witt.black-pa.com/kitchen/api/StoreHelper/GeBasisGateList?StoreId=0c32b2e2-0dc9-4941-b73d-3dc91f7268ab"/>
<!--显示窗体:0 广告 1 地球-->
<add key="ShowForm" value="0"/>
<add key="ShowForm" value="1"/>
<add key="StartServer" value="D:\fengyoufu\代码\Code\C#项目\收银系统\Pos\bin\Debug\net6.0-windows\黑菠萝收银系统.exe"/>
<!--<add key="一号屏" value="0"/>
<add key="二号屏" value="1"/>
<add key="三号屏" value="2"/>-->


Ładowanie…
Anuluj
Zapisz