public static void UpdateLastTimeExecuted(Profile profile) { profile.LastTimeExecuted = DateTime.Now; DBAccess.UpdateProfile(profile); if (ProfileMenu != null) { //ProfileMenu.GetListViewItemById(profile.Id).SubItems[(int)ListViewProfileSubItemIndex.INDEX_TIME_EXECUTED].Text = profile.LastTimeExecuted.ToString(); ProfileMenu.EditListViewItem(profile); } }
private void EditProfileName() { Profile.Name = textBoxProfileName.Text; DBAccess.UpdateProfile(Profile); ProfileMenu.EditListViewItem(Profile); }