private void AddItem() { switch (AppMode) { case AppModes.LayoutGroups: SelectedLayoutGroup = new LayoutGroup(); AppMode = AppModes.AddLayoutGroup; break; case AppModes.ViewLayoutGroup: SelectedLayout = new Layout(); AppMode = AppModes.AddLayout; break; } }
public void CancelEdit() { if (_layout != null) { Id = _layout.Id; Name = _layout.Name; Width = _layout.Width; Height = _layout.Height; PhotoWidth = _layout.PhotoWidth; PhotoHeight = _layout.PhotoHeight; PhotoX = _layout.PhotoX; PhotoY = _layout.PhotoY; NameWidth = _layout.NameWidth; NameHeight = _layout.NameHeight; NameX = _layout.NameX; NameY = _layout.NameY; NameColor = _layout.NameColor; _layout = null; } }
public void EndEdit() { _layout = null; }
public void BeginEdit() { _layout = new Layout { Id = Id, Name = Name, Width = Width, Height = Height, PhotoWidth = PhotoWidth, PhotoHeight = PhotoHeight, PhotoX = PhotoX, PhotoY = PhotoY, NameWidth = NameWidth, NameHeight = NameHeight, NameX = NameX, NameY = NameY, NameColor = NameColor }; }