Exemplo n.º 1
0
        private void UpdateButtonClick(object sender, EventArgs e)
        {
            GenericEditModelUserControl <ModelType, DataType> view = new GenericEditModelUserControl <ModelType, DataType>(
                this, Models[SourceList.SelectedIndices[ConstValues.Zero]]);

            ActivateEditView(view);
        }
Exemplo n.º 2
0
        private void InsertButtonClick(object sender, EventArgs e)
        {
            GenericEditModelUserControl <ModelType, DataType> view = new GenericEditModelUserControl <ModelType, DataType>(
                this, new ModelType()
            {
                ID = Guid.Empty
            });

            ActivateEditView(view);
        }