private void Suplier_selected(object sender, MouseButtonEventArgs e)
        {
            // Lấy dữ liệu item từ list view
            ListViewItem   lvi            = sender as ListViewItem;
            SuplierDisplay yourDataObject = lvi.DataContext as SuplierDisplay;

            // Nếu như dữ liệu đọc vào ko bị rỗng
            if (yourDataObject != null)
            {
                Global.IDSuplier = yourDataObject.id;


                this.Close();
            }
        }
Exemplo n.º 2
0
        private void Suplier_selected(object sender, MouseButtonEventArgs e)
        {
            // Lấy dữ liệu item từ list view
            ListViewItem   lvi            = sender as ListViewItem;
            SuplierDisplay yourDataObject = lvi.DataContext as SuplierDisplay;

            // Nếu như dữ liệu đọc vào ko bị rỗng
            if (yourDataObject != null)
            {
                int id = yourDataObject.id;


                SuplierInfo InfoScreen = new SuplierInfo(id);
                InfoScreen.ShowDialog();
                LoadSupliers();
            }
        }