Ejemplo n.º 1
0
        private void OpenInventoryItem(object sender, MouseButtonEventArgs e)
        {
            if (e.ClickCount >= 2)
            {
                Item item = (Item)Inventory.SelectedItem;

                if (OpenItemWindows.Contains(item.NameEN))
                {
                    return;
                }

                ItemWindow itemWindow = new ItemWindow(item, this);
                OpenItemWindows.Add(item.NameEN);
                itemWindow.Show();
            }
        }
Ejemplo n.º 2
0
        private void OpenTrackedItem(object sender, MouseButtonEventArgs e)
        {
            if (e.ClickCount >= 2)
            {
                Item item = (Item)TrackedItems.SelectedItem;

                if (item == null)
                {
                    return;
                }

                if (OpenItemWindows.Contains(item.NameEN))
                {
                    return;
                }

                ItemWindow itemWindow = new ItemWindow(item, this);
                itemWindow.Owner = Application.Current.MainWindow;
                OpenItemWindows.Add(item.NameEN);
                itemWindow.Show();
            }
        }