Beispiel #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();
                }
            }
        }
Beispiel #2
0
        private void logsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmLogs frm = new frmLogs();

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

            frmSettings = new frmSettings();
            LoadForm(frmSettings);
        }
        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();
        }
Beispiel #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();
        }
Beispiel #6
0
 private void lADUsageLogsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var myForm = new frmLogs();
     myForm.ShowDialog();
 }