//-----------------------------------------------------------------------------------------

        public TradeItemControl(TradeItem tItemArg)
        {
            InitializeComponent();

            if (Settings.Default.CollapsedItems == true)
            {
                CollapseExpandItem();
            }

            tItem = tItemArg;

            FillControl(tItemArg);

            StartAnimatioin();

            if (Settings.Default.PlayNotificationSound)
            {
                System.Media.SystemSounds.Hand.Play();
            }

            if (stashGridHighlight == null)
            {
                stashGridHighlight = new StashGridHighlight();
                stashGridHighlight.Show();
            }
        }
Ejemplo n.º 2
0
        private void OpenStashGridHighlightWindow()
        {
            if (stashGridHighlight == null)
            {
                stashGridHighlight = new StashGridHighlight();
            }
            else if (stashGridHighlight.Visibility == Visibility.Collapsed || stashGridHighlight.Visibility == Visibility.Hidden)
            {
                stashGridHighlight.Visibility = Visibility.Visible;
            }

            stashGridHighlight.Show();
        }