/// <summary> /// /// </summary> /// <param name="code">Current Code</param> /// <param name="frmCreateBug">needed to return value</param> public frmCode(String code, FrmCreateBug frmCreateBug) { InitializeComponent(); FrmCreateBug = frmCreateBug; rtfCode.Text = code; initilCode = rtfCode.Text; }
private void btnUpdateSelected_Click(object sender, EventArgs e) { if (grdBugs.SelectedRows.Count > 0) { FrmCreateBug frmCreateBug = new FrmCreateBug(); frmCreateBug.BugID = (long)grdBugs.SelectedRows[0].Cells["Id"].Value; frmCreateBug.ShowDialog(); } }
private void btnCreateBug_Click(object sender, EventArgs e) { FrmCreateBug frmCreateBug = new FrmCreateBug(); frmCreateBug.ShowDialog(); }