//----------------------------------------------------------------------------------------- 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(); } }
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(); }