Exemple #1
0
 private void LoadProfileButton_Click(object sender, EventArgs e)
 {
     if (ProfileListView.SelectedItems != null && ProfileListView.SelectedItems.Count > 0)
     {
         Professionbuddy.LoadProfile(Path.Combine(PB.ProfilePath, ProfileListView.SelectedItems[0].Name));
         // check for a LoadProfileAction and load the profile to stop all the crying from the lazy noobs 
         if (PB.ProfileSettings.Settings.Count > 0)
             toolStripSettings.Enabled = true;
     }
 }
Exemple #2
0
 private void toolStripOpen_Click(object sender, EventArgs e)
 {
     if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         Professionbuddy.LoadProfile(openFileDialog.FileName);
         // check for a LoadProfileAction and load the profile to stop all the crying from the lazy noobs 
         if (PB.ProfileSettings.Settings.Count > 0)
             toolStripSettings.Enabled = true;
     }
 }