private void miConfigure_Click(object sender, EventArgs e) { var frmSettings = new frmSettings(); if (frmSettings.ShowDialog(this) == DialogResult.OK) { if (videoObject != null) { videoObject.SetFreeRangeGainIntervals(Settings.Default.FreeRangeGainIntervals); } } }
private void dgrRemoteDesktops_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex != -1) { if (e.ColumnIndex == 0) { Machine insMachine = new Machine(); insMachine = GetRemoteDesktop(dgrRemoteDesktops.Rows[e.RowIndex].Cells["clmnRemoteDesktopConnectionName"].Value.ToString()); frmSettings frmS = new frmSettings(insMachine); frmS.openedForEdit = true; frmS.ShowDialog(); LoadGridData(); } else if (e.ColumnIndex == 1) { if (MessageBox.Show("Are you sure that you want to delete this connection setting?", "Delete Remote Desktop Connection Setting", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1) != DialogResult.No) { DeleteRemoteDesktop(dgrRemoteDesktops.Rows[e.RowIndex].Cells["clmnRemoteDesktopConnectionName"].Value.ToString()); LoadGridData(); } } } }
private void msbSettings_Click(object sender, EventArgs e) { mab.ClosePopup(); mstc.SelectedTab = mstImpExp; bMabIsOpen = false; Form frmSettings = new frmSettings(); DialogResult dlg = frmSettings.ShowDialog(); if (dlg == DialogResult.OK) { sm.MetroColorParameters = new DevComponents.DotNetBar.Metro.ColorTables.MetroColorGeneratorParameters { CanvasColor = Color.White, BaseColor = Program.cWindowColour }; } }