public override void Execute(TextBoxControl editor) { if (editor.Caret.Position.X == 0) { if (editor.Caret.Position.Y > 1) { int lineWidth = editor.GetLineWidth(editor.Caret.Position.Y - 1); if (lineWidth > editor.DrawRectangle.Width && editor.HorizontalScroll.Visible) { editor.HorizontalScroll.Value = Math.Min(editor.HorizontalScroll.Maximum, editor.HorizontalScroll.Value + lineWidth - editor.DrawRectangle.Width); } // 由于光标的起点为光标顶端点,在计算相对于垂直滚动条位置时需减2 if ((editor.Caret.Position.Y - 2) * editor.FontHeight < editor.VerticalScroll.Value && editor.VerticalScroll.Visible) { editor.VerticalScroll.Value = Math.Max(editor.VerticalScroll.Minimum, editor.VerticalScroll.Value - editor.FontHeight); } editor.PerformLayout(); editor.Caret.Position = new TextLocation(editor.CalColumnNumber(editor.Caret.Position.Y - 1, lineWidth), editor.Caret.Position.Y - 1); editor.Caret.UpdateCaretPosition(); } } else { int location = editor.GetMovePositionByKey(true); int hScroll2 = editor.HorizontalScroll.Value - editor.DrawRectangle.Width; if (location < editor.HorizontalScroll.Value && editor.HorizontalScroll.Visible) { editor.HorizontalScroll.Value = Math.Max(editor.VerticalScroll.Minimum, hScroll2 > 0 ? hScroll2 : 0); } editor.PerformLayout(); editor.Caret.Position = new TextLocation(editor.CalColumnNumber(editor.Caret.Position.Y, location), editor.Caret.Position.Y); editor.Caret.UpdateCaretPosition(); } }
public override string GetNumber(string message) { string result = string.Empty; this.EnableInput(); this.WindowManager.GotoPosition(new TextPosition(this.State.InputPosition, 0)); string wrapped = this.WindowManager.WrapText(message, 0x28); this.WindowManager.PrintFormatted(wrapped); this.DisableInput(); TextBoxControl textBox = new TextBoxControl(this.Interpreter); textBox.Text = string.Empty; textBox.MaxTextLength = 4; if (textBox.DoModal()) { result = textBox.Text; } this.RedrawInput(); return(result); }
public override void Execute(TextBoxControl editor) { int iLine = editor.LineCount; Paragraph pg = editor.GetParagraph(iLine); TextLocation endPos = new TextLocation(pg.Length, iLine); if (editor.Caret.Position != endPos) { editor.Caret.Position = endPos; if (editor.VerticalScroll.Visible) { editor.VerticalScroll.Value = editor.VerticalScroll.Maximum; } if (editor.HorizontalScroll.Visible) { int lineWidth = editor.GetLineWidth(iLine); if (lineWidth > editor.DrawRectangle.Width && editor.HorizontalScroll.Visible) { editor.HorizontalScroll.Value = Math.Min(editor.HorizontalScroll.Maximum, editor.HorizontalScroll.Value + lineWidth - editor.DrawRectangle.Width); } editor.PerformLayout(); } } }
public virtual void Draw(Graphics g, Font f, ref Point ptPos, TextBoxControl editor, ref int iLine) { if (_lineFirst != null) { _lineFirst.Draw(editor, g, f, ptPos); ptPos.Y += editor.FontHeight; } if (_lstLineText != null) { foreach (Line line in _lstLineText) { line.Draw(editor, g, f, ptPos); ptPos.Y += editor.FontHeight; } } foreach (VXmlNode node in _lstChildNode) { node.Draw(g, f, ref ptPos, editor, ref iLine); } if (_lineLast != null) { _lineLast.Draw(editor, g, f, ptPos); ptPos.Y += editor.FontHeight; } }
// Update is called once per frame void OnTriggerEnter(Collider other) { if (other.name == tagToTriggerDialog) { // bring up the window GameObject thePlayer = GameObject.Find("Player"); Debug.Log("player at " + thePlayer.transform.position); PlayerAttributes pa = (PlayerAttributes)thePlayer.GetComponent("PlayerAttributes"); Debug.Log("dialogBox location " + pa.textBoxLocation.transform.position); Debug.Log("dialogBox location " + pa.textBoxLocation.transform.localPosition); dialogBox.transform.position = pa.textBoxLocation.transform.position; //dialogBox.transform.position = pa.textBoxLocation.transform.position; TextBoxControl tbc = (TextBoxControl)dialogBox.GetComponent("TextBoxControl"); tbc.ActivateWindow(); // pause the game Time.timeScale = 0.0001f; // destroy if necessary if (destroyTriggerAfterReading) { Destroy(gameObject); } } }
public bool DoModal() { this.WindowManager.PushTextColor(); this.WindowManager.PushTextPosition(); this.WindowManager.SetTextColor(WindowForegroundColor, WindowBackgroundColor); this.WindowManager.DisplayMessageBox(this.Title, 0, this.Width, true); this.WindowManager.GotoPosition(new TextPosition((byte)this.WindowManager.MessageState.TextLowRow, (byte)this.WindowManager.MessageState.TextLeftColumn)); this.WindowManager.ClearWindow(new TextPosition((byte)this.WindowManager.MessageState.TextLowRow, (byte)this.WindowManager.MessageState.TextLeftColumn), new TextPosition((byte)this.WindowManager.MessageState.TextLowRow, (byte)(this.WindowManager.MessageState.TextRightColumn - 1)), 0); this.WindowManager.SetTextColor(TextBoxForegroundColor, TextBoxBackgroundColor); TextBoxControl textBox = new TextBoxControl(this.Interpreter); textBox.Text = this.Text; textBox.MaxTextLength = this.MaxTextLength; bool result = textBox.DoModal(); this.Text = result ? textBox.Text : string.Empty; this.WindowManager.CloseWindow(); this.WindowManager.PopTextPosition(); this.WindowManager.PopTextColor(); return(result); }
public Size CalcSize(Graphics g, Font f, TextBoxControl editor) { Size size = new Size(); if (XmlHeader != null) { Size szTemp = XmlHeader.CalcSize(g, f, editor); if (szTemp.Width > size.Width) { size.Width = szTemp.Width; } size.Height += szTemp.Height; } if (NodeRoot != null) { Size szTemp = NodeRoot.CalcSize(g, f, editor); if (szTemp.Width > size.Width) { size.Width = szTemp.Width; } size.Height += szTemp.Height; } Size = size; NCalc = false; return(size); }
public override void Execute(TextBoxControl editor) { int lineWidth = editor.GetLineWidth(editor.Caret.Position.Y); if (lineWidth <= editor.CalColumnLocation(editor.Caret.Position.Y, editor.Caret.Position.X) && editor.Caret.Position.Y != editor.LineCount) { if (editor.HorizontalScroll.Value != 0 && editor.HorizontalScroll.Visible) { editor.HorizontalScroll.Value = 0; } if ((editor.Caret.Position.Y + 1) * editor.FontHeight > editor.DrawRectangle.Height && editor.VerticalScroll.Visible) { editor.VerticalScroll.Value = Math.Min(editor.VerticalScroll.Maximum, editor.VerticalScroll.Value + editor.FontHeight); } editor.PerformLayout(); editor.Caret.Position = new TextLocation(0, editor.Caret.Position.Y + 1); editor.Caret.UpdateCaretPosition(); } else { int location = editor.GetMovePositionByKey(false); if (location > editor.DrawRectangle.Width && location > editor.HorizontalScroll.Value + editor.DrawRectangle.Width && editor.HorizontalScroll.Visible) { editor.HorizontalScroll.Value = Math.Min(editor.VerticalScroll.Maximum, editor.HorizontalScroll.Value + editor.DrawRectangle.Width); } editor.PerformLayout(); editor.Caret.Position = new TextLocation(editor.CalColumnNumber(editor.Caret.Position.Y, location), editor.Caret.Position.Y); editor.Caret.UpdateCaretPosition(); } }
/// <remarks> /// Executes this edit action /// </remarks> /// <param name="editor">The <see cref="Ieditor"/> which is used for callback purposes</param> public override void Execute(TextBoxControl editor) { int curLineNr = editor.Caret.Line; int iPageLines = editor.ClientSize.Height / editor.FontHeight; int requestedLineNumber = Math.Max((curLineNr - iPageLines), 1); if (curLineNr != requestedLineNumber) { int lineWidth = editor.GetLineWidth(requestedLineNumber); if (editor.CalColumnLocation(editor.Caret.Position.Y, editor.Caret.Position.X) > lineWidth) { if (editor.Caret.Position.Y > 1) { editor.Caret.Position = new TextLocation(editor.CalColumnNumber(requestedLineNumber, lineWidth), requestedLineNumber); editor.Caret.UpdateCaretPosition(); } } else { int oldLocation = editor.CalColumnLocation(editor.Caret.Position.Y, editor.Caret.Position.X); int location = oldLocation > 0 ? oldLocation : 0; editor.Caret.Position = new TextLocation(editor.CalColumnNumber(requestedLineNumber, location), requestedLineNumber); editor.Caret.UpdateCaretPosition(); } if (editor.VerticalScroll.Visible) { editor.VerticalScroll.Value = Math.Max(0, editor.VerticalScroll.Value - iPageLines * editor.FontHeight); editor.PerformLayout(); } } }
public override string GetString(string message, int maxLength, byte row, byte column) { string result = string.Empty; bool inputEditDisabled = !this.InputEditEnabled; this.WindowManager.PushTextPosition(); this.EnableInput(); if (row < 0x19) { this.WindowManager.GotoPosition(new TextPosition(row, column)); } string wrapped = this.WindowManager.WrapText(message, 0x40); this.WindowManager.PrintFormatted(wrapped); TextBoxControl textBox = new TextBoxControl(this.Interpreter); textBox.Text = string.Empty; textBox.MaxTextLength = maxLength; if (textBox.DoModal()) { result = textBox.Text; } this.WindowManager.PopTextPosition(); if (inputEditDisabled) { this.DisableInput(); } return(result); }
public override void Execute(TextBoxControl editor) { if (editor.Caret.Position.Y == editor.LineCount) { return; } int lineWidth = editor.GetLineWidth(editor.Caret.Position.Y + 1); if (editor.CalColumnLocation(editor.Caret.Position.Y, editor.Caret.Position.X) > lineWidth) { editor.Caret.Position = new TextLocation(editor.CalColumnNumber(editor.Caret.Position.Y + 1, lineWidth), editor.Caret.Position.Y + 1); editor.Caret.UpdateCaretPosition(); } else { int oldLocation = editor.CalColumnLocation(editor.Caret.Position.Y, editor.Caret.Position.X); int location = oldLocation > 0 ? oldLocation : 0; editor.Caret.Position = new TextLocation(editor.CalColumnNumber(editor.Caret.Position.Y + 1, location), editor.Caret.Position.Y + 1); editor.Caret.UpdateCaretPosition(); } if (editor.VerticalScroll.Visible && editor.VerticalScroll.Value + editor.DrawRectangle.Height < (editor.Caret.Line - 1) * editor.FontHeight) { editor.VerticalScroll.Value = Math.Min(editor.VerticalScroll.Maximum, editor.VerticalScroll.Value + editor.FontHeight); editor.PerformLayout(); } }
/// <remarks> /// Executes this edit action /// </remarks> /// <param name="textArea">The <see cref="ItextArea"/> which is used for callback purposes</param> public override void Execute(TextBoxControl editor) { if (editor.SelectionManager.HasSomethingSelected) { DeleteSelection(editor); } else { if (editor.ReadOnly) { return; } if (editor.Caret.Line > 0 && editor.Caret.Column > 0 && !editor.ReadOnly) { editor.BeginUpdate(); Paragraph pg = editor.GetParagraph(editor.Caret.Line); if (pg != null) { pg.Remove(editor.Caret.Column, 1); } editor.EndUpdate(); } } }
private LayoutControl BuildEngineGroupControls(EngineGroup group) { var root = new LayoutControl { Direction = LayoutDirection.Horizontal }; //root.Children.Add(new LabelControl { Text = group.GroupId, Width = 100.0f}); var cbx = new ToggleControl { Text = group.GroupId, Width = 100.0f, IsChecked = group.IsEnabled }; root.Children.Add(cbx); var valTextBox = new TextBoxControl { Enabled = false, Width = 40.0f, Text = group.Throttle.ToString("f0") }; var slider = new SliderControl { Direction = LayoutDirection.Horizontal, LeftValue = 1.0f, RightValue = 100.0f, Width = 140.0f, Height = 10.0f, Value = group.Throttle, Enabled = group.IsEnabled, }; slider.ValueChanged += x => { group.Throttle = x; group.ThrottleChanged = true; valTextBox.Text = x.ToString("f0"); }; root.Children.Add(slider); root.Children.Add(valTextBox); cbx.CheckChanged += x => { if (!x) { group.Throttle = 100.0f; group.ThrottleChanged = true; /*slider.Value = 100.0f; * valTextBox.Text = "100";*/ } else { //slider.Enabled = true; group.Throttle = slider.Value; group.ThrottleChanged = true; } slider.Enabled = x; group.IsEnabled = x; }; return(root); }
public override void Execute(TextBoxControl editor) { if (!editor.VerticalScroll.Visible) { return; } editor.VerticalScroll.Value = Math.Min(editor.VerticalScroll.Maximum, editor.VerticalScroll.Value + editor.FontHeight); editor.PerformLayout(); }
public override void Draw(Graphics g, Font f, ref Point ptPos, TextBoxControl editor, ref int iLine) { if (_lineFirst != null) { _lineFirst.Draw(editor, g, f, ptPos); ptPos.Y += editor.Font.Height; } }
public override void Execute(TextBoxControl editor) { base.Execute(editor); List <TextLocation> locationList = editor.GetDoubleClickSelectSegmentInfo(editor.Caret.Position.Y, editor.Caret.Position.X + 1); if (locationList.Count == 2) { editor.Caret.Position = new TextLocation(locationList[0].X, editor.Caret.Position.Y); editor.Caret.UpdateCaretPosition(); } }
public override Size CalcSize(Graphics g, Font f, TextBoxControl editor) { if (_lineFirst != null) { return(_lineFirst.CalcSize(g, f, editor)); } else { return(new Size()); } }
public virtual Size CalcSize(Graphics g, Font f, TextBoxControl editor) { Size size = new Size(); if (_lineFirst != null) { Size sizeTemp = _lineFirst.CalcSize(g, f, editor); if (sizeTemp.Width > size.Width) { size.Width = sizeTemp.Width; } size.Height += sizeTemp.Height; } if (_lstLineText != null && _lstLineText.Count > 0) { foreach (Line line in _lstLineText) { Size sizeTemp = line.CalcSize(g, f, editor); if (sizeTemp.Width > size.Width) { size.Width = sizeTemp.Width; } size.Height += sizeTemp.Height; } } foreach (VXmlNode node in _lstChildNode) { Size sizeTemp = node.CalcSize(g, f, editor); if (sizeTemp.Width > size.Width) { size.Width = sizeTemp.Width; } size.Height += sizeTemp.Height; } if (_lineLast != null) { Size sizeTemp = _lineLast.CalcSize(g, f, editor); if (sizeTemp.Width > size.Width) { size.Width = sizeTemp.Width; } size.Height += sizeTemp.Height; } return(size); }
public override void Execute(TextBoxControl editor) { Bookmark mark = editor.BookmarkManager.GetNextMark(editor.Caret.Line, predicate); if (mark != null) { editor.Caret.Position = mark.Location; editor.SelectionManager.ClearSelection(); //editor.SetDesiredColumn(); } }
public TextDocument(TextBoxControl editor) { _editor = editor; EditorProperties = _editor.EditorProperties; _bookmarkManager = new BookmarkManager(this); XmlHeader = new VXmlHeader(this); //NodeRoot = new VXmlNode("RootNode", this); ReadOnly = false; NCalc = true; m_sFile = ""; }
public void Test02_CalcResult() { var b = new ButtonControl(); b.SystemUnderTestFromRepo("4"); b.Click(); var textBox = new TextBoxControl(); textBox.SystemUnderTestFromRepo("result"); Assert.AreEqual("4", textBox.Name); }
public override void Execute(TextBoxControl editor) { int lineWidth = editor.GetLineWidth(editor.Caret.Line); int colNum = editor.CalColumnNumber(editor.Caret.Line, lineWidth); editor.Caret.Position = new TextLocation(colNum, editor.Caret.Line); editor.Caret.UpdateCaretPosition(); if (lineWidth > editor.DrawRectangle.Width && editor.HorizontalScroll.Visible) { editor.HorizontalScroll.Value = Math.Min(editor.HorizontalScroll.Maximum, editor.HorizontalScroll.Value + lineWidth - editor.DrawRectangle.Width); editor.PerformLayout(); } }
internal static void DeleteSelection(TextBoxControl editor) { Debug.Assert(editor.SelectionManager.HasSomethingSelected); if (editor.SelectionManager.SelectionIsReadonly) { return; } editor.BeginUpdate(); editor.Caret.Position = editor.SelectionManager.SelectionCollection[0].StartPosition; editor.SelectionManager.RemoveSelectedText(); editor.ScrollToCaret(); editor.EndUpdate(); }
public void TestRightClickContextMenu_Copy_PasteUsingRepo() { TextBoxOne.Text = "right click copy"; var textBox2 = new TextBoxControl(); textBox2.SystemUnderTestFromRepo("text box2"); textBox2.Text = "box2"; TextBoxOne.Wait(2); TextBoxOne.ContextMenuClick("Select All"); TextBoxOne.ContextMenuClick("Copy"); textBox2.ContextMenuClick("Select All"); textBox2.ContextMenuClick("Paste"); Assert.AreEqual(TextBoxOne.Text, textBox2.Text); }
protected void Page_Load(object sender, EventArgs e) { //OverView of MaxLength, Password, ReadOnly, ToolTip. //TextBoxControl.Text = "Adrian"; TextBoxControl.ToolTip = "Please Enter Your Name"; TextBoxControl.MaxLength = 6; //TextBoxControl.ReadOnly = true; //Focus adds cursor set to write. TextBoxControl.Focus(); //AutopostBack is fired automatically when changed. TextBoxControl.AutoPostBack = true; }
public override void Execute(TextBoxControl editor) { TextLocation homeLocation = editor.GetLineHomeInfo(editor.Caret.Line); if (homeLocation != TextLocation.Empty) { editor.Caret.Position = homeLocation; editor.Caret.UpdateCaretPosition(); if (editor.HorizontalScroll.Value != 0 && editor.HorizontalScroll.Visible) { editor.HorizontalScroll.Value = 0; editor.PerformLayout(); } } }
//private bool m_LastCharWasAScopeOperator = false; #endregion #region Properties #endregion #region Constructors public IntellisenseManager(TextBoxControl editor) { m_editor = editor; m_editor.InsertCharEvent += new InsertCharHandle(m_editor_InsertCharEvent); m_IntellisenseBox = new IntellisenseListBox(); #region Setup intellisense box //Setup intellisense box editor.Controls.Add(m_IntellisenseBox); m_IntellisenseBox.Size = new Size(250, 150); m_IntellisenseBox.Visible = false; m_IntellisenseBox.KeyDown += new System.Windows.Forms.KeyEventHandler(IntellisenseBox_KeyDown); // += new KeyEventHandler(IntellisenseBox_KeyDown); m_IntellisenseBox.DoubleClick += new EventHandler(IntellisenseBox_DoubleClick); #endregion }
public void CreateDailyFoodList(string[] dailyFoodList) { textBoxControlScript = GameObject.Find("Manager").GetComponent <TextBoxControl>(); scroolviewContent = GameObject.Find("Content_FoodSelection").GetComponent <Transform>(); foreach (Transform child in scroolviewContent) { Destroy(child.gameObject); } foreach (string singleFood in dailyFoodList) { GameObject newFood = Instantiate(removeFoodButtonPrefab, scroolviewContent); newFood.GetComponentInChildren <Text>().text = singleFood; } }
public override void Execute(TextBoxControl editor) { if (editor.Caret.Line != 0 || editor.Caret.Column != 0) { editor.Caret.Position = new TextLocation(0, 1); if (editor.VerticalScroll.Visible) { editor.VerticalScroll.Value = editor.VerticalScroll.Minimum; } if (editor.HorizontalScroll.Visible) { editor.HorizontalScroll.Value = editor.HorizontalScroll.Minimum; } editor.PerformLayout(); } }
public void Test_TextBoxControl() { BaseControl ctrl = new TextBoxControl() { Type = "text", Label = "Hello", ClassName = "form-control", Id = int.MinValue.ToString(), Name = int.MinValue.ToString() }; var actualResult = ctrl.ToString(); string expectedResult = "<div class=\"form-group\"><label for=\"txt_0\">Hello</label><input name=\"txt_0\" class=\"form-control\" id=\"txt_0\" type=\"text\"/></div>"; Assert.Equal(expectedResult, actualResult); }
public GeneralPanel() { InitializeComponent(); MainPanel = panel1; this.Click += new EventHandler(GeneralPanel_Click); panel1.Click += new EventHandler(GeneralPanel_Click); dataPanel.Click += new EventHandler(GeneralPanel_Click); titleBox = new TextBoxControl(); titleBox.OnTextChanged += new EventHandler(OnChanged); titlePanel = new GeneralItemPanel(Kernel.Instance.GetString("TitleStr"), titleBox, 24); originalTitleBox = new TextBoxControl(); originalTitleBox.OnTextChanged += new EventHandler(OnChanged); originalTitlePanel = new GeneralItemPanel(Kernel.Instance.GetString("OriginalTitleStr"), originalTitleBox, 24); sortTitleBox = new TextBoxControl(); sortTitleBox.OnTextChanged += new EventHandler(OnChanged); sortTitlePanel = new GeneralItemPanel(Kernel.Instance.GetString("SortTitleStr"), sortTitleBox, 24); addedBox = new DateTimeControl(); addedBox.OnValueChanged += new EventHandler(OnChanged); addedPanel = new GeneralItemPanel(Kernel.Instance.GetString("DateAddedStr"), addedBox, 24); yearBox = new TextBoxControl(); yearBox.OnTextChanged += new EventHandler(OnChanged); yearPanel = new GeneralItemPanel(Kernel.Instance.GetString("YearStr"), yearBox, 24); runTimeBox = new NumericBoxControl(); runTimeBox.OnTextChanged += new EventHandler(OnChanged); runTimePanel = new GeneralItemPanel(Kernel.Instance.GetString("RuntimeStr"), runTimeBox, 24); ratingBox = new NumericBoxControl(); ratingBox.decimals = 1; ratingBox.increment = (decimal)0.1; ratingBox.OnTextChanged += new EventHandler(OnChanged); ratingPanel = new GeneralItemPanel(Kernel.Instance.GetString("RatingStr"), ratingBox, 24); mpaaBox = new ComboBoxControl(); mpaaBox.choices = new string[] { "G", "NC-17", "NR", "PG", "PG-13", "R" }; mpaaBox.OnTextChanged += new EventHandler(OnChanged); mpaaPanel = new GeneralItemPanel(Kernel.Instance.GetString("MpaaStr"), mpaaBox, 24); overviewBox = new TextBoxControl(); overviewBox.multiLine = true; overviewBox.OnTextChanged += new EventHandler(OnChanged); overviewPanel = new GeneralItemPanel(Kernel.Instance.GetString("OverviewStr"), overviewBox, 100); mediaTypeBox = new ComboBoxControl(); mediaTypeBox.choices = new string[] { "AVI", "Blu-Ray", "DVD", "HD-DVD", "MKV" }; mediaTypeBox.OnTextChanged += new EventHandler(OnChanged); mediaTypePanel = new GeneralItemPanel(Kernel.Instance.GetString("MediaTypeStr"), mediaTypeBox, 24); ratioBox = new ComboBoxControl(); ratioBox.choices = new string[] { "1.33:1", "1.78:1", "1.85:1", "2.35:1", "2.40:1" }; ratioBox.OnTextChanged += new EventHandler(OnChanged); ratioPanel = new GeneralItemPanel(Kernel.Instance.GetString("RatioStr"), ratioBox, 24); watchedBox = new ComboBoxControl(); watchedBox.choices = new string[] { Kernel.Instance.GetString("YesStr"), Kernel.Instance.GetString("No") }; watchedBox.OnTextChanged += new EventHandler(OnChanged); watchedPanel = new GeneralItemPanel(Kernel.Instance.GetString("WatchedStr"), watchedBox, 24); seriesBox = new TextBoxControl(); seriesBox.OnTextChanged += new EventHandler(OnChanged); seriesPanel = new GeneralItemPanel(Kernel.Instance.GetString("SeriesStr"), seriesBox, 24); seasonBox = new TextBoxControl(); seasonBox.OnTextChanged += new EventHandler(OnChanged); seasonPanel = new GeneralItemPanel(Kernel.Instance.GetString("SeasonStr"), seasonBox, 24); episodeBox = new TextBoxControl(); episodeBox.OnTextChanged += new EventHandler(OnChanged); episodePanel = new GeneralItemPanel(Kernel.Instance.GetString("EpisodeStr"), episodeBox, 24); idBox = new IdControl(); idBox.OnTextChanged += new EventHandler(OnChanged); idPanel = new GeneralItemPanel("ID", idBox, 24); this.CreateGraphics(); }