private void SaveMenu_Click(object sender, RoutedEventArgs e)
 {
     Application.Current.MainWindow.Cursor = Cursors.Wait;
     //HexEdit.SaveTBLFile();
     HexEdit.SubmitChanges();
     Application.Current.MainWindow.Cursor = null;
 }
        private void SaveAsMenu_Click(object sender, RoutedEventArgs e)
        {
            var fileDialog = new SaveFileDialog();

            if (fileDialog.ShowDialog() != null)
            {
                HexEdit.SubmitChanges(fileDialog.FileName, true);
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Button_Click_Ok
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Button_Click_Ok(object sender, RoutedEventArgs e)
 {
     try
     {
         DialogResult = true;
         FocusMessage = new byte[HexEdit.Stream.Length];
         HexEdit.SubmitChanges();
         FocusMessage = HexEdit.Stream.ToArray();
     }
     catch (Exception ex)
     {
         _logger.Error(String.Format("Exception in {0} {1}", LST.GetCurrentMethod(), ex.Message));
     }
     Close();
 }
 private void SaveButton_Click(object sender, RoutedEventArgs e)
 {
     HexEdit.SubmitChanges();
 }