Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/19/08 17:05:56 (16 years ago)
Author:
aleitner
Message:

two Forms communication in ServerConsole (Login and Information-form) (#369)

Location:
trunk/sources/HeuristicLab.Hive.Server.Console
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Console

    • Property svn:ignore set to
      *.user
      bin
      obj
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerConsole.cs

    r778 r785  
    3434  public partial class HiveServerConsole : Form {
    3535
     36    HiveServerConsoleInformation information = null;
    3637
    3738    public HiveServerConsole() {
     
    4748      if (ipIsValid()) {
    4849        this.Visible = false;
    49         // Form information = new HiveServerConsoleInformation();
    50         // Application.Run(information);
    51         this.Visible = true;
     50        information = new HiveServerConsoleInformation();
     51        information.closeFormEvent += new closeForm(enableForm);
     52        information.Show();
    5253      }
    5354    }
     
    5657      return true;
    5758    }
     59
     60    private void enableForm(bool cf) {
     61      if (cf) {
     62        this.Visible = true;
     63      }
     64    }
    5865  }
    5966}
Note: See TracChangeset for help on using the changeset viewer.