Exemplo n.º 1
0
        private void OKButton_Click(object sender, EventArgs e)
        {
            EUCheckinTypes checkinType;

            if (DraftRadioButton.Checked == true)
            {
                checkinType = EUCheckinTypes.MinorCheckIn;
            }
            else if (PublishRadioButton.Checked == true)
            {
                checkinType = EUCheckinTypes.MajorCheckIn;
            }
            else
            {
                checkinType = EUCheckinTypes.OverwriteCheckIn;
            }

            SharePointManager.CheckInFile(SelectedItem.SiteSetting, SelectedItem.WebURL, SelectedItem.URL, CommentsTextBox.Text, checkinType);
            if (YesRadioButton.Checked == true)
            {
                SharePointManager.CheckOutFile(SelectedItem.SiteSetting, SelectedItem.WebURL, SelectedItem.URL);
            }
            DialogResult = DialogResult.OK;
        }