Пример #1
0
        private void questInfoCb_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            XmlKeyValue       qi   = (XmlKeyValue)questInfoCb.SelectedValue;
            BitmaskStackPanel bmsp = (BitmaskStackPanel)questFlagsGb.Content;

            if (qi != null && (qi.Id == 88 || qi.Id == 89))
            {
                bmsp.SetValueIsChecked(64, true);
            }
            else
            {
                bmsp.SetValueIsChecked(64, false);
            }
        }
Пример #2
0
 /// <summary>
 /// Set flags for the given BMSP
 /// </summary>
 /// <param name="bmsp"></param>
 /// <param name="flags"></param>
 public void SetBmspValues(BitmaskStackPanel bmsp, int[] flags)
 {
     foreach (int flag in flags)
     {
         bmsp.SetValueIsChecked(flag, true);
     }
 }