private void MountButton_Click(object sender, EventArgs e) { Console.WriteLine("Now mounting {0}...", Global.Diablo.GAME_NAME); CDMounter.InstallService(); CDMounter.MountImage(Global.Diablo.CD_PATH); MainMenuButton.Text = "Unmount and " + InstallerWindow.MAIN_MENU_BUTTON_TEXT; }
private void MainMenuButton_Click(object sender, EventArgs e) { if (MainMenuButton.Text.StartsWith("Unmount")) { Console.WriteLine("Unmounting {0}...", Global.Diablo.GAME_NAME); CDMounter.UnmountImage(Global.Diablo.CD_PATH); MainMenuButton.Text = InstallerWindow.MAIN_MENU_BUTTON_TEXT; } this.installerWindow.changeState(MenuStates.MainMenu); }
private void MountButton_Click(object sender, EventArgs e) { CDMounter.MountImage(Diablo2CDMenu.CD_PATH); MainMenuButton.Text = "Unmount and " + InstallerWindow.MAIN_MENU_BUTTON_TEXT; }
private void MainMenuButton_Click(object sender, EventArgs e) { this.installerWindow.changeState(MenuStates.MainMenu); CDMounter.UnmountImage(Diablo2CDMenu.CD_PATH); MainMenuButton.Text = InstallerWindow.MAIN_MENU_BUTTON_TEXT; }