aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/MUDControlCentre.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Applications/MUDControlCentre.cs')
-rw-r--r--ShiftOS.WinForms/Applications/MUDControlCentre.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/MUDControlCentre.cs b/ShiftOS.WinForms/Applications/MUDControlCentre.cs
index 443d6cf..90c0021 100644
--- a/ShiftOS.WinForms/Applications/MUDControlCentre.cs
+++ b/ShiftOS.WinForms/Applications/MUDControlCentre.cs
@@ -683,7 +683,42 @@ Current legions: {legionname}";
private void btnaddshopitem_Click(object sender, EventArgs e)
{
+ AppearanceManager.SetupWindow(new ShopItemCreator(new ShopItem(), new Action<ShopItem>((item) =>
+ {
+ editingShop.Items.Add(item);
+ })));
+ }
+
+ private void btnremoveitem_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ int i = lbeditingshopitems.SelectedIndex;
+ editingShop.Items.RemoveAt(i);
+ PopulateShopEditor();
+ }
+ catch
+ {
+
+ }
+ }
+
+ private void btnedititem_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ int i = lbeditingshopitems.SelectedIndex;
+ AppearanceManager.SetupWindow(new ShopItemCreator(editingShop.Items[i], new Action<ShopItem>((item) =>
+ {
+ editingShop.Items[i] = item;
+ })));
+ PopulateShopEditor();
+ }
+ catch
+ {
+
+ }
}
}
}