Beispiel #1
0
 protected override void OnInitializingNewItem(Microsoft.Windows.Controls.InitializingNewItemEventArgs e)
 {
     Logging.Client.DebugFormat("OnInitializingNewItem(NewItem.Type = {0})", e.NewItem.GetType().Name);
     Logging.Client.DebugFormat("    continueEdit={0}, isNewItem={1}", continueEdit, isNewItemForContinueEdit);
     isNewItemInitialized = true;
     base.OnInitializingNewItem(e);
 }
Beispiel #2
0
        private void dgPessoa_InitializingNewItem(object sender, Microsoft.Windows.Controls.InitializingNewItemEventArgs e)
        {
            PessoaDto pessoaDto = (PessoaDto)e.NewItem;

            pessoaDto.TipoPessoas = this.ListaTipoPessoa.ToList();
        }