private void btnBinaryCompare_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (Tools.Instance.m_currentfile != "") { OpenFileDialog openFileDialog1 = new OpenFileDialog(); //openFileDialog1.Filter = "Binaries|*.bin;*.ori"; openFileDialog1.Multiselect = false; if (openFileDialog1.ShowDialog() == DialogResult.OK) { frmBinCompare bincomp = new frmBinCompare(); bincomp.Symbols = Tools.Instance.m_symbols; bincomp.SetCurrentFilename(Tools.Instance.m_currentfile); bincomp.SetCompareFilename(openFileDialog1.FileName); bincomp.CompareFiles(); bincomp.ShowDialog(); } } else { MessageBox.Show("No file is currently opened, you need to open a binary file first to compare it to another one!"); } }