private void button4_Click(object sender, RibbonControlEventArgs e) { LoggingDialog win = new LoggingDialog(); win.ShowDialog(); }