Exemplo n.º 1
0
        public ActionResult Start(ServerStatus Status)
        {
            var model = ServerStatus.Start(Status.StartVisible);

            model.StartVisible = Status.StartVisible;
            return(View("Index", model));
        }
Exemplo n.º 2
0
        public ActionResult Enable(ServerStatus Status)
        {
            Status.IsDisabled = false;
            var model = ServerStatus.Start(Status.StartVisible);

            model.StartVisible = Status.StartVisible;
            return(View("Index", model));
        }
Exemplo n.º 3
0
        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));
        }