public void setSplits(OoSSettings settings) { splits = new InfoList(); splits.AddRange(DefaultInfo.BaseSplits); foreach (var _setting in settings.CheckedSplits) { if (!_setting.isEnabled) splits.Remove(splits[_setting.Name]); } }
public OoSSettings() { InitializeComponent(); this.lblVersion.Text = "v" + Assembly.GetExecutingAssembly().GetName().Version.ToString(3); this.treeView1.DrawMode = TreeViewDrawMode.OwnerDrawAll; this.treeView1.DrawNode += new DrawTreeNodeEventHandler(treeView1.tree_DrawNode); AutoStartTimer = false; AutoSelectFile = false; AutoReset = false; CheckedSplits = new InfoList(); foreach (var _split in DefaultInfo.BaseSplits) { CheckedSplits.Add(new Info(_split.Name, false)); } }