void OnApplicationPause(bool pauseStatus) { if (pauseStatus) { PairList.Save(); } }
private void SaveTunerDef() { PairList pairList = this.tunerDef; pairList.Clear(); IEnumerator enumerator = this.tunerBox.Nodes.GetEnumerator(); try { while (enumerator.MoveNext()) { string[] array = ((TreeNode)enumerator.Current).Text.Split(new char[] { '=' }); pairList[array[0]] = array[1]; } } finally { IDisposable disposable = enumerator as IDisposable; if (disposable != null) { disposable.Dispose(); } } pairList.Save(); }
public static void Save() { PairList.Save(); }