public GossipItemPropertySelector(gossip_menu_option item)
 {
     InitializeComponent();
     _item = item;
     CheckFlags(item.npc_option_npcflag);
 }
        private void menuItemDelete_Click(object sender, RoutedEventArgs e)
        {
            if (_SelectedMenuItem == null)
                return;

            DataProcessor.DeleteGossipOption(_SelectedMenuItem);
            LoadGossipMenuItems(_SelectedMenuItem.menu_id);
            _SelectedMenuItem = null;
        }
 public void LoadGossipMenuItems(int menu)
 {
     _SelectedMenuItem = null;
     _SelectedGossipItems = DataProcessor.GetGossipOptions(menu);
     gossipMenuItems.ItemsSource = _SelectedGossipItems;
 }
        private void gossipMenuItems_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (gossipMenuItems == null || gossipMenuItems.SelectedItem == null)
                return;

            _SelectedMenuItem = gossipMenuItems.SelectedItem as gossip_menu_option;
            gossipItemGrid.DataContext = _SelectedMenuItem;
        }
 public NpcFlagSelector(gossip_menu_option o)
 {
     InitializeComponent();
     _o = o;
     CheckFlags(_o.npc_option_npcflag);
 }