public Group(string name, int width, List <Shortcut> shortcutList, BackgroundOption selectedBackgroundOption, string backgroundColor, int opacity) { Name = name; Width = width; ShortcutList = shortcutList; SelectedBackgroundOption = selectedBackgroundOption; BackgroundColor = backgroundColor; Opacity = opacity; }
public TableDescription(String name, String text, String tablename, String uniqueID, int amount = 1) : base(name, text) { Name = name; Text = text; TableName = tablename; Entries = new List <TableEntry>(); UniqueID = uniqueID; Amount = amount; BackgroundOption = BackgroundOption.None; }
public Group(string path) { // Use application's absolute path; (grabs the .exe) // Get the GroupConfigs file string fullPath = $@"{path}\GroupConfigs.xml"; XmlSerializer reader = new XmlSerializer(typeof(Group)); using (StreamReader file = new StreamReader(fullPath)) { Group group = (Group)reader.Deserialize(file); Name = group.Name; Width = group.Width; ShortcutList = group.ShortcutList; SelectedBackgroundOption = group.SelectedBackgroundOption; BackgroundColor = group.BackgroundColor; Opacity = group.Opacity; } }