public bool InitLoadFaildValues() { try { if (RootDirArr == null) { RootDirArr = new List <string>(); } //if (RootDirArr.Count == 0) // RootDirArr.Add(@"E:\Meida\XM"); if (DPlaySpeeds == null) { DPlaySpeeds = new double[7] { 0.1, 0.5, 1, 2, 4, 8, 16 } } ; PlaySpeed = Math.Max(PlaySpeed, 0); PlaySpeed = Math.Min(PlaySpeed, 6); if (MyColors == null) { MyColors = new ThemeColors(); } return(true); } catch (Exception) { return(false); } }
public void InitValues(ConfigSettings cf) { _rootDirs.Clear(); _rootDirs.AddRange(cf.RootDirArr); tbSpeed.Value = cf.PlaySpeed; tbSound.Value = cf.Valume; ckAutoplay.Checked = cf.BAutoPalyNext; _tempColor = cf.MyColors; UpdateRootDirs(); UpdateSound(); UpdateSpeed(); cbRecType.SelectedValue = 1; }
private void pbDemo_MouseDoubleClick(object sender, MouseEventArgs e) { _tempColor = new ThemeColors(); UpdateColors(); }