Skip to content

Commit 7585adb

Browse files
authored
Add Maya 2022 support (#1016)
1 parent 00af258 commit 7585adb

File tree

2 files changed

+122
-10
lines changed

2 files changed

+122
-10
lines changed

BabylonJS_Installer/BabylonJS_Installer/MainForm.Designer.cs

Lines changed: 106 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BabylonJS_Installer/BabylonJS_Installer/MainForm.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public MainForm()
3434
this.versions["Max"].Add("2017", "19");
3535
this.versions["Max"].Add("2015", "17");
3636
this.versions["Maya"] = new Dictionary<string, string>();
37+
this.versions["Maya"].Add("2022", "22");
3738
this.versions["Maya"].Add("2020", "21");
3839
this.versions["Maya"].Add("2019", "20");
3940
this.versions["Maya"].Add("2018", "19");
@@ -59,6 +60,7 @@ public MainForm()
5960
this.labels["Max"].Add("2017", new[] { this.label_Max17_Info, this.label_Max17_ExpDate });
6061
this.labels["Max"].Add("2015", new[] { this.label_Max15_Info, this.label_Max15_ExpDate });
6162
this.labels["Maya"] = new Dictionary<string, Label[]>();
63+
this.labels["Maya"].Add("2022", new[] { this.label_Maya22_Info, this.label_Maya22_ExpDate });
6264
this.labels["Maya"].Add("2020", new[] { this.label_Maya20_Info, this.label_Maya20_ExpDate });
6365
this.labels["Maya"].Add("2019", new[] { this.label_Maya19_Info, this.label_Maya19_ExpDate });
6466
this.labels["Maya"].Add("2018", new[] { this.label_Maya18_Info, this.label_Maya18_ExpDate });
@@ -74,6 +76,7 @@ public MainForm()
7476
this.buttons["Max"].Add("2017", new[] { this.button_Max17_Update, this.button_Max17_Delete, this.button_Max17_Locate });
7577
this.buttons["Max"].Add("2015", new[] { this.button_Max15_Update, this.button_Max15_Delete, this.button_Max15_Locate });
7678
this.buttons["Maya"] = new Dictionary<string, Button[]>();
79+
this.buttons["Maya"].Add("2022", new[] { this.button_Maya22_Update, this.button_Maya22_Delete, this.button_Maya22_Locate });
7780
this.buttons["Maya"].Add("2020", new[] { this.button_Maya20_Update, this.button_Maya20_Delete, this.button_Maya20_Locate });
7881
this.buttons["Maya"].Add("2019", new[] { this.button_Maya19_Update, this.button_Maya19_Delete, this.button_Maya19_Locate });
7982
this.buttons["Maya"].Add("2018", new[] { this.button_Maya18_Update, this.button_Maya18_Delete, this.button_Maya18_Locate });
@@ -263,6 +266,10 @@ private void Button_Max15_Update_Click(object sender, EventArgs e)
263266
this.button_update("Max", "2015");
264267
}
265268

269+
private void Button_Maya22_Update_Click(object sender, EventArgs e)
270+
{
271+
this.button_update("Maya", "2022");
272+
}
266273
private void Button_Maya20_Update_Click(object sender, EventArgs e)
267274
{
268275
this.button_update("Maya", "2020");
@@ -338,6 +345,10 @@ private void Button_Max15_Delete_Click(object sender, EventArgs e)
338345
this.button_delete("Max", "2015");
339346
}
340347

348+
private void Button_Maya22_Delete_Click(object sender, EventArgs e)
349+
{
350+
this.button_delete("Maya", "2022");
351+
}
341352
private void Button_Maya20_Delete_Click(object sender, EventArgs e)
342353
{
343354
this.button_delete("Maya", "2020");
@@ -416,6 +427,11 @@ private void Button_Maya20_Locate_Click(object sender, EventArgs e)
416427
this.button_locate("Maya", "2020");
417428
}
418429

430+
private void Button_Maya22_Locate_Click(object sender, EventArgs e)
431+
{
432+
this.button_locate("Maya", "2022");
433+
}
434+
419435
private void Button_Maya19_Locate_Click(object sender, EventArgs e)
420436
{
421437
this.button_locate("Maya", "2019");
@@ -432,6 +448,5 @@ private void Button_Maya17_Locate_Click(object sender, EventArgs e)
432448
}
433449

434450
#endregion
435-
436451
}
437452
}

0 commit comments

Comments
 (0)