Exemple #1
0
        public static string getNow(string title, string text, string Default, string ok, string cancel)
        {
            userTextInput uti = new userTextInput(title, text, Default, ok, cancel);

            uti.ShowDialog();
            return(uti.result);
        }
Exemple #2
0
		public static string getNow( string title, string text, string Default, string ok, string cancel )
		{
			userTextInput uti = new userTextInput( title, text, Default, ok, cancel );
			uti.ShowDialog();
			return uti.result;
		}
Exemple #3
0
		private void cmdRename_Click(object sender, System.EventArgs e)
		{  // rename
			userTextInput ui = new userTextInput( 
				language.getAString( language.order.uiRenameCity ),
				language.getAString( language.order.uiPleaseEntrerCityName ),
				Form1.game.playerList[ player ].cityList[ city ].name,
				language.getAString( language.order.ok ),
				language.getAString( language.order.cancel )
				);
			ui.ShowDialog();
			string name = ui.result;

			if ( name != "" ) 
			{ 
				Form1.game.playerList[ player ].cityList[ city ].name = name; 
				drawMap(); 
			} 
		}