Exemplo n.º 1
0
		private void menuItem7_Click(object sender, System.EventArgs e)
		{
			UniformEditForm form = new UniformEditForm();
			form.HomePantsColorString= "3C";
			form.ShowDialog(this);
			this.richTextBox1.Text = form.Result;
			form.Dispose();
		}
Exemplo n.º 2
0
		private void ModifyColors(string team)
		{
			UniformEditForm form = new UniformEditForm();
			form.Data = richTextBox1.Text;
			form.CurrentTeam = team;

			if( form.ShowDialog(this) == DialogResult.OK )
			{
				int index = richTextBox1.SelectionStart;
				SetText( form.Data);
				if( richTextBox1.Text.Length > index)
				{
					richTextBox1.SelectionStart = index;
					richTextBox1.ScrollToCaret();
				}
			}
			form.Dispose();
		}