private void MainForm_Load(object pSender, EventArgs pArgs) { if (!Config.Instance.LoadedFromFile) { if (ShowSetupForm() != DialogResult.OK) { Close(); return; } } SetupAdapter(); mTimer.Enabled = true; mSearchForm.Show(mDockPanel); mDataForm.Show(mDockPanel); mStructureForm.Show(mDockPanel); mPropertyForm.Show(mDockPanel); DockPane rightPane1 = new DockPane(mStructureForm, DockState.DockRight, true); DockPane rightPane2 = new DockPane(mPropertyForm, DockState.DockRight, true); rightPane1.Show(); rightPane2.Show(); foreach (string arg in _startupArguments) { SessionForm session = NewSession(); session.OpenReadOnly(arg); session.Show(mDockPanel, DockState.Document); } }
public MainForm(string[] pArgs) { InitializeComponent(); Text = "MapleShark " + Program.AssemblyVersion; foreach (string arg in pArgs) { SessionForm session = NewSession(); session.OpenReadOnly(arg); } }
private void mFileOpenMenu_Click(object pSender, EventArgs pArgs) { if (mOpenDialog.ShowDialog(this) == DialogResult.OK) { foreach (string path in mOpenDialog.FileNames) { SessionForm session = NewSession(); session.OpenReadOnly(mOpenDialog.FileName); } } }
public MainForm(string[] pArgs) { InitializeComponent(); Text = "ElShark " + Program.AssemblyVersion; foreach (string arg in pArgs) { SessionForm session = NewSession(); session.OpenReadOnly(arg); session.Show(mDockPanel, DockState.Document); } }
private void mFileOpenMenu_Click(object pSender, EventArgs pArgs) { if (mOpenDialog.ShowDialog(this) == DialogResult.OK) { foreach (string path in mOpenDialog.FileNames) { SessionForm session = NewSession(); session.OpenReadOnly(path); session.Show(mDockPanel, DockState.Document); } mSearchForm.RefreshOpcodes(false); } }
private void MainForm_DragDrop(object sender, DragEventArgs e) { string[] files = (string[])e.Data.GetData(DataFormats.FileDrop); foreach (var file in files) { if (!System.IO.File.Exists(file)) { continue; } switch (System.IO.Path.GetExtension(file)) { case ".msb": { SessionForm session = NewSession(); session.OpenReadOnly(file); session.Show(mDockPanel, DockState.Document); mSearchForm.RefreshOpcodes(false); break; } case ".pcap": { device = new CaptureFileReaderDevice(file); device.Open(); ParseImportedFile(); break; } case ".txt": { ReadMSnifferFile(file); break; } } } }