public ClutterParamsForm() { this.components = null; this.m_ActualExistMarker = false; this.InitializeComponent(); TableClutterParams param = new TableClutterParams(); Dictionary<short, string> clutter = new Dictionary<short, string>(); clutter.Add(1, "LAND"); clutter.Add(2, "Ocean"); clutter.Add(3, "Mountain"); param.InitialData(clutter); this.iClutterParamsBindingSource.DataSource = param; this.dgvActualClutterParams.DataSource = this.iClutterParamsBindingSource; }
private static TableClutterParams LoadOneTable(ClutterParameters[] parameters) { if (parameters == null) { return null; } TableClutterParams param = new TableClutterParams(); foreach (ClutterParameters parameters2 in parameters) { param.InitialData(parameters2); } return param; }
public void InitDefaultTabPage() { TableClutterParams param = new TableClutterParams(); Dictionary<short, string> clutter = new Dictionary<short, string>(); clutter.Add(-1, "DefaultName"); param.InitialData(clutter); this.m_DefaultTableClutterParams = param; }
public void InitActualTabPage(Dictionary<short, string> clutter) { this.tabPageActualValue.IsAccessible = false; if (clutter != null) { TableClutterParams param = new TableClutterParams(); param.InitialData(clutter); this.m_ActualTableClutterParams = param; this.tabPageActualValue.IsAccessible = true; if (null != this.m_ActualTableClutterParams) { this.m_ActualExistMarker = true; } } }