You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.7 KiB
78 lines
2.7 KiB
using MorClient;
|
|
using MorClient.UserControls;
|
|
using RS.Module.Common;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using WindowsFormsApp1.UserControls;
|
|
|
|
namespace MorClient
|
|
{
|
|
public static class PubStaticClass
|
|
{
|
|
public static Homepage homepage = new Homepage();
|
|
|
|
public static UnitHandact unitHandact = new UnitHandact();
|
|
|
|
public static Supcontrol_DI supcontrol_DI = new Supcontrol_DI();
|
|
public static Supcontrol_DO supcontrol_DO = new Supcontrol_DO();
|
|
public static Initialize initialize = new Initialize();
|
|
public static UnitRobot unitRobot = new UnitRobot();
|
|
public static Settings settings = new Settings();
|
|
public static Alarm alarm = new Alarm();
|
|
|
|
public static FormulaUnit formulaUnit = new FormulaUnit();
|
|
//PublicPara publicPara = new PublicPara();
|
|
/// <summary>
|
|
/// 主页线程
|
|
/// </summary>
|
|
public static bool bthreed = false;
|
|
/// <summary>
|
|
/// SCR线程
|
|
/// </summary>
|
|
public static bool bthreedSCR = false;
|
|
public static DateTime date1;
|
|
/// <summary>
|
|
/// DI线程是否启动
|
|
/// </summary>
|
|
public static bool bthreedDI = false;
|
|
public static bool bthreedDO = false;
|
|
/// <summary>
|
|
/// 初始化线程
|
|
/// </summary>
|
|
public static bool bthreedInitialize = false;
|
|
public static bool bthreedunitRobot = false;
|
|
public static bool bthreedtSettings = false;
|
|
public static bool bthreedAlarm = false;
|
|
|
|
//public static int threedSleepTime1 = 200;
|
|
//public static int threedSleepTime2 = 200;
|
|
//public static int threedSleepTime3 = 200;
|
|
//public static int threedSleepTime4 = 200;
|
|
//public static int threedSleepTime5 = 200;
|
|
//public static int threedSleepTime6 = 200;
|
|
//public static int threedSleepTime7 = 200;
|
|
//public static int threedSleepTime8 = 200;
|
|
|
|
//客户端主框架
|
|
public static FrmMainFrame pubMainFrameObject;
|
|
public static void homepageLoad()
|
|
{
|
|
//if (PublicPara.twoFunctionButtons != "[主页]")
|
|
{
|
|
FrmMainFrame.CreatOperatorContent("操作-主页");
|
|
new PublicPara().GetTwoFunctionButtons("[主页]");
|
|
PublicPara.pubMainFrameObject.SetNowTwoPage("[主页]");
|
|
|
|
homepage.Dock = DockStyle.Fill;
|
|
PublicPara.pubMainFrameObject.plMain.Controls.Clear();
|
|
PublicPara.pubMainFrameObject.plMain.Controls.Add(homepage);
|
|
PublicPara.pubMainFrameObject.plMain.Show();
|
|
}
|
|
}
|
|
}
|
|
}
|