Esempio n. 1
0
 public void EditButtonOnClick(object sender, EventArgs arguments)
 {
     RegionProperty region = (RegionProperty)RegionGrid.SelectedItem;
     EditDialogue editDialogue = new EditDialogue(region.Profile, this);
     editDialogue.ShowDialog();
     //The login might have been modified by the user so the grid needs to be updated
     region.SetHasLogin();
     //Have the statistics service check if new workers need to be added because of this update
     StatisticsService.AddMissingWorkers();
     //Save the new configuration
     Program.SaveConfiguration();
     //Update the help text
     UpdateHelpLabel();
 }
Esempio n. 2
0
        void EditButtonOnClick(object sender, EventArgs arguments)
        {
            RegionProperty region       = (RegionProperty)RegionGrid.SelectedItem;
            EditDialogue   editDialogue = new EditDialogue(region.Profile, this);

            editDialogue.ShowDialog();
            //The login might have been modified by the user so the grid needs to be updated
            region.SetHasLogin();
            //Have the statistics service check if new workers need to be added because of this update
            StatisticsService.AddMissingWorkers();
            //Save the new configuration
            Program.SaveConfiguration();
            //Update the help text
            UpdateHelpLabel();
        }