示例#1
0
 public void GotoEID()
 {
     if (tbcTabs.SelectedTab != null)
     {
         NSFBox nsfbox = (NSFBox)tbcTabs.SelectedTab.Tag;
         using (InputWindow inputwindow = new InputWindow())
         {
             if (inputwindow.ShowDialog() == DialogResult.OK)
             {
                 try
                 {
                     nsfbox.GotoEID((int)uint.Parse(inputwindow.Input, NumberStyles.HexNumber));
                 }
                 catch (FormatException)
                 {
                     MessageBox.Show("Invalid EID.\nMust be specified in hexadecmical without leading '0x' or trailing 'h'.", "Goto EID", MessageBoxButtons.OK, MessageBoxIcon.Error);
                 }
                 catch (OverflowException)
                 {
                     MessageBox.Show("Invalid EID.\nMust be in range 0 to FFFFFFFF", "Goto EID", MessageBoxButtons.OK, MessageBoxIcon.Error);
                 }
             }
         }
     }
 }
示例#2
0
 public void Find()
 {
     if (tbcTabs.SelectedTab != null)
     {
         NSFBox nsfbox = (NSFBox)tbcTabs.SelectedTab.Tag;
         using (InputWindow inputwindow = new InputWindow())
         {
             if (inputwindow.ShowDialog() == DialogResult.OK)
             {
                 nsfbox.Find(inputwindow.Input);
             }
         }
     }
 }
示例#3
0
 public void GotoEID()
 {
     if (tbcTabs.SelectedTab != null)
     {
         NSFBox nsfbox = (NSFBox)tbcTabs.SelectedTab.Tag;
         using (InputWindow inputwindow = new InputWindow())
         {
             if (inputwindow.ShowDialog() == DialogResult.OK)
             {
                 try
                 {
                     nsfbox.GotoEID((int)uint.Parse(inputwindow.Input,NumberStyles.HexNumber));
                 }
                 catch (FormatException)
                 {
                     MessageBox.Show("Invalid EID.\nMust be specified in hexadecmical without leading '0x' or trailing 'h'.","Goto EID",MessageBoxButtons.OK,MessageBoxIcon.Error);
                 }
                 catch (OverflowException)
                 {
                     MessageBox.Show("Invalid EID.\nMust be in range 0 to FFFFFFFF","Goto EID",MessageBoxButtons.OK,MessageBoxIcon.Error);
                 }
             }
         }
     }
 }
示例#4
0
 public void Find()
 {
     if (tbcTabs.SelectedTab != null)
     {
         NSFBox nsfbox = (NSFBox)tbcTabs.SelectedTab.Tag;
         using (InputWindow inputwindow = new InputWindow())
         {
             if (inputwindow.ShowDialog() == DialogResult.OK)
             {
                 nsfbox.Find(inputwindow.Input);
             }
         }
     }
 }