コード例 #1
0
        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();
                }
            }
        }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
        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;
            }
        }