SND\eagleeyestudios_cp 8b735c16c2 Content Compiler:
- Added Developer Attributes & did some cleaning
- Fixed RibbonButton image aligning bug (Worldicon not centered)
- Added some comments to da code
- Implemented cleaning of ContentProject (Deleting bin files)
2012-09-10 19:10:39 +00:00

35 lines
960 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using ANX.ContentCompiler.GUI.Dialogues;
using ANX.Framework.NonXNA.Development;
namespace ANX.ContentCompiler.GUI.Controls
{
[Developer("SilentWarrior/Eagle Eye Studios")]
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
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();
}
}
}
}