/// <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(); }
/// <summary> /// Data Arrival Business /// </summary> public DataArrivalBusiness(GlobalObjectModel globalObject) { _globalObject = globalObject; }
/// <summary> /// Status Controller /// </summary> public StatusBusiness(GlobalObjectModel globalObject) { _globalObject = globalObject; }
/// <summary> /// Constructor /// </summary> /// <param name="global"></param> public frmCustomize(GlobalObjectModel global) { InitializeComponent(); _global = global; }
/// <summary> /// Entry Point /// </summary> /// <param name="globalObject"></param> public MainWindow(GlobalObjectModel globalObject) { InitializeComponent(); _globalObject = globalObject; }