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

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