Skip to content

Commit

Permalink
Installed VS2017 so some small visual changes and text changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobluebro committed Mar 13, 2017
1 parent 8d9e557 commit 02c340d
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 26 deletions.
2 changes: 1 addition & 1 deletion PC Room App/NewProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public partial class formCreateNewProfile : Form
#region multiple calls methods
private void FormChange()
{
formSettings frm = new formSettings();
FormSettings frm = new FormSettings();
frm.Show();
Visible = false;
}
Expand Down
2 changes: 1 addition & 1 deletion PC Room App/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static void Main()
}
else
{
Application.Run(new formSettings());
Application.Run(new FormSettings());
}

}
Expand Down
53 changes: 33 additions & 20 deletions PC Room App/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 25 additions & 4 deletions PC Room App/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace PC_Room_App
{
public partial class formSettings : Form
public partial class FormSettings : Form
{
//the way to make dynamically created objects in c# and get them into an array like thing
Dictionary<int, Profile> dictProfiles = new Dictionary<int, Profile>();
Expand Down Expand Up @@ -83,7 +83,7 @@ private void LoadProfile()
}
}

public formSettings()
public FormSettings()
{
InitializeComponent();
}
Expand Down Expand Up @@ -165,23 +165,44 @@ private void Settings_Load(object sender, EventArgs e)

}

private void btnEnter_Click(object sender, EventArgs e)
private void BtnChangeSettings_Click(object sender, EventArgs e)
{
//taken from visualbasic because it's so good
//if you wanted to give people the option of overriding or not through windows use UIOption.AllDialogs instead of true
FileSystem.CopyDirectory(currentProfile.WoWAddonsPath, currentProfile.WoWPath, true);

//TODO: look into fading in and out(timers)
lblFiles.Text = "Addons -> WoW" + Environment.NewLine + "Files have been copied";
lblFiles.Visible = true;

LaunchBattleNetApp();
}

private void newProfile_Click(object sender, EventArgs e)
private void BtnSaveAddons_Click(object sender, EventArgs e)
{
DialogResult dialogResult = MessageBox.Show("If you did not push the Change Settings button during your session then you may have some issues. A backup of your addons is recommended",
"Are you want to override your Addons? ", MessageBoxButtons.YesNo);
switch (dialogResult)
{
case DialogResult.Yes:
FileSystem.CopyDirectory(currentProfile.WoWPath, currentProfile.WoWAddonsPath, true);
lblFiles.Text = "WoW -> Addons" + Environment.NewLine + "Files have been copied";
lblFiles.Visible = true;
break;
case DialogResult.No:
//nothing
break;
}

}

private void NewProfile_Click(object sender, EventArgs e)
{
formCreateNewProfile formCreateProfile = new formCreateNewProfile();
formCreateProfile.Show();
Visible = false;
}


}
}

0 comments on commit 02c340d

Please sign in to comment.