Ejemplo n.º 1
0
        private void Parent_OnObjectSelectEvent(object sender, ObjectSelectEventArgs e)
        {
            Cursor cursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                object selectedObject = e.SelectedObject;
                if (selectedObject != null)
                {
                    if (Visible)
                    {
                        if (SourceObjectType.Equals(selectedObject.GetType()))
                        {
                            SourceObject = selectedObject;
                            ProcessView();
                        }
                    }
                }
            }
            finally
            {
                Cursor.Current = cursor;
            }
        }
Ejemplo n.º 2
0
 private void ListWindow_OnObjectSelectEvent(object sender, ObjectSelectEventArgs e)
 {
     fillSelectedObjects();
     DialogResult = DialogResult.OK;
     Close();
 }