private void TreeViewCheck(TreeViewEventArgs e) { if (e.Node.Level == 0) { if (e.Node.Nodes.Count > 0) { foreach (TreeNode node in e.Node.Nodes) { node.Checked = e.Node.Checked; } } } if (e.Node.Level > 0) { SettingsUtilities.SetPropertyValue(InterruptSettings.Instance, e.Node.Checked, (int)e.Node.Tag); var value = InterruptDictionary[(int)e.Node.Tag]; var updateValue = new Tuple <bool, string, string, string>(e.Node.Checked, value.Item2, value.Item3, value.Item4); InterruptDictionary[(int)e.Node.Tag] = updateValue; PaladinCR.InterruptDict[(int)e.Node.Tag] = updateValue; } }
public Dictionary <int, Tuple <bool, string, string, string> > CleaseDictionary() { return(SettingsUtilities.GetPropertyDictionary(this)); }