public void PasteImage(CalendarDay[] destination, ImageSource imageSource) { if (destination == null || imageSource == null) { return; } foreach (var day in destination) { day.Logo = imageSource.Clone <ImageSource, ImageSource>(); } DayPasted?.Invoke(null, null); }
public void PasteDay(CalendarDay[] destination) { if (SourceDay == null || destination == null) { return; } foreach (var day in destination) { day.Comment = SourceDay.Comment; day.Logo = SourceDay.Logo.Clone <ImageSource, ImageSource>(); } DayPasted?.Invoke(null, null); }
public void CloneDay(CalendarDay source, IEnumerable <CalendarDay> destination) { if (source == null || destination == null) { return; } foreach (var day in destination) { day.Comment = source.Comment; day.Logo = source.Logo.Clone <ImageSource, ImageSource>(); } DayPasted?.Invoke(null, null); }
private void toolStripMenuItemPaste_Click(object sender, EventArgs e) { DayPasted?.Invoke(sender, new EventArgs()); }