Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/07/09 16:52:16 (16 years ago)
Author:
whackl
Message:

added shutdown button (#455)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.cs

    r1080 r1087  
    166166        done = allProgress / jobs.Length;
    167167
    168         myPane.AddPieSlice(done, Color.Green, 0.1, "");
    169         myPane.AddPieSlice(1-done, Color.Red, 0.1, "");
     168        myPane.AddPieSlice(done, Color.Green, 0, "");
     169        myPane.AddPieSlice(1-done, Color.Red, 0, "");
    170170      }
    171171      //Hides the slice labels
     
    318318    }
    319319
     320    private void btn_clientShutdown_Click(object sender, EventArgs e) {
     321      DialogResult res = MessageBox.Show("Do you really want to shutdown the Hive Client?", "Hive Client Console", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
     322      if (res == DialogResult.Yes) {
     323        cccc.ShutdownClient();
     324        this.Close();
     325      }
     326    }
     327
    320328    #endregion
     329
    321330  }
    322331}
Note: See TracChangeset for help on using the changeset viewer.