vendredi 15 septembre 2017

C#: Execute the action based on the checked checkboxes

Sorry for my english.

There are seven checkboxes on the form that specify the following parameters:

1.Publish without text
2.Publish with your text
3.Publish with signature
4.Do not publish without photos
5.Do not publish without audio
6.Do not publish without video
7.Do not publish without text

There is also a function for which you can set some publishing options (but not all, for others there is another code). Here it is:

patterns.vknet.Wall.Post(new WallPostParams
{
    OwnerId = -yourcom,
    Message = yorTextBox.Text,
    Attachments = SetAttachments(),
    FromGroup = true,
    PublishDate = DateForPost()
});

enter image description here

Aucun commentaire:

Enregistrer un commentaire