示例#1
0
        public FormMain()
        {
            InitializeComponent();

            MAX_MSGS             = Int32.Parse(System.Configuration.ConfigurationManager.AppSettings["show_items"]);
            MAX_MSG_DISPLAY_TIME = 60 * Int32.Parse(System.Configuration.ConfigurationManager.AppSettings["msg_display_duration"]);

            TrayMsgControl = new TrayMsgController(this);
        }
示例#2
0
        //public TrayMsgForm()
        //{
        //    InitializeComponent();
        //}

        public TrayMsgForm(int maxDuration, NtfMsgInfo msgInfo, TrayMsgController controller)
        {
            InitializeComponent();

            MaxDisplayTime = maxDuration;
            Msg            = msgInfo;

            CurrentDisplayTime = 0;

            MsgController = controller;
        }