예제 #1
0
        private void FoundryChestMatchList_Click(object sender, int row, int col)
        {
            try
            {
                HudList.HudListRowAccessor HudRow = FoundryChestMatchList[row];

                if(col == 1)
                {
                    mGeneralSettings.FoundrySettings.ChestKeyMatchList.RemoveAll(x => x.ChestName == ((HudStaticText)HudRow[0]).Text);
                    iLockerUpdate.bSubmitGeneralSettings = true;
                    mCurrentKeyChestMatch = null;
                }
                else
                {
                    mCurrentKeyChestMatch = mGeneralSettings.FoundrySettings.ChestKeyMatchList.Find(x => x.ChestName == ((HudStaticText)HudRow[0]).Text);
                }
                _UpdateFoundryControlPanel();

            }catch(Exception ex){LogError(ex);}
        }
예제 #2
0
 private void FoundryChestMatchAdd_Hit(object sender, EventArgs e)
 {
     try
     {
         ChestKeyMatch ckml = new ChestKeyMatch();
         ckml.ChestName = @FoundryChestMatchEdit.Text.Trim();
         mGeneralSettings.FoundrySettings.ChestKeyMatchList.Add(@ckml);
         mCurrentKeyChestMatch = mGeneralSettings.FoundrySettings.ChestKeyMatchList.Find(x => @x.ChestName == @FoundryChestMatchEdit.Text.Trim());
         iLockerUpdate.bSubmitGeneralSettings = true;
         _UpdateFoundryControlPanel();
     }catch(Exception ex){LogError(ex);}
 }