Esempio n. 1
0
 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;
     }
 }
Esempio n. 2
0
File: Layout.cs Progetto: kib357/IDS
 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;
     }
 }
Esempio n. 3
0
File: Layout.cs Progetto: kib357/IDS
 public void EndEdit()
 {
     _layout = null;
 }
Esempio n. 4
0
File: Layout.cs Progetto: kib357/IDS
 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
     };
 }