Exemplo n.º 1
0
        private bool RunValidation()
        {
            if (ValidateProperties == null)
            {
                return(true);
            }

#if FAMISTUDIO_MACOS
            MacUtils.RemoveNSWindowAlwaysOnTop(MacUtils.NSWindowFromGdkWindow(GdkWindow.Handle));
#endif
            // Validation might display messages boxes, need to work around z-ordering issues.
            bool valid = ValidateProperties.Invoke(propertyPage);

#if FAMISTUDIO_MACOS
            // This fixes some super weird focus issues.
            if (!valid)
            {
                Hide();
                Show();
            }

            MacUtils.SetNSWindowAlwayOnTop(MacUtils.NSWindowFromGdkWindow(GdkWindow.Handle));
#endif

            return(valid);
        }
Exemplo n.º 2
0
 private void buttonYes_Click(object sender, EventArgs e)
 {
     if (ValidateProperties == null || ValidateProperties.Invoke(propertyPage))
     {
         DialogResult = DialogResult.OK;
         Close();
     }
 }
Exemplo n.º 3
0
        private bool RunValidation()
        {
            if (ValidateProperties == null)
            {
                return(true);
            }

            // Validation might display messages boxes, need to work around z-ordering issues.
            bool valid = ValidateProperties.Invoke(propertyPage);

            return(valid);
        }