Beispiel #1
0
        private void DataGridProducts_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            int      productId = ((SpecialDTO)(DataGridProducts.SelectedItem)).Id;
            PPWindow win1      = new PPWindow(productId);

            win1.ShowDialog();
        }
        private void ShowPPWindow(int?id)
        {
            m_win = new PPWindow(Setting.SmoothTime, Setting.FPS);

            if (id != null)
            {
                m_win.Title += $"{id}";
            }

            m_win.client_id.Content = id?.ToString() ?? "";

            m_win.ShowDialog();
        }