예제 #1
0
 private void DoAddDestination(GUIButton sender, object value)
 {
     if (!string.IsNullOrEmpty(value.ToString()) && KLVCore.DestinationAvailable(value.ToString()))
     {
         textAddDestination.SetEditing(false);
         textAddDestination.SetText("");
         KLVCore.AddDestination(value.ToString());
         KLVCore.Save();
         KLVCore.UpdateAllVehicleNameSchemes();
         comboDestination.SetItems(KLVCore.GetAllDestinationName());
         //Open combo to view new addition
         MarkComboToExpand(true, comboDestination);
     }
 }