public Profile CurrentData() { Profile profile = new Profile(); profile.Name = (string)ProfileNow.Header; profile.MouseSpeed = MouseSpeedGet.GetMouseSpeed(); profile.ScrollSpeed = GetScrollLines.GetSpeed(); profile.DubbleClick = GetDubbleClick.GetClickSpeed(); return(profile); }
public void UpdateClick(bool save = true) { int ClickSpeed = GetDubbleClick.GetClickSpeed(); DubbleClickTimeSlider.Value = ClickSpeed; DubbleClickTimeLabel.Content = ClickSpeed; profiles[IndexofCurrentProfile].DubbleClick = ClickSpeed; if (save) { SaveData(); } }