Exemple #1
0
        private void ClickShowLegality(object sender, EventArgs e)
        {
            SlotChangeManager m = GetSenderInfo(ref sender, out SlotChange info);

            if (m == null)
            {
                return;
            }

            var pk = m.GetPKM(info);

            RequestEditorLegality?.Invoke(sender, e, pk);
        }
Exemple #2
0
        private void ClickView(object sender, EventArgs e)
        {
            SlotChangeManager m = GetSenderInfo(ref sender, out SlotChange info);

            if (m == null)
            {
                return;
            }
            if ((sender as PictureBox)?.Image == null)
            {
                System.Media.SystemSounds.Asterisk.Play(); return;
            }

            m.SE.PKME_Tabs.PopulateFields(m.GetPKM(info), false, true);
            m.SetColor(info.Box, info.Slot, Resources.slotView);
        }
Exemple #3
0
        public static void ClickView(object sender, EventArgs e)
        {
            SlotChangeManager m = GetSenderInfo(ref sender, out SlotChange info);

            if (m == null)
            {
                return;
            }
            if ((sender as PictureBox)?.Image == null)
            {
                return;
            }

            m.SE.PKME_Tabs.PopulateFields(m.GetPKM(info), false, true);
            m.SetColor(info.Box, info.Slot, Resources.slotView);
        }