/// <summary> /// Window load main /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Mainwindow_Load(object sender, EventArgs e) { try { // Show all local ip adresses in a drop down box ShowIPAddresses(); // list all possible colors in a dropdown SetCursorColors(); // list all shader files in shader directory ShowShaderFiles(); // list all running processes in a drop down SetProcessList(); // load all profiles and put them into a class LoadProfileData(); // display all profile names into a drop down RefreshProfileData(); // init about dialog frmAbout about = new frmAbout(); about.ShowDialog(); } catch (Exception ex) { MessageBox.Show("Mainwindow_Load::Error on change profile data. \r\n" + ex.Message); } }
private void btAbout_Click(object sender, EventArgs e) { try{ frmAbout about = new frmAbout(); about.ShowDialog(); } catch (Exception ex) { MessageBox.Show("btAbout_Click::" + ex.Message); } }