Inheritance: System.Windows.Forms.Form
        public static string Show(string title, string message)
        {
            TextEntryDialog td = new TextEntryDialog( );

            td.DialogTitle = title;
            td.Message     = message;
            td.ShowDialog( );
            return(td.DialogResultText);
        }
        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;
            }
        }
        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;
            }
        }