Exemplo n.º 1
0
        private void gameObjectsDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            GameObject o = (GameObject)gameObjectsBindingSource.Current;

            if (o == null)
            {
                return;
            }

            EditGameObject.PerformEdit(o);
        }
Exemplo n.º 2
0
        private void gameObjectsBindingSource_AddingNew(object sender, AddingNewEventArgs e)
        {
            GameObject obj = new GameObject();

            obj.Id = World.GetNextObjectId();

            if (EditGameObject.PerformEdit(obj))
            {
                e.NewObject = obj;
            }
        }