コード例 #1
0
        private void iTalk_Button_11_Click_1(object sender, EventArgs e)
        {
            savedump.Title      = "F.C.E. 365 Firmware Manager - Save Hex Dump";
            savedump.DefaultExt = ".txt";
            savedump.FileName   = "FileHexDump";

            if (savedump.ShowDialog() == DialogResult.OK)
            {
                _myByteViewer.SaveToFile(savedump.FileName);
            }
        }
コード例 #2
0
        private void ButtonSave_click(object source, EventArgs e)
        {
            try {
                SaveFileDialog sfd = new SaveFileDialog();

                sfd.FileName = SR.GetString(SR.BinaryEditorFileName);
                sfd.Title    = SR.GetString(SR.BinaryEditorSaveFile);
                sfd.Filter   = SR.GetString(SR.BinaryEditorAllFiles) + " (*.*)|*.*";

                DialogResult result = sfd.ShowDialog();
                if (result == DialogResult.OK)
                {
                    byteViewer.SaveToFile(sfd.FileName);
                }
            }
            catch (IOException x) {
                MessageBox.Show(SR.GetString(SR.BinaryEditorFileError) + x.Message,
                                SR.GetString(SR.BinaryEditorTitle), MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
コード例 #3
0
            private void ButtonSave_click(object source, EventArgs e)
            {
                try
                {
                    SaveFileDialog sfd = new SaveFileDialog();
                    sfd.FileName = SR.BinaryEditorFileName;
                    sfd.Title    = SR.BinaryEditorSaveFile;
                    sfd.Filter   = SR.BinaryEditorAllFiles + " (*.*)|*.*";

                    DialogResult result = sfd.ShowDialog();
                    if (result == DialogResult.OK)
                    {
                        _byteViewer.SaveToFile(sfd.FileName);
                    }
                }
                catch (IOException x)
                {
                    RTLAwareMessageBox.Show(null, string.Format(SR.BinaryEditorFileError, x.Message),
                                            SR.BinaryEditorTitle, MessageBoxButtons.OK,
                                            MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, 0);
                }
            }