public SAV_OPower(IOPower sav) { InitializeComponent(); WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage); Origin = (SaveFile)sav; SAV = Origin.Clone(); Data = ((IOPower)SAV).OPower; Current = Types[0]; foreach (var z in Types) { CB_Type.Items.Add(z.ToString()); } CB_Type.SelectedIndex = 0; CHK_Master.Checked = Data.MasterFlag; LoadCurrent(); CB_Type.SelectedIndexChanged += (s, e) => { SaveCurrent(); LoadCurrent(); }; B_ClearAll.Click += (s, e) => { Data.ClearAll(); LoadCurrent(); }; B_GiveAll.Click += (s, e) => { Data.UnlockRegular(); LoadCurrent(); }; B_GiveAllMAX.Click += (s, e) => { Data.UnlockAll(); LoadCurrent(); }; }