private void btnOpenLogClick(object sender, EventArgs e) { OpenLog o = new OpenLog(this); if (o.listBox1.Items.Count != 0) { o.Show(); } else { MessageBox.Show("There is log for " + dateTimePicker1.Text); } }
private void button2_Click(object sender, EventArgs e) { OpenLog f = new OpenLog(this); f.Show(); }