示例#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 logsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmLogs frm = new frmLogs();

            //frm.Reset();
            frm.lblUser.Text = lblUser.Text;
            frm.ShowDialog();
        }
示例#3
0
        //-----------------------------------------------------------------------------------------------------
        private void LoadForms()
        {
            frmLog = new frmLogs();
            LoadForm(frmLog);

            frmSettings = new frmSettings();
            LoadForm(frmSettings);
        }
示例#4
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();
        }
示例#5
0
        /// <summary>
        /// Show the logs form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnLogs_Click(object sender, EventArgs e)
        {
            frmLogs logs = new frmLogs();

            logs.ShowDialog();
        }
示例#6
0
文件: frmMain.cs 项目: robertfall/LAD
 private void lADUsageLogsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var myForm = new frmLogs();
     myForm.ShowDialog();
 }