protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e) { if (Ultima.UOUpdateObj != null && Ultima.UOUpdateObj.IsActive) { Messenger.Default.Send( new MessengerHelper.ToastMessage("Ultima Online is already being downloaded and installed.")); } else { if (!Ultima.IsInstalled() && string.IsNullOrEmpty(Config.Instance.UOPath)) { var folderDialog = new FolderSelectDialog(); folderDialog.Title = "Select Ultima Online Folder"; if (folderDialog.ShowDialog()) { Config.Instance.UOPath = folderDialog.FileName; Ultima.DownloadUo(); } } else if (!Ultima.IsInstalled()) { Ultima.DownloadUo(); } } }
private void Execute_SallosFolderDialog(object buttone) { var folderDialog = new FolderSelectDialog(); folderDialog.Title = "Select Sallos Folder"; folderDialog.InitialDirectory = Config.Instance.SallosPath; if (folderDialog.ShowDialog()) { Config.SallosPath = folderDialog.FileName; } }
private void Execute_UOFolderDialog(object buttone) { var folderDialog = new FolderSelectDialog(); folderDialog.Title = "Select Ultima Online Folder"; folderDialog.InitialDirectory = Config.Instance.UOPath; if (folderDialog.ShowDialog()) { Config.UOPath = folderDialog.FileName; } }