Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }