Beispiel #1
0
        private void LoadProject_OnClick(object sender, RoutedEventArgs e)
        {
            OpenFileDialog dialog =
                new OpenFileDialog
            {
                DefaultExt = FILE_NAME_EXTENSION,
                Filter     = "Fluent Interface Creator projects (*.ficp)|*.ficp"
            };

            bool?result = dialog.ShowDialog(this);

            if (result == true)
            {
                _projectEditorViewModel.LoadProjectFromXML(File.ReadAllText(dialog.FileName));
            }
        }