SFEditor.SFWidget.SaveA C# (CSharp) Method

SaveA() private method

private SaveA ( ) : bool
return bool
        private bool SaveA()
        {
            float tmpSize, tmpSpacing;

            if (check_defchar.Active && entry_defchar.Text == "")
            {
                skip = true;
                notebook1.CurrentTabIndex = prevtab;

                MessageDialog.ShowError("Default character cannot be empty.");
                return false;
            }

            try
            {
                tmpSize = float.Parse(entry_size.Text);
            }
            catch
            {
                skip = true;
                notebook1.CurrentTabIndex = prevtab;

                MessageDialog.ShowError("Size must be a number.");
                return false;
            }

            try
            {
                tmpSpacing = float.Parse(entry_spacing.Text);
            }
            catch
            {
                skip = true;
                notebook1.CurrentTabIndex = prevtab;

                MessageDialog.ShowError("Spacing must be a number.");
                return false;
            }

            _core.Bold = check_bold.Active;
            _core.Italic = check_italic.Active;
            _core.Kerning = check_kerning.Active;

            _core.Size = tmpSize;
            _core.Spacing = tmpSpacing;

            _core.HasDefChar = check_defchar.Active;
            if(_core.HasDefChar)
                _core.DefaultCharacter = entry_defchar.Text[0];

            return true;
        }