private int InitFrame() { int rlt = 0; mm = new ManageMod(); //mm.SetCfgPath("E:\\test\\FrameWork\\FrameWork\\config\\test\\Frame"); mm.SetCfgPath("E:\\test\\FrameWork\\WinApp\\config\\Test\\Land"); mm.Start(); Thread.Sleep(1000); return rlt; }
private void Start_Click(object sender, EventArgs e) { mm = new ManageMod(); mm.SetCfgPath(cfgpath); if (status == false) { status = true; Runsts.Text = "Running"; Start.Text = "Stop"; mm.Start(); } else { status = false; Runsts.Text = "Halt"; Start.Text = "Strt"; } }