private void butAdd_Click(object sender, RoutedEventArgs e)
        {
            var item  = new ScreenLiteral();
            var model = new ScreenLiteralModel(item);

            WorkScreenItemWindow.WorkScreenItem(ActionCode.Add, this.Model, model);
        }
Beispiel #2
0
        bool ListBox_ChangeItem(ScreenItemModel item)
        {
            bool handled = false;

            if (item != null)
            {
                var sectionHeader = item.SectionHeader;
                WorkScreenItemWindow.WorkScreenItem(ActionCode.Change, sectionHeader, item);
                handled = true;
            }
            return(handled);
        }
        void ListView_ChangeItem(ListView ListView)
        {
            var itemModel = ListView.SelectedItem as ScreenAtomicModel;
            var window    = new WorkScreenItemWindow(ActionCode.Change);

            window.ScreenItemModel = itemModel;
            var rv = window.ShowDialog();

            if ((rv != null) && (rv.Value == true))
            {
            }
        }