public void editCompletion(Completion completion)
 {
     m_completion = completion;
     // TODO: Display Completion for edit
     guiTypeCbo.SelectedItem = m_completion.getCompletionType();
     // Ensure fields are properly enabled
     // Display other values
 }
Ejemplo n.º 2
0
        //TB to Rackle - is this the best way to do this?
        public Boolean CheckBadCompletionDuplicates(Completion completion)
        {
            switch (completion.getCompletionType())
            {
            case CompletionType.Nearest_Nav:
                //there can be only one ... Nearest Nav
                if (completion.contains(m_completions, CompletionType.Nearest_Nav))
                {
                    //already contains a Nearest_Nav, don't allow another
                    DataConfiguration.addValidation("You can only have one Nearest_Nav per stage completion.");
                    return(false);
                }
                break;

            default:
                break;
            }
            return(true);
        }
Ejemplo n.º 3
0
 //TB to Rackle - is this the best way to do this?
 public Boolean CheckBadCompletionDuplicates(Completion completion)
 {
     switch (completion.getCompletionType())
     {
         case CompletionType.Nearest_Nav:
             //there can be only one ... Nearest Nav
             if (completion.contains(m_completions, CompletionType.Nearest_Nav))
             {
                 //already contains a Nearest_Nav, don't allow another
                 DataConfiguration.addValidation("You can only have one Nearest_Nav per stage completion.");
                 return false;
             }
             break;
         default:
             break;
     }
     return true;
 }