示例#1
0
 void OnApplicationPause(bool pauseStatus)
 {
     if (pauseStatus)
     {
         PairList.Save();
     }
 }
示例#2
0
        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();
        }
示例#3
0
 public static void Save()
 {
     PairList.Save();
 }