private void SetServerOperationMode(StartupArgumentInfo info, string[] args) { ServerOperationMode mode = args.Length == 0 ? ServerOperationMode.None : Enum.Parse <ServerOperationMode>(args[0], true); Logger.Log(LogType.Log, "New Server Mode: " + mode, 1); Program.Settings.SetOperationMode(mode); }
internal bool HasFlag(ServerOperationMode mode) { return((OperationMode & mode) != 0); }
public void SetOperationMode(ServerOperationMode mode) { OperationMode = mode; }