You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Mesnac.Action.Base;
|
|
using System.Windows.Forms;
|
|
using Mesnac.Basic;
|
|
using Mesnac.Gui.Workbench;
|
|
|
|
namespace Mesnac.Action.Feeding.Qingquan.Sys
|
|
{
|
|
/// <summary>
|
|
/// 设置为单机运行方式
|
|
/// </summary>
|
|
public class SetLocalRunAction : FeedingAction, IAction
|
|
{
|
|
public void Run(RuntimeParameter runtime)
|
|
{
|
|
base.RunIni(runtime);
|
|
if (MessageBox.Show(Language(40), Language(1), MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
|
{
|
|
runtime.IsReturn = true;
|
|
return;
|
|
}
|
|
RunSchema.Instance.UpdateNodeValueToRunSchema("NetType", "0"); //设为单机方式运行
|
|
//操作成功,请重新启动系统,以使设置生效!
|
|
if (MessageBox.Show(Language(42), Language(1), MessageBoxButtons.OK, MessageBoxIcon.Information) == DialogResult.OK)
|
|
{
|
|
WorkbenchSingleton.Workbench.CloseFlag = true;
|
|
WorkbenchSingleton.Workbench.Exit();
|
|
}
|
|
}
|
|
}
|
|
}
|