示例#1
0
 public Form1()
 {
     InitializeComponent();
     CommonInterface.Link1 = this;
     CommonInterface.SetFileFilter();
     Audio.InitAudio(Audio.HZ);
     comboBox1.SelectedIndex = Properties.Settings.Default.RepeatMode;
     checkBox1.Checked       = Properties.Settings.Default.RandomMode;
     colorSlider2.Value      = Properties.Settings.Default.Volume;
     checkBox2.Checked       = Properties.Settings.Default.SoundOff;
     CommonInterface.Volume  = Properties.Settings.Default.Volume2;
     Audio.Volume            = colorSlider2.Value;
 }
示例#2
0
 public Form1(string path, bool isFile = false)
 {
     InitializeComponent();
     CommonInterface.Link1 = this;
     CommonInterface.SetFileFilter();
     Audio.InitAudio(Audio.HZ);
     comboBox1.SelectedIndex = Properties.Settings.Default.RepeatMode;
     checkBox1.Checked       = Properties.Settings.Default.RandomMode;
     colorSlider2.Value      = Properties.Settings.Default.Volume;
     checkBox2.Checked       = Properties.Settings.Default.SoundOff;
     CommonInterface.Volume  = Properties.Settings.Default.Volume2;
     Audio.Volume            = colorSlider2.Value;
     if (isFile)
     {
         CommonInterface.AddTrackOrURL(path);
     }
     else
     {
         CommonInterface.GetFilesFromFolder(path);
     }
 }