2012-09-09 15:44:49 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using ANX.ContentCompiler.GUI.Dialogues;
|
2012-09-10 19:10:39 +00:00
|
|
|
|
using ANX.Framework.NonXNA.Development;
|
2012-09-09 15:44:49 +00:00
|
|
|
|
|
|
|
|
|
namespace ANX.ContentCompiler.GUI.Controls
|
|
|
|
|
{
|
2012-09-10 19:10:39 +00:00
|
|
|
|
[Developer("SilentWarrior/Eagle Eye Studios")]
|
|
|
|
|
[PercentageComplete(100)]
|
|
|
|
|
[TestState(TestStateAttribute.TestState.Tested)]
|
2012-09-09 15:44:49 +00:00
|
|
|
|
public partial class RibbonTextBox : UserControl
|
|
|
|
|
{
|
|
|
|
|
public RibbonTextBox()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void AddMessage(string msg)
|
|
|
|
|
{
|
|
|
|
|
List<string> contents = textBox.Lines.ToList();
|
|
|
|
|
contents.Add(msg);
|
|
|
|
|
textBox.Lines = contents.ToArray();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void ButtonDownClick(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
using (var dlg = new ErrorLogScreen(textBox.Lines))
|
|
|
|
|
{
|
|
|
|
|
dlg.ShowDialog();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2012-09-10 19:10:39 +00:00
|
|
|
|
}
|