Show() public static method

public static Show ( string message ) : string
message string
return string
Esempio n. 1
0
        public void AddString( )
        {
            string new_item_string = TextEntryDialog.Show("New String", "Enter new string:");

            if (new_item_string.Length != 0)
            {
                IResource resource = CreateNewResource(new_item_string, new_item_string);

                resourceSelectionControl.AddString(resource);

                number_resources++;
                FileSaved = false;
            }
        }
Esempio n. 2
0
        public void RenameResource( )
        {
            IResource resource = resourceSelectionControl.SelectedResourceListBoxItem;

            if (resource == null)
            {
                return;
            }

            string resource_name = resource.ResourceName;

            string new_resource_name = TextEntryDialog.Show("Rename", "Enter new name for \"" + resource_name + "\":");

            if (new_resource_name.Length != 0)
            {
                resourceSelectionControl.RenameResource(resource, new_resource_name);

                FileSaved = false;
            }
        }