public ConsoleSettings(string Name = "Game Console", string ColorID = "#505055", int NumberID = 0, bool EditEnabled = false) { this.Name = Name; this.ColorID = ColorID; this.NumberID = NumberID; this.EditEnabled = EditEnabled; Properties = new ConsoleProperties(); }
public void CopyFrom(ConsoleProperties inputSettings) { try { EndTime = inputSettings.EndTime; PrePaid = inputSettings.PrePaid; PrePaidTime = inputSettings.PrePaidTime; StartTime = inputSettings.StartTime; Status = inputSettings.Status; TimeElapsed = inputSettings.TimeElapsed; TotalConsumption = inputSettings.TotalConsumption; } catch (Exception e) { MessageLogManager.LogMessage("PBM - CP ::::> Error copy failed: " + e.Message); } }