Exemple #1
0
        public EditSF()
        {
            InitializeComponent();
            updater = new ProgressUpdater(_progressBar);
            Text    = $"EditSF {Application.ProductVersion}";
            _editEsfComponent.NodeSelected += NodeSelected;
            if (File.Exists(BookmarkPath))
            {
                string[] array = File.ReadAllLines(BookmarkPath);
                foreach (string text in array)
                {
                    string[] array2 = text.Split(Path.PathSeparator);
                    AddBookmark(array2[0], array2[1], enable: false);
                }

                _editBookmarkToolStripMenuItem.Enabled = (bookmarks.Count > 0);
            }
        }
        public EditSF()
        {
            InitializeComponent();

            updater = new ProgressUpdater(progressBar);

            Text = string.Format("EditSF {0}", Application.ProductVersion);

            editEsfComponent.NodeSelected += NodeSelected;

            if (File.Exists(BookmarkPath))
            {
                foreach (string line in File.ReadAllLines(BookmarkPath))
                {
                    string[] bm = line.Split(Path.PathSeparator);
                    AddBookmark(bm[0], bm[1], false);
                }
                editBookmarkToolStripMenuItem.Enabled = bookmarks.Count > 0;
            }
        }