Esempio n. 1
0
        public void setData(WindowCreateCdb.CreationResult creationResult)
        {
            _creationResult = creationResult;

            label_message.Text = "The Compilation Database \"" + creationResult._cdbName +
                                 "\" was created at directory \"" + creationResult._cdbDirectory + "\".\n" +
                                 "Do you want to auto-import it in Sourcetrail now?";
        }
        private void HandleFinishedCdb(Wizard.WindowCreateCdb.CreationResult creationResult)
        {
            if (creationResult._cdbSettings != null && creationResult._cdbDirectory.Length > 0 && creationResult._cdbName.Length > 0)
            {
                _recentSettingsList.AppendOrUpdate(creationResult._cdbSettings);
                _recentSettingsList.SaveMetaData();

                Wizard.WindowCdbReady dialog = new Wizard.WindowCdbReady();
                dialog.setData(creationResult);
                dialog.ShowDialog();

                _recentSettingsList.Refresh();
            }
            else
            {
                Logging.Logging.LogError("Invalid data received");
            }
        }