public MonoFile(string fileName) { FileName = fileName; string monoFolder = WPILibFolderStructure.CreateMonoFolder(); m_extractPath = monoFolder + Path.DirectorySeparatorChar + "temp"; }
///////////////////////////////////////////////////////////////////////////// // Overridden Package Implementation #region Package Members /// <summary> /// Initialization of the package; this method is called right after the package is sited, so this is the place /// where you can put all the initialization code that rely on services provided by VisualStudio. /// </summary> protected override void Initialize() { Instance = this; Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", this.ToString())); base.Initialize(); m_writer = OutputWriter.Instance; var teamPage = (TeamSettingsPage)PublicGetDialogPage(typeof(TeamSettingsPage)); var extPage = (ExtensionSettingsPage)PublicGetDialogPage(typeof(ExtensionSettingsPage)); var depPage = (DependencySettingsPage)PublicGetDialogPage(typeof(DependencySettingsPage)); SettingsProvider.SetSettingsPages(teamPage, extPage, depPage); m_deployButton = new DeployDebugButton(this, (int)PkgCmdIDList.cmdidDeployCode, false); m_debugButton = new DeployDebugButton(this, (int)PkgCmdIDList.cmdidDebugCode, true); m_killButton = new KillButton(this); string monoFolder = WPILibFolderStructure.CreateMonoFolder(); string monoFile = monoFolder + Path.DirectorySeparatorChar + DeployProperties.MonoVersion; m_monoFile = new MonoFile(monoFile); m_installMonoButton = new InstallMonoButton(this, m_monoFile); m_downloadMonoButton = new DownloadMonoButton(this, m_monoFile, m_installMonoButton); m_saveMonoButton = new SaveMonoButton(this, m_monoFile); m_aboutButton = new AboutButton(this); m_netConsoleButton = new NetConsoleButton(this); m_settingsButton = new SettingsButton(this); m_setMainRobotButton = new SetMainRobotButton(this); }
public void ResetToDefaultDirectory() { string monoFolder = WPILibFolderStructure.CreateMonoFolder(); FileName = monoFolder + Path.DirectorySeparatorChar + DeployProperties.MonoVersion; }