Exemplo n.º 1
0
 static AddDanhMucVatTu()
 {
     if (signleton == null)
     {
         signleton = new AddDanhMucVatTu();
     }
 }
Exemplo n.º 2
0
        private AddDanhMucVatTu()
        {
            this.DataContext = new ViewModel();
            InitializeComponent();
            EventHandler eventHandler = (o, i) => { signleton = new AddDanhMucVatTu(); };

            this.Closed += eventHandler;
        }
Exemplo n.º 3
0
 private void btnEdit_Click(object sender, RoutedEventArgs e)
 {
     if (dgContent.CurrentItem != null)
     {
         tableLog.SetRowChange(((DataRowView)dgContent.CurrentItem).Row);
         AddDanhMucVatTu addKhachHang = new AddDanhMucVatTu(((DataRowView)dgContent.CurrentItem).Row);
         addKhachHang.dataGrid = this.dgContent;
         addKhachHang.Show();
     }
     else
     {
         MessageBox.Show("Không có hàng nào được chọn!");
     }
 }