public void OpenFile(string path) { var stpInstall = new StpInstallation(path); AppearanceManager.SetupWindow(this); InitiateInstall(stpInstall); }
private void btnstart_Click(object sender, EventArgs e) { if (FileExists(txtfilepath.Text)) { var install = new StpInstallation(txtfilepath.Text); InitiateInstall(install); } else { Infobox.Show("File not found.", "The file you requested was not found on the system."); } }