From 1bf77201d1b9f272a0a84c3485d074260cbba350 Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 18 Sep 2014 00:23:40 +0000 Subject: [PATCH] Tastudio - adjust marker view column widths, and a bit of code cleanup there --- .../tools/TAStudio/MarkerControl.cs | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/MarkerControl.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/MarkerControl.cs index 8dfe0d9cb5..bddbaf8152 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/MarkerControl.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/MarkerControl.cs @@ -20,20 +20,22 @@ namespace BizHawk.Client.EmuHawk public MarkerControl() { InitializeComponent(); - - var col1 = new InputRoll.RollColumn() + + MarkerView.Columns.AddRange(new InputRoll.RollColumn[] { - Name = "FrameColumn", - Text = "Frame", - Width = 64, - }; - var col2 = new InputRoll.RollColumn() - { - Name = "LabelColumn", - Text = "Label", - Width = 113, - }; - MarkerView.Columns.AddRange(new InputRoll.RollColumn[]{col1, col2}); + new InputRoll.RollColumn + { + Name = "FrameColumn", + Text = "Frame", + Width = 64 + }, + new InputRoll.RollColumn + { + Name = "LabelColumn", + Text = "Label", + Width = 133 + } + }); MarkerView.QueryItemBkColor += MarkerView_QueryItemBkColor; MarkerView.QueryItemText += MarkerView_QueryItemText;