public ActionResult Stop(ServerStatus Status) { var model = ServerStatus.KillAll(); model.StartVisible = Status.StartVisible; return(View("Index", model)); }
public ActionResult Disable(ServerStatus Status) { Status.IsDisabled = true; var model = ServerStatus.KillAll(); model.StartVisible = Status.StartVisible; return(View("Index", model)); }
public ActionResult EmptyLog(ServerStatus Status) { ServerStatus.KillAll(); try { if (System.IO.File.Exists(Options.LogFile)) { System.IO.File.Delete(Options.LogFile); } } catch { } ServerStatus.Start(Status.StartVisible); var model = new ServerStatus(); model.StartVisible = Status.StartVisible; return(View("Index", model)); }