Exemplo n.º 1
0
 /// <summary>
 /// Program Controller
 /// </summary>
 public ProgramBusiness()
 {
     Global = new GlobalObjectModel();
     Global.NewStatusEvent  += _globalObject_NewStatus;
     Global.FocusEvent      += GlobalObject_Focus;
     Global.DisconnectEvent += GlobalObject_Disconnect;
     Global.ConnectEvent    += GlobalObject_Connect;
     Status             = new StatusBusiness(Global);
     Networks           = new NetworkBusiness(Application.StartupPath);
     Servers            = new ServerBusiness(Application.StartupPath);
     Global.Networks    = Networks.ReadAll();
     Global.Servers     = Servers.ReadAll();
     Global.ServerIndex = Servers.Index();
     Global.Status.Add(new StatusModel());
     MainWindow      = new MainWindow(Global);
     _timer          = new Timer();
     _timer.Interval = 200;
     _timer.Tick    += _timer_Tick;
     _timer.Start();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Data Arrival Business
 /// </summary>
 public DataArrivalBusiness(GlobalObjectModel globalObject)
 {
     _globalObject = globalObject;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Status Controller
 /// </summary>
 public StatusBusiness(GlobalObjectModel globalObject)
 {
     _globalObject = globalObject;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="global"></param>
 public frmCustomize(GlobalObjectModel global)
 {
     InitializeComponent();
     _global = global;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Entry Point
 /// </summary>
 /// <param name="globalObject"></param>
 public MainWindow(GlobalObjectModel globalObject)
 {
     InitializeComponent();
     _globalObject = globalObject;
 }