private void ListViewItem_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { Window win = new AmountSelector(this.vm); if (sender is ListViewItem item && item.IsSelected) { win.Show(); } }
private void Timer_Tick(object sender, EventArgs e) { Window win = new AmountSelector(this.vm); if (this.timer.Tag is Termek) { win.Show(); } this.timer.Stop(); }