예제 #1
0
        /// <inheritdoc cref="SaveWithoutFileDialogEventArgs"/>
        public async Task OnEventHandler(object publisher, SaveWithoutFileDialogEventArgs e)
        {
            try
            {
                if (!View.ImageIsDefault(ImageContainer.Source))
                {
                    var copy = await GetImageCopy(
                        ImageContainer.Source
                        ).ConfigureAwait(true);

                    await Task.Run(
                        () => copy.SaveByPath(View.GetPathToFile())
                        ).ConfigureAwait(true);
                }
            }
            catch (Exception ex)
            {
                OnError(publisher, Errors.SaveFile);
            }
        }
예제 #2
0
 public virtual async Task OnEventHandler(object publisher, SaveWithoutFileDialogEventArgs e)
 {
 }