Skip to content

Commit 0ed6942

Browse files
committed
cleanup usings
1 parent 92942b1 commit 0ed6942

File tree

6 files changed

+3
-80
lines changed

6 files changed

+3
-80
lines changed

OpenLocoTool/DatFileParsing/SawyerStreamReader.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
using System.Diagnostics;
22
using System.Numerics;
33
using System.Reflection;
4-
using System.Reflection.PortableExecutable;
54
using System.Text;
65
using OpenLocoTool.Headers;
76
using OpenLocoTool.Objects;
87
using OpenLocoToolCommon;
9-
using Zenith.Core;
108

119
namespace OpenLocoTool.DatFileParsing
1210
{

OpenLocoTool/Objects/CargoObject.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System.ComponentModel;
22
using OpenLocoTool.DatFileParsing;
33
using OpenLocoTool.Headers;
4-
using OpenLocoTool;
54

65
namespace OpenLocoTool.Objects
76
{

OpenLocoToolGui/MainForm.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using OpenLocoTool.Headers;
55
using OpenLocoTool.Objects;
66
using OpenLocoToolCommon;
7-
using System.Drawing;
87
using System.Drawing.Imaging;
98

109
namespace OpenLocoToolGui

OpenLocoToolGui/Properties/DataSources/OpenLocoTool.DatFileParsing.LocoObject.datasource

Lines changed: 0 additions & 10 deletions
This file was deleted.

OpenLocoToolGui/StringTableUserControl.Designer.cs

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,19 @@
11
using OpenLocoTool;
2-
using System;
3-
using System.Collections.Generic;
42
using System.ComponentModel;
5-
using System.Data;
6-
using System.Drawing;
7-
using System.Drawing.Design;
8-
using System.Linq;
9-
using System.Text;
10-
using System.Threading.Tasks;
11-
using System.Windows.Forms;
12-
using System.Windows.Forms.Design;
133

144
namespace OpenLocoToolGui
155
{
166
public partial class StringTableUserControl : UserControl
177
{
188
private BindingList<string> blKeys = new BindingList<string>();
19-
//Dictionary<string, Dictionary<LanguageId, string>> boundData;
209

2110
public StringTableUserControl()
2211
{
2312
InitializeComponent();
24-
25-
// Set up data binding for the inner dictionary DataGridView.
26-
//dgvLanguageSelector.DataSource = innerDataBindingList;
2713
}
2814

2915
public void SetDataBinding(Dictionary<string, Dictionary<LanguageId, string>> data)
3016
{
31-
//boundData = data;
32-
3317
blKeys.Clear();
3418
foreach (var key in data.Keys)
3519
{
@@ -49,53 +33,4 @@ public void SetDataBinding(Dictionary<string, Dictionary<LanguageId, string>> da
4933
};
5034
}
5135
}
52-
53-
//public class MyPropertyTypeConverter : TypeConverter
54-
//{
55-
// public override bool GetPropertiesSupported(ITypeDescriptorContext context)
56-
// {
57-
// return true;
58-
// }
59-
60-
// public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
61-
// {
62-
// // Return the PropertyDescriptors for the properties of your custom UserControl.
63-
// // You can create custom PropertyDescriptors if needed.
64-
// return TypeDescriptor.GetProperties(value, attributes);
65-
// }
66-
//}
67-
68-
69-
//public class MyPropertyUIEditor : UITypeEditor
70-
//{
71-
// public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
72-
// {
73-
// return UITypeEditorEditStyle.Modal;
74-
// }
75-
76-
// public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
77-
// {
78-
// if (provider != null)
79-
// {
80-
// IWindowsFormsEditorService editorService = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));
81-
82-
// if (editorService != null)
83-
// {
84-
// // Create an instance of your custom UserControl.
85-
// StringTableUserControl userControl = new StringTableUserControl();
86-
// // Set its value based on the current property value.
87-
// userControl.PropertyValue = (YourPropertyType)value;
88-
89-
// // Show your UserControl in a dialog.
90-
// editorService.ShowDialog(userControl);
91-
92-
// // Return the updated value from your UserControl.
93-
// return userControl.PropertyValue;
94-
// }
95-
// }
96-
97-
// return base.EditValue(context, provider, value);
98-
// }
99-
//}
100-
10136
}

0 commit comments

Comments
 (0)