예제 #1
0
        protected virtual void DoBeginFamilyEdit(GUIButton sender, object value)
        {
            if (value != null && GlobalSettings.AllowFamilyEdit)
            {
                var family = KLVCore.GetVehicleFamily(value.ToString().Trim());

                if (family != null)
                {
                    editingFamily = family;
                    SetFamilyEditState(true);
                    textEditFamily.SetText(editingFamily.Name);
                    textEditFamily.SetEditing(true);
                }
            }
        }