Example #1
0
 private bool IS_THERE_A_NEW_ITEM_NAME_TYPED(string new_item_name)
 {
     return(Run.IS_THE_TEXTBOX_NOT_EMPTY(new_item_name,
                                         Language_strings.new_item_name_empty[Language_strings.indexer()],
                                         Language_strings.new_item_name_empty_title[Language_strings.indexer()],
                                         MessageBoxIcon.Warning,
                                         Language_strings.new_item_name_starts_with_space[Language_strings.indexer()],
                                         Language_strings.new_element_name_starts_with_space[Language_strings.indexer()],
                                         MessageBoxIcon.Warning));
 }
Example #2
0
 public static string LOAD_SELECTED_PROFILE_NAME()
 {
     if (IS_THERE_AT_LEAST_ONE_PROFILE_STORED_ON_MEMORY())
     {
         return(Language_strings.selected_profile[Language_strings.indexer()] + Memory.SELECTED_PROFILE.sortened_profile_name());
     }
     else
     {
         return("No profiles/Sin perfiles.");
     }
 }
        private void CREATE_NEW_PROFILE()
        {
            bool IS_THE_TEXTBOX_NOT_EMPTY = Run.IS_THE_TEXTBOX_NOT_EMPTY(this.textBox_profile_name_create.Text,
                                                                         Language_strings.profile_name_empty[Language_strings.indexer()],
                                                                         Language_strings.profile_name_empty_title[Language_strings.indexer()],
                                                                         MessageBoxIcon.Warning,
                                                                         Language_strings.profile_name_starts_with_space[Language_strings.indexer()],
                                                                         Language_strings.profile_name_starts_with_space_title[Language_strings.indexer()]
                                                                         , MessageBoxIcon.Warning);

            if (IS_THE_TEXTBOX_NOT_EMPTY)
            {
                SET_NEW_PROFILE_METHOD_TREE();
            }
        }
 private void UI_CHANGES_AFTER_SELECTING_A_PROFILE_AS_CURRENT(Profile list_selected_profile)
 {
     this.label_selected_profile.Text = Language_strings.selected_profile[Language_strings.indexer()] + list_selected_profile.sortened_profile_name();
 }
 private bool IS_USER_SURE_ABOUT_DELETING_SELECTED_PROFILE()
 {
     return(Run.ASK_USER(Language_strings.profile_delete_content[Language_strings.indexer()]
                         , Language_strings.profile_delete_content_title[Language_strings.indexer()]));
 }
 private bool IS_A_PROFILE_ON_LIST_SELECTED_AND_IS_THE_TEXT_INSIDE_TEXTBOX_NOT_EMPTY_OR_STARTS_WITH_SPACE()
 {
     if (this.SELECTED_PROFILE_ON_LIST != null && Run.IS_THE_TEXTBOX_NOT_EMPTY(this.textBox_set_new_name.Text,
                                                                               Language_strings.profile_edit_name_empty[Language_strings.indexer()],
                                                                               Language_strings.profile_edit_name_empty_title[Language_strings.indexer()],
                                                                               MessageBoxIcon.Warning,
                                                                               Language_strings.profile_edit_name_with_space[Language_strings.indexer()],
                                                                               Language_strings.new_element_name_starts_with_space[Language_strings.indexer()],
                                                                               MessageBoxIcon.Warning))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }