using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; using TradeIdeas.XML; namespace TradeIdeas.TIProGUI { public partial class MultiStrategyWindowName : Form { private FontManager _fontManager; private const float DEFAULT_FONT_SIZE = 8.25F; private List _phrases; public MultiStrategyWindowName(string multiName) { InitializeComponent(); MinimumSize = new Size(Width - txtName.Right + btnCancel.Right, Height); MaximumSize = new Size(Screen.PrimaryScreen.Bounds.Width, Height); MinimizeBox = false; Icon = GuiEnvironment.Icon; txtName.Text = multiName; _fontManager = new FontManager(this, DEFAULT_FONT_SIZE); _fontManager.selectTheFont(); CultureChanged(); } public void CultureChanged() { _phrases = GuiEnvironment.XmlConfig.Node("COMMON_PHRASES"); btnOK.Text = _phrases.Node("OK").PropertyForCulture("TEXT", "***"); btnCancel.Text = _phrases.Node("CANCEL").PropertyForCulture("TEXT", "***"); } public string NewName { get { return txtName.Text; } set { txtName.Text = value; } } } }