Пример #1
0
        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            if (dgvHiddenGrottos.SelectedRows[0] != null)
            {
                var iframe = (Hollow) dgvHiddenGrottos.SelectedRows[0].DataBoundItem;

                const uint advances = 0;
                int profile = comboBoxProfiles.SelectedIndex;
                var adjacents = new Adjacents(iframe.DateTime,
                                              profile, iframe.Keypresses,
                                              FrameType.BWBred, EncounterType.HiddenGrotto,
                                              advances);
                adjacents.Show();
            }
        }
Пример #2
0
        private void generateAdjacentSeedsToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (dataGridViewShinyResults.SelectedRows[0] != null)
            {
                var iframe = (IFrameCapture) dataGridViewShinyResults.SelectedRows[0].DataBoundItem;

                const uint advances = 0;
                int profile = comboBoxProfiles.SelectedIndex;
                var adjacents = new Adjacents(iframe.TimeDate,
                                              profile, iframe.KeyPresses,
                                              FrameType.BWBred, iframe.Frame.EncounterType,
                                              advances);
                adjacents.Show();
            }
        }
Пример #3
0
        private void generateAdjacentSeedsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (dataGridViewCapValues.SelectedRows[0] != null)
            {
                var iframe = (IFrameCapture) dataGridViewCapValues.SelectedRows[0].DataBoundItem;

                uint advances = 0;

                switch (iframe.Frame.FrameType)
                {
                    case FrameType.Method5Standard:
                        advances = iframe.Offset;
                        break;
                    case FrameType.Method5Natures:
                    case FrameType.Wondercard5thGen:
                    case FrameType.Wondercard5thGenFixed:
                        advances = iframe.Advances;
                        break;
                }
                int profile = comboBoxProfiles.SelectedIndex;
                var adjacents = new Adjacents(iframe.TimeDate,
                                              profile, iframe.KeyPresses,
                                              iframe.Frame.FrameType, iframe.Frame.EncounterType,
                                              advances);
                adjacents.Show();
            }
        }
Пример #4
0
 private void adjacentSeedToolToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var adjacentTool = new Adjacents();
     adjacentTool.Show();
 }