Beispiel #1
0
        public Trainer_Charts(DolphinManager d, WWChartMask c)
        {
            charts  = c;
            dolphin = d;
            InitializeComponent();

            SetCheckboxesFromCharts();
        }
Beispiel #2
0
        public void RemoveChart(WWChartMask charts)
        {
            WWPacket chartPacket = new WWPacket(PacketType.RemoveChart);

            byte[] chartBytes = BitConverter.GetBytes((long)charts);
            Array.Copy(chartBytes, chartPacket.data, 8);
            WritePacket(chartPacket);
        }
Beispiel #3
0
        private void ToggleChart(object sender, WWChartMask chart)
        {
            if (initializing)
            {
                return;
            }

            CheckBox box = sender as CheckBox;

            if (box.Checked)
            {
                dolphin.GiveChart(chart);
            }
            else
            {
                dolphin.RemoveChart(chart);
            }
        }