public FormTimerGlobalSettings(FormTimers formTimers) { _formTimers = formTimers; InitializeComponent(); checkBoxWidgetView.Checked = _formTimers.WidgetModeEnabled; textBoxWidgetSample.BackColor = _formTimers.WidgetBgColor; textBoxWidgetSample.ForeColor = _formTimers.WidgetForeColor; }
public FormChooseTimers(HashSet<WurmTimerDescriptors.TimerType> availableTypes, FormTimers parent) : this() { parentForm = parent; foreach (var type in availableTypes) { checkedListBox1.Items.Add(type); } }
public override void Initialize() { base.Initialize(); Settings = new PersistentObject<TimersSettings>(new TimersSettings()); Settings.FilePath = Path.Combine(this.ModuleDataDir, "settings.xml"); if (!Settings.Load()) { Settings.Save(); } WurmTimerDescriptors.RemovedCustomTimer += WurmTimerDescriptors_RemovedCustomTimer; ModuleUI = new FormTimers(this); WurmTimerDescriptors.LoadCustomTimers(Path.Combine(this.ModuleDataDir, "customTimers.xml")); foreach (string player in Settings.Value.ActivePlayers) { AddNewPlayerGroup(player); } }