private void StopServer() { Server.StopServer(); Server = null; (this as IController).ServerStateChanged(Utils.ServerState.STOPED); ServerStarted = false; ServerIPAddress.IsReadOnly = false; ServerIPPort.IsReadOnly = false; FileRootPath.IsReadOnly = false; InfoRootPath.IsReadOnly = false; RootSelectButton.IsEnabled = true; InfoSelectButton.IsEnabled = true; StartServerButton.Content = "启动服务"; }