Exemplo n.º 1
0
        private void ShowForm()
        {
            CqaLabel.Heading2(DialogTitle);

            _scopeEnumFormGroup.Show();
            _nameStringFormGroup.Show();

            UpdateKeyFromNameIfUserDidNotSetIt();

            _keyStringFormGroup.Show();


            GUILayout.BeginHorizontal();
            EditorGUI.BeginDisabledGroup(!Valid());
            if (CqaButton.SmallButton("Save"))
            {
                Save();
            }

            EditorGUI.EndDisabledGroup();

            if (OldGroup != null && CqaButton.SmallButton("Delete"))
            {
                Delete();
            }

            GUILayout.EndHorizontal();

            if (CqaButton.SmallButton("Abort"))
            {
                Close();
            }
        }
Exemplo n.º 2
0
        private void ShowForm()
        {
            CqaLabel.Heading2(DialogTitle);

            _groupDropdownFormGroup.Show();
            _keyStringFormGroup.Show();
            _ruleTypeFormGroup.Show();
            _descriptionStringFormGroup.Show();
            _cypherQueryTextAreaFormGroup.Show();

            GUILayout.BeginHorizontal();
            EditorGUI.BeginDisabledGroup(!Valid());
            if (CqaButton.SmallButton("Save"))
            {
                Save();
            }

            EditorGUI.EndDisabledGroup();

            if (OldRule != null && CqaButton.SmallButton("Delete"))
            {
                Delete();
            }

            GUILayout.EndHorizontal();

            if (CqaButton.SmallButton("Abort"))
            {
                Close();
            }

            GUILayout.Space(10);
        }