Esempio n. 1
0
 protected override void OnActivated()
 {
     base.OnActivated();
     _fileDataPropertyEditor = View.GetItems <FileDataPropertyEditor>().First();
     _fileDataPropertyEditor.ControlCreated += FileDataPropertyEditorOnControlCreated;
     _listPropertyEditor = View.GetItems <ListPropertyEditor>().First(editor => editor.MemberInfo.Name == nameof(BusinessObjects.ExcelImport.ExcelColumnMaps));
     _listPropertyEditor.ControlCreated += ListPropertyEditorOnControlCreated;
 }
Esempio n. 2
0
 protected override void OnActivated()
 {
     base.OnActivated();
     propertyEditor = View.FindItem("Attachment") as FileDataPropertyEditor;
     if (propertyEditor != null)
     {
         propertyEditor.ControlCreated += propertyEditor_ControlCreated;
     }
     // Perform various tasks depending on the target View.
 }
Esempio n. 3
0
        private void VCCertificado_ViewControlsCreated(object sender, EventArgs e)
        {
            DetailView dt = View as DetailView;

            if (dt != null)
            {
                FileDataPropertyEditor fc = dt.FindItem("FileCertif") as FileDataPropertyEditor;

                if (fc != null)
                {
                    fc.Control.Validated += Control_Validated;
                }

                Control_Validated(this, null);
            }
        }