Esempio n. 1
0
        private void OnLoad()
        {
            var openFileDialog = new OpenFileDialog();

            openFileDialog.Multiselect = false;
            if (openFileDialog.ShowDialog() ?? false)
            {
                using (var ofs = new StreamReader(openFileDialog.FileName, Encoding.UTF8))
                {
                    var json = ofs.ReadToEnd();
                    ActionHistory.LoadFromJsonSting(json);
                    Update();
                }
            }
        }