コード例 #1
0
        private void ListViewItem_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            Window win = new AmountSelector(this.vm);

            if (sender is ListViewItem item && item.IsSelected)
            {
                win.Show();
            }
        }
コード例 #2
0
        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();
        }