private void OpenBarrel() { frmBarrel lfb = new frmBarrel(); lfb.RegisterClose(); lfb.DataContext = this; lfb.Show(); }
private void AddBarrel() { Barrel lb = new Barrel(); SelectedGun.TargetBarrel = lb; frmBarrel lfb = new frmBarrel(); lfb.RegisterClose(); lfb.DataContext = this; lfb.Show(); }