Пример #1
0
 public Settings(SerializationInfo info, StreamingContext context)
 {
     if (eqalizer == null)
         eqalizer = new EqualizerSettings();
     LastSessionKey = (string)info.GetValue("LastSess",typeof(string));
     VKToken = (string)info.GetValue("VKToken", typeof(string));
     UserId = (string)info.GetValue("VKId", typeof(string));
     EnableVKBroadcast = (bool)info.GetValue("EnableVKBroadcast", typeof(bool));
     EnableRepeating = (bool)info.GetValue("EnableRepeating", typeof(bool));
     EnableShuffling = (bool)info.GetValue("EnableShuffling", typeof(bool));
     EnableViewPlaylist = (bool)info.GetValue("EnableViewPlaylist", typeof(bool));
     VolumeLevel = (double)info.GetValue("VolumeLevel", typeof(double));
     for (int i = 0; i < 12; i++)
         eqalizer._vlEQ[i] = (float)info.GetValue("EQ"+i, typeof(float));
 }
Пример #2
0
 public Settings()
 {
     if (eqalizer==null)
     eqalizer = new EqualizerSettings();
 }