private void buttonEditor_Click(object sender, EventArgs e) { DataProfileForm f = new DataProfileForm(); if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) { PopulateProfileList(); } }
private void profilesToolStripMenuItem_Click(object sender, EventArgs e) { DataProfileForm f = new DataProfileForm(); if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) { // Do something... MessageBox.Show("You must re-start Vixen for the changes to take effect.", "Profiles Changed", MessageBoxButtons.OK); } }
private void profilesToolStripMenuItem_Click(object sender, EventArgs e) { DataProfileForm f = new DataProfileForm(); if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) { // Do something... //messageBox Arguments are (Text, Title, No Button Visible, Cancel Button Visible) MessageBoxForm.msgIcon = SystemIcons.Information; //this is used if you want to add a system icon to the message form. var messageBox = new MessageBoxForm("You must re-start Vixen for the changes to take effect.", "Profiles Changed", false, false); messageBox.ShowDialog(); } }
private void buttonEditor_Click(object sender, EventArgs e) { DataProfileForm f = new DataProfileForm(); if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) PopulateProfileList(); }