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 UpdateLines(bool save = true) { int Lines = GetScrollLines.GetSpeed(); LinesSlider.Value = Lines; LinesLabel.Content = Lines; profiles[IndexofCurrentProfile].ScrollSpeed = Lines; if (save) { SaveData(); } }