示例#1
0
        private void btnForward_Click(object sender, EventArgs e)
        {
            ForwardInfoForm fif = new ForwardInfoForm(CurrentLine);

            if (fif.ShowDialog() == DialogResult.OK)
            {
                if (fif.ForwardInfo.Length > 0)
                {
                    if (fif.SelectedAddress != null)
                    {
                        fif.SelectedAddress.Forward(fif.ForwardInfo, 3, null);
                    }
                    else
                    {
                        CurrentLine.Forward(fif.ForwardInfo, 3, null);
                    }
                }
                else
                {
                    if (fif.SelectedAddress != null)
                    {
                        fif.SelectedAddress.CancelForward();
                    }
                    else
                    {
                        CurrentLine.CancelForward();
                    }
                }
            }
        }