public override void onAction()
            {
                GuiEditorPrefsDlgGridEdit GuiEditorPrefsDlgGridEdit = "GuiEditorPrefsDlgGridEdit";

                float value = this.value;

                if (value < fGlobal["$GuiEditor::minGridSize"])
                {
                    value = fGlobal["$GuiEditor::minGridSize"];
                    this.setValue(value.AsString());
                }

                GuiEditorPrefsDlgGridEdit.setValue(Util.mCeil(value).AsString());
            }
            public override void onAction()
            {
                GuiEditorPrefsDlg         GuiEditorPrefsDlg         = "GuiEditorPrefsDlg";
                GuiEditorPrefsDlgGridEdit GuiEditorPrefsDlgGridEdit = "GuiEditorPrefsDlgGridEdit";
                GuiCanvas Canvas = "Canvas";

                GuiEditorGui.GuiEditor GuiEditor = "GuiEditor";
                GuiEditor["snap2gridsize"] = GuiEditorPrefsDlgGridEdit.getValue();
                if (GuiEditor["snap2grid"].AsBool())
                {
                    GuiEditor.setSnapToGrid(GuiEditor["snap2gridsize"].AsUint());
                }

                Canvas.popDialog(GuiEditorPrefsDlg);
            }