Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button1_Click(object sender, EventArgs e)
- {
- folderBrowserDialog1.ShowDialog();
- textBoxFolder.Text = folderBrowserDialog1.SelectedPath;
- }
- private void MoveFolders()
- {
- string sourceDir = Config.GetGamePath();
- string destinationDir = textBoxFolder.Text;
- try
- {
- if (Directory.Exists(sourceDir) == true)
- {
- if (bGameIsInstalled == true && textBoxFolder.TextLength > 0)
- {
- Directory.Move(sourceDir, destinationDir);
- bMoveFolders = true;
- }
- else
- {
- //// Could provide the user the option to delete the existing directory
- // before moving the source directory
- MessageBox.Show("Select Arma 3 directory before starting game");
- }
- }
- else
- {
- // Do somthing about source directory not existing -
- }
- }
- catch (Exception ex)
- {
- //TODO: Handle the execption that has been thrown will do this on launcher update
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement