public chain_path(MFrm frm) { mainForm = frm; cmdSensorGraphics = new StringBuilder(); path = new List <string>(); path_Objs = new List <STKObject>(); colorIndex = 0; }
public CSimulationManager(MFrm fm) { view = fm; // Initialize the federation execution federation = new RACoN.Federation.CFederationExecution(); federation.FederationExecutionName = "CoSimulationSystem"; federation.FDD = @".\CoSimulationSystem.fed"; // Initialize the application-specific federate federate = new CSTK_demonstration(this); }
public STKScenObjs(MFrm it) { view = it; this.stkObjs = new List <STKObject>(); all_path = new List <chain_path>(); //保存全部的在线业务流 LJ_sensorFilePath = Directory.GetCurrentDirectory() + "\\演示单元模型库\\Sensor0.sn"; LineTargets = new List <string>(); stkcities = new List <City>(); msglist = new List <Msg>(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new Form1());//已被while替换,为了能处理RTI的消息 MFrm frm = new MFrm(); frm.Show(); System.Threading.Thread.CurrentThread.Name = "MainThread"; while (frm.Created) { if (frm.simulation != null) { frm.DoSimulation(); } Application.DoEvents(); System.Threading.Thread.Sleep(20);//important!防止while循环占用CPU过高 } }
/// <summary> /// 构造函数,在mainfrm load的时候调用 /// </summary> public excelhelp(MFrm it) { view = it; filepath = Directory.GetCurrentDirectory() + "\\path.csv"; }
public chain_pathex(MFrm it) : base(it) { }
public ShowUsers(MFrm it) { view = it; InitializeComponent(); }
public Django(MFrm fm) { view = fm; InitializeComponent(); }
public wincmd(MFrm view) { father = view; InitializeComponent(); }