Exemplo n.º 1
0
        private string _changeLogPath;      // Path to the Changelog file

        //********************************************************************************************************************************************************************

        /// <summary>
        /// Show the WindowAssemblyInfo and get the README.md and CHANGELOG.md files from the given paths.
        /// </summary>
        /// <param name="readmePath">Path for the README.md file.</param>
        /// <param name="changeLogPath">Path for the CHANGELOG.md file.</param>
        /// <param name="startTab">Tab that is shown at startup</param>
        public WindowAssemblyInfo(string readmePath, string changeLogPath, WindowAssemblyInfoStartTab startTab)
        {
            InitializeComponent();
            _readmePath      = readmePath;
            _changeLogPath   = changeLogPath;
            SelectedTabIndex = (int)startTab;
            this.DataContext = this;
        }
Exemplo n.º 2
0
        //********************************************************************************************************************************************************************

        /// <summary>
        /// Show the WindowAssemblyInfo and get the readme and changelog content from the README.md and CHANGELOG.md files in the same folder as the executable. (Application.StartupPath)
        /// </summary>
        /// <param name="startTab">Tab that is shown at startup</param>
        public WindowAssemblyInfo(WindowAssemblyInfoStartTab startTab)
        {
            InitializeComponent();
            string startupPath = System.AppDomain.CurrentDomain.BaseDirectory;

            _readmePath      = startupPath + @"README.md";
            _changeLogPath   = startupPath + @"CHANGELOG.md";
            SelectedTabIndex = (int)startTab;
            this.DataContext = this;
        }