示例#1
0
        public MainWindow()
        {
            Current.MainWindow = this;
            GuiCommands.Init(this);
            InitializeComponent();
            this.Icon = ExolutioResourceNames.GetResourceImageSource(ExolutioResourceNames.ExolutioIcon);

            DiagramTabManager = new DiagramTabManager(this);
            ConfigurationManager.LoadConfiguration();

            this.Loaded        += MainWindow_Loaded;
            dockManager.Loaded += dockManager_Loaded;
            Current.RecentFile += OnRecentFile;
            ExolutioRibbon.FillRecent(ConfigurationManager.Configuration.RecentFiles, ConfigurationManager.Configuration.RecentDirectories);

            Application.Current.DispatcherUnhandledException += Current_DispatcherUnhandledException;
        }
示例#2
0
 private void OnRecentFile(FileInfo fileInfo)
 {
     ConfigurationManager.Configuration.AddToRecentFiles(fileInfo);
     ConfigurationManager.SaveConfiguration();
     ExolutioRibbon.FillRecent(ConfigurationManager.Configuration.RecentFiles, ConfigurationManager.Configuration.RecentDirectories);
 }