private void Form1FormClosing(object sender, FormClosingEventArgs e) { var chek = _setForm.cSave.Checked; _setForm.Dispose(); _setForm.Close(); if (Player.Satus()[1].Length <= 1) { IsPlay = false; } else { IsPlay = true; } SettingsHelper.SaveSetting(new Settings(chek, tVolum.Value, _mute, ListStatinName.SelectedIndex, IsPlay)); }