private void movePublishHostDownButton_Click(object sender, EventArgs e) { int index = publishHostsListBox.SelectedIndex; EditedItem.Details.SitesToPublishTo.Move(index, index + 1); UpdatePublishHostsBindings(true); publishHostsListBox.SelectedIndex = ListHelpers.MoveSelectedIndex(publishHostsListBox.Items.Count, index, index + 1); }
private void moveSocialPostDownButton_Click(object sender, EventArgs e) { int index = SocialPost_listBox.SelectedIndex; EditedItem.Details.PlacesToPost.Move(index, index + 1); UpdateSocialPostBindings(true); SocialPost_listBox.SelectedIndex = ListHelpers.MoveSelectedIndex(SocialPost_listBox.Items.Count, index, index + 1); }
private void moveDownloadHostDownButton_Click(object sender, EventArgs e) { int index = downloadHostListBox.SelectedIndex; EditedItem.Details.DownloadHosts.Move(index, index + 1); UpdateDownloadHostsBindings(true); downloadHostListBox.SelectedIndex = ListHelpers.MoveSelectedIndex(downloadHostListBox.Items.Count, index, index + 1); }
private void moveDownVerMetaButton_Click(object sender, EventArgs e) { int index = versionListBox.SelectedIndex; EditedItem.Details.VersionMetadata.Move(index, index + 1); UpdateVerMetaBindings(true); versionListBox.SelectedIndex = ListHelpers.MoveSelectedIndex(versionListBox.Items.Count, index, index + 1); }