If TabPaneManager.SelectedItem.Text == "Design" Then
MP3play_Dialog.Stop
MP3play_Dialog.Position = 0
' Play sound
PlaySound.DialogSnd
Dim res As Int = fx.Msgbox2(MainForm, "Do you want to install" & CRLF & lvDesign.SelectedItem & "?" & CRLF & CRLF & "Warning! The current installed module will be overwritten.", "Athena", "Install", "", "Cancel", fx.MSGBOX_WARNING)
If res = fx.DialogResponse.POSITIVE Then
' Copy unzipped files to application directory
File.Copy(Inititialization.TmpFolder, "design.dat", Inititialization.DesignPath , "Design.dat")
File.Copy(Inititialization.TmpFolder, "design.png", Inititialization.DesignPath , "Design.png")
File.Copy(Inititialization.TmpFolder, "panel.png", Inititialization.DesignPath , "Panel.png")
File.Copy(Inititialization.TmpFolder, "panel_docs.png", Inititialization.DesignPath , "Panel_Docs.png")
File.Copy(Inititialization.TmpFolder, "panel_manager.png", Inititialization.DesignPath , "Panel_Manager.png")
File.Copy(Inititialization.TmpFolder, "panel_menu.png", Inititialization.DesignPath , "Panel_Menu.png")
File.Copy(Inititialization.TmpFolder, "theme.css", Inititialization.DesignPath , "Theme.css")
Sleep(5000)
Inititialization.InitSkinImage
Inititialization.LoadSkinInfo
' Reset autotype
AutoType.InitAutoType
'SQLiteUtils.Init_SQLiteCM
' Display info message
FXnotify.ShowNotification3("Athena", "Successfully installed", FXnotify.ICON_INFORMATION, MainForm, "CENTER", 3000)
' Reinitialize CSS
'Inititialization.ReinitCSS
Return
End If
If res = fx.DialogResponse.CANCEL Then
' Cancel
MP3play_Click.Stop
MP3play_Click.Position = 0
' Play sound
PlaySound.ClickSnd
End If
If res = fx.DialogResponse.NEGATIVE Then
MP3play_Click.Stop
MP3play_Click.Position = 0
' Play sound
PlaySound.ClickSnd
End If
End If
End Sub