Example #1
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public ManagerDesignModel()
 {
     // Let's use a product item as an example
     Code = new TextEntryViewModel {
         Label = "Код", OriginalText = "ПР-0001"
     };
     Name = new TextEntryViewModel {
         Label = "Наименование", OriginalText = "Наим. пример"
     };
     Width = new TextEntryViewModel {
         Label = "Ширина", OriginalText = "1234"
     };
     Height = new TextEntryViewModel {
         Label = "Длина", OriginalText = "1234"
     };
     Commentary = new TextEntryViewModel {
         Label = "Комментарий", OriginalText = "Пример пример пример пример"
     };
 }
Example #2
0
        /// <summary>
        /// Defualt constructor for the class
        /// </summary>
        /// <param name="window"></param>
        public ManagerViewModel()
        {
            CloseManagerCommand = new RelayCommand(CloseManager);
            OpenManagerCommand  = new RelayCommand(OpenManager);

            // Delete this once the real data starts comming up
            Code = new TextEntryViewModel {
                Label = "Код", OriginalText = "ПР-0001"
            };
            Name = new TextEntryViewModel {
                Label = "Наименование", OriginalText = "Наим. пример"
            };
            Width = new TextEntryViewModel {
                Label = "Ширина", OriginalText = "1234"
            };
            Height = new TextEntryViewModel {
                Label = "Длина", OriginalText = "1234"
            };
            Commentary = new TextEntryViewModel {
                Label = "Комментарий", OriginalText = "Пример пример пример пример"
            };
        }