Beispiel #1
0
        public LogDetailsEditor()
        {
            InitializeComponent();

            Serial = LogDetails_Serializer.Load($"{SearchConfigurationPath}LogDetails.xml");

            Load();
        }
Beispiel #2
0
        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            //LogDetails_Serializer.LogDetails sLog = LogDetails_Serializer.Load($"{SearchConfigurationPath}LogDetails.xml");
            //if (sLog.GetHashCode().Equals(Serial.GetHashCode())) return;

            if (UserMessage.Show(this, "Would you like to save the changes?", "Save Changes?", new List <string>()
            {
                "Yes", "No"
            }) == "Yes")
            {
                File.Copy($"{SearchConfigurationPath}LogDetails.xml", $"{SearchConfigurationPath}LogDetails_{DateTime.Now.ToOADate().ToString()}.xml");
                LogDetails_Serializer.Save($"{SearchConfigurationPath}LogDetails.xml", Serial);
            }
        }