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(); } } }
private void logsToolStripMenuItem_Click(object sender, EventArgs e) { frmLogs frm = new frmLogs(); //frm.Reset(); frm.lblUser.Text = lblUser.Text; frm.ShowDialog(); }
//----------------------------------------------------------------------------------------------------- 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(); }
/// <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(); }
private void lADUsageLogsToolStripMenuItem_Click(object sender, EventArgs e) { var myForm = new frmLogs(); myForm.ShowDialog(); }