예제 #1
0
        private void rmiServices_OpenAllLiveLogs_Click(object sender, EventArgs e)
        {
            if (this.WatchConnection == null)
            {
                return;
            }

            if (lsvServices.Items.Count == 0)
            {
                return;
            }

            lock (_sync)
            {
                foreach (var i in lsvServices.Items)
                {
                    var item = i as ListViewDataItem;
                    var id   = (Guid)item.Tag;

                    frmLogs frm = new frmLogs();
                    frm.LiveLogs   = true;
                    frm.serviceId  = id;
                    frm.Connection = this.WatchConnection;
                    frm.Show();
                }
            }
        }
예제 #2
0
        private void btn_Logs_Click(object sender, EventArgs e)
        {
            frmLogs frm = new frmLogs()
            {
                AutoScroll    = false,
                TopLevel      = false,
                WindowState   = FormWindowState.Maximized,
                StartPosition = FormStartPosition.CenterParent
            };

            mainPanel.Controls.Clear();
            mainPanel.Controls.Add(frm);
            frm.Show();
        }