Ejemplo n.º 1
0
        private void statueChecklist_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (initializing)
            {
                return;
            }
            if (IsHandleCreated)
            {
                this.BeginInvoke(new Action(() =>
                {
                    byte newStatues = 0;

                    for (int i = 0; i < 5; i++)
                    {
                        if (statueChecklist.GetItemChecked(i))
                        {
                            newStatues |= (byte)statueIndices[i];
                        }
                    }

                    if (newStatues != (byte)statues)
                    {
                        dolphin.SetStatues(newStatues);
                        statues = (WWStatueMask)newStatues;
                    }
                }));
            }
        }
Ejemplo n.º 2
0
        public Trainer_Statues(DolphinManager d, WWStatueMask s)
        {
            dolphin = d;
            statues = s;
            InitializeComponent();

            SetCheckboxesFromStatues();
        }