Beispiel #1
0
 static AddNhaCungCap()
 {
     if (signleton == null)
     {
         signleton = new AddNhaCungCap();
     }
 }
Beispiel #2
0
        private AddNhaCungCap()
        {
            InitializeComponent();
            this.DataContext = new ViewModel();
            EventHandler eventHandler = (o, i) => { signleton = new AddNhaCungCap(); };

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