private void SetImagePage(int index, string path, MyCommon.UploadFileType type) { var selectedIndex = ImagePageCombo.SelectedIndex; if (index < 0) { index = selectedIndex; } var item = (SelectedMedia)ImagePageCombo.Items[index]; item.Path = path; item.Type = type; AddNewImagePage(index); }
private void SetImagePage(int index, IMediaItem item, MyCommon.UploadFileType type) { var selectedIndex = ImagePageCombo.SelectedIndex; if (index < 0) { index = selectedIndex; } var media = (SelectedMedia)ImagePageCombo.Items[index]; if (media.Item != item) { DisposeMediaItem(media.Item); media.Item = item; } media.Type = type; AddNewImagePage(index); }
public bool IsSupportedFileType(MyCommon.UploadFileType type) { return(type == MyCommon.UploadFileType.Picture); }
private void SetSelectedImagePage(IMediaItem item, MyCommon.UploadFileType type) { SetImagePage(-1, item, type); }
public SelectedMedia(IMediaItem item, MyCommon.UploadFileType type, string text) { this.Item = item; this.Type = type; this.Text = text; }
private void SetSelectedImagePage(string path, MyCommon.UploadFileType type) { SetImagePage(-1, path, type); }
public SelectedMedia(string path, MyCommon.UploadFileType type, string text) { this.Path = path; this.Type = type; this.Text = text; }