Пример #1
0
        public GenreSelectView()
        {
            InitializeComponent();
            this.itemView.Selectable = false;
            this.itemView.Icon       = LazuriteUI.Icons.Icon.HomeQuestion;
            SelectGenre(null);

            this.itemView.Click += (o, e) => {
                var messageView = new MessageView();
                messageView.ContentText = "Выберите тип отображаемых параметров:";
                messageView.HeaderText  = "Тип параметра узла Z-Wave";
                messageView.Icon        = LazuriteUI.Icons.Icon.HomeQuestion;
                messageView.SetItems(new[] {
                    CreateItemInfo(null, messageView),
                    CreateItemInfo(ValueGenre.Basic, messageView),
                    CreateItemInfo(ValueGenre.Config, messageView),
                    CreateItemInfo(ValueGenre.System, messageView),
                    CreateItemInfo(ValueGenre.User, messageView),
                });
                messageView.ShowInNewWindow(width: 800, showDialog: true);
            };
        }