void OnIdChange(object sender, IdChangedEventArgs args) { if (sender is DialogueTopic topic) { var oldId = (string)args.OldId; var newId = (string)args.NewId; var versions = dialogueVersionsById[oldId]; var index = GetItemIndex(versions, topic); var version = versions[index]; versions.RemoveAt(index); dialogueVersionsById[newId].Add(version); var key = new GameItemKey(version.ModFileName, oldId); var current = dialogueByIdAndFile[key]; dialogueByIdAndFile.Remove(key); dialogueByIdAndFile.Add(new GameItemKey(version.ModFileName, newId), current); } else { var versions = gameItemVersionsById[args.OldId]; var item = (TES3GameItem)sender; var index = GetItemIndex(versions, item); var version = versions[index]; gameItemVersionsById[args.NewId].Add(version); versions.RemoveAt(index); gameItemsByIdAndFile.Remove(new GameItemKey(version.ModFileName, args.OldId)); gameItemsByIdAndFile.Add(new GameItemKey(version.ModFileName, args.NewId), item); } }
protected virtual void Control_IdChanged(object sender, IdChangedEventArgs e) { if (!isLoaded) { return; } GuncelNesneOlustur(); }
private void Control_IdChanged(object sender, IdChangedEventArgs e) { if (!IsLoaded) { return; } GüncelNesneOlustur(); }
private void Control_IdChanged(object sender, IdChangedEventArgs e) { if (IsLoaded) { return; } CreateObject(); }
protected override void Control_IdChanged(object sender, IdChangedEventArgs e) { if (!(sender is ButtonEdit)) { return; } if (txtSube.Id == null) { return; } oldEntity = ((DonemParametreBll)bll).Single(x => x.SubeId == txtSube.Id && x.DonemId == _donemId) ?? new DonemParametre(); BaseIslemTuru = oldEntity.Id == 0 ? IslemTuru.EntityInsert : IslemTuru.EntityUpdate; NesneyiKontrollereBagla(); if (BaseIslemTuru != IslemTuru.EntityInsert) { return; } id = BaseIslemTuru.IdOlustur(oldEntity); }
protected override void Control_IdChanced(object sender, IdChangedEventArgs e) { if (sender == txtOdemeTuru) { _odemeTipi = txtOdemeTuru.Id == null ? OdemeTipi.Acik : txtOdemeTuru.Tag.ToString().GetEnum <OdemeTipi>(); //(3/6) 33.video 27:00 tag ödeme türü alanına fazladan veri kaydetmek için kullandık ıd ve text tutarken 3. alan olarak tag kullandık ControlEnableChange(_odemeTipi); txtBankaHesap.Id = null; txtBankaHesap.Text = null; } else if (sender == txtBankaHesap) { _blokeGunSayisi = Convert.ToByte(txtBankaHesap.Tag); } else if (sender == txtBanka) { txtBankaSube.Id = null; txtBankaSube.Text = null; } }
protected override void Control_IdChanged(object sender, IdChangedEventArgs e) { if (sender == txtOdemeTuru) { _odemeTipi = txtOdemeTuru.Id == null ? OdemeTipi.Acik : txtOdemeTuru.Tag.ToString().GetEnum <OdemeTipi>(); ControlEnabledChange(_odemeTipi); txtBankaHesap.Id = null; txtBankaHesap.Text = null; } else if (sender == txtBankaHesap) { _blokeGunSayisi = Convert.ToByte(txtBankaHesap.Tag); } else if (sender == txtBanka) { txtBankaSube.Id = null; txtBankaSube.Text = null; } }
protected override void Control_IdChanced(object sender, IdChangedEventArgs e) { //mybutton editdeki değişikliği yakalar ona göre property gridi dolduracağız if (!(sender is ButtonEdit)) { return; } if (txtSube.Id == null) { return; } OldEntity = ((DonemParametreBll)Bll).Single(x => x.SubeId == txtSube.Id && x.DonemId == _donemId) ?? new DonemParametre(); BaseIslemTuru = OldEntity.Id == 0 ? IslemTuru.EntityInsert : IslemTuru.EntityUpdate; NesneyiKontrollereBagla(); if (BaseIslemTuru != IslemTuru.EntityInsert) { return; } Id = BaseIslemTuru.IdOlustur(OldEntity); }