corrade-vassal – Diff between revs 3 and 7
?pathlinks?
Rev 3 | Rev 7 | |||
---|---|---|---|---|
Line 64... | Line 64... | |||
64 | Vassal.vassalForm.BatchRestartGridView.Rows.Clear(); |
64 | Vassal.vassalForm.BatchRestartGridView.Rows.Clear(); |
|
65 | foreach (KeyValuePair<string, Vector3> data in ConfiguredRegions) |
65 | foreach (KeyValuePair<string, Vector3> data in ConfiguredRegions) |
|
66 | { |
66 | { |
|
67 | Vassal.vassalForm.BatchRestartGridView.Rows.Add(data.Key, data.Value); |
67 | Vassal.vassalForm.BatchRestartGridView.Rows.Add(data.Key, data.Value); |
|
68 | } |
68 | } |
|
- | 69 | // Update region state grid view. |
||
- | 70 | Vassal.vassalForm.RegionsStateGridView.Rows.Clear(); |
||
- | 71 | foreach (KeyValuePair<string, Vector3> data in ConfiguredRegions) |
||
- | 72 | { |
||
- | 73 | Vassal.vassalForm.RegionsStateGridView.Rows.Add(data.Key, "Check pending...", |
||
- | 74 | DateTime.Now.ToUniversalTime() |
||
- | 75 | .ToString(Vassal.LINDEN_CONSTANTS.LSL.DATE_TIME_STAMP)); |
||
- | 76 | } |
||
69 | })); |
77 | })); |
|
Line 70... | Line 78... | |||
70 | |
78 | |
|
71 | Regions.Items.Clear(); |
79 | Regions.Items.Clear(); |
|
72 | Regions.Items.AddRange( |
80 | Regions.Items.AddRange( |
|
Line 192... | Line 200... | |||
192 | Text = RegionName.Text, |
200 | Text = RegionName.Text, |
|
193 | Tag = position |
201 | Tag = position |
|
194 | }); |
202 | }); |
|
195 | // Add the row to the batch restart grid view. |
203 | // Add the row to the batch restart grid view. |
|
196 | Vassal.vassalForm.BatchRestartGridView.Rows.Add(RegionName.Text, position.ToString()); |
204 | Vassal.vassalForm.BatchRestartGridView.Rows.Add(RegionName.Text, position.ToString()); |
|
- | 205 | Vassal.vassalForm.RegionsStateGridView.Rows.Add(RegionName.Text, "Check pending...", |
||
- | 206 | DateTime.Now.ToUniversalTime() |
||
- | 207 | .ToString(Vassal.LINDEN_CONSTANTS.LSL.DATE_TIME_STAMP)); |
||
197 | })); |
208 | })); |
|
198 | })); |
209 | })); |
|
199 | } |
210 | } |
|
Line 200... | Line 211... | |||
200 | |
211 | |
|
Line 218... | Line 229... | |||
218 | Vassal.vassalForm.BeginInvoke((MethodInvoker)(() => |
229 | Vassal.vassalForm.BeginInvoke((MethodInvoker)(() => |
|
219 | { |
230 | { |
|
220 | Vassal.vassalForm.LoadedRegions.Items.RemoveAt(selectedItemIndex); |
231 | Vassal.vassalForm.LoadedRegions.Items.RemoveAt(selectedItemIndex); |
|
221 | // Update the batch restart grid view. |
232 | // Update the batch restart grid view. |
|
222 | Vassal.vassalForm.BatchRestartGridView.Rows.RemoveAt(selectedItemIndex); |
233 | Vassal.vassalForm.BatchRestartGridView.Rows.RemoveAt(selectedItemIndex); |
|
- | 234 | Vassal.vassalForm.RegionsStateGridView.Rows.RemoveAt(selectedItemIndex); |
||
223 | })); |
235 | })); |
|
Line 224... | Line 236... | |||
224 | |
236 | |
|
Line 225... | Line 237... | |||
225 | Regions.Items.RemoveAt(Regions.SelectedIndex); |
237 | Regions.Items.RemoveAt(Regions.SelectedIndex); |
|
Line 275... | Line 287... | |||
275 | = RegionName.Text; |
287 | = RegionName.Text; |
|
276 | Vassal.vassalForm.BatchRestartGridView.Rows[selectedItemIndex].Cells["BatchRestartPosition"] |
288 | Vassal.vassalForm.BatchRestartGridView.Rows[selectedItemIndex].Cells["BatchRestartPosition"] |
|
277 | .Value |
289 | .Value |
|
278 | = position.ToString(); |
290 | = position.ToString(); |
|
279 | } |
291 | } |
|
- | 292 | // Update the region state grid view. |
||
- | 293 | if (Vassal.vassalForm.RegionsStateGridView.Rows.Count > selectedItemIndex) |
||
- | 294 | { |
||
- | 295 | Vassal.vassalForm.RegionsStateGridView.Rows[selectedItemIndex].Cells["RegionsStateRegionName"] |
||
- | 296 | .Value |
||
- | 297 | = RegionName.Text; |
||
- | 298 | Vassal.vassalForm.RegionsStateGridView.Rows[selectedItemIndex].Cells["RegionsStateLastState"] |
||
- | 299 | .Value |
||
- | 300 | = "Check pending..."; |
||
- | 301 | Vassal.vassalForm.RegionsStateGridView.Rows[selectedItemIndex].Cells["RegionsStateLastCheck"] |
||
- | 302 | .Value |
||
- | 303 | = DateTime.Now.ToUniversalTime() |
||
- | 304 | .ToString(Vassal.LINDEN_CONSTANTS.LSL.DATE_TIME_STAMP); |
||
- | 305 | } |
||
280 | })); |
306 | })); |
|
Line 281... | Line 307... | |||
281 | |
307 | |
|
282 | Regions.Items[selectedItemIndex] = new ListViewItem |
308 | Regions.Items[selectedItemIndex] = new ListViewItem |
|
283 | { |
309 | { |