상속: System.Windows.Forms.Form
예제 #1
0
        public static string Show(string title, string message)
        {
            TextEntryDialog td = new TextEntryDialog( );

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