private XElement Serialize(string name, ImageBox imageBox) { var key = $"{_list.Count + 1}.{imageBox.Extention}"; _list.Add(key, imageBox); return new XElement(name, new XAttribute(nameof(imageBox.Width), imageBox.Width), new XAttribute(nameof(imageBox.Height), imageBox.Height), new XAttribute("FileName", key)); }
private void OpenFile(ImageBox imageBox) { ImageBox = imageBox; CancelQuadrangle(); }