private void btnFinished_Click(object sender, System.EventArgs e) { frm1.PostActivity(); if(G == null) { try { OysterClassLibrary.Functions F = new OysterClassLibrary.Functions(); F.CreateGroup(((Form1)FrmParent.Owner).LoginUser.ID,tbDescription.Text,IsPublicAccess); F.Dispose(); } catch(Exception Err) { MessageBox.Show(Err.Message); return; } } else { try { G.Update(tbDescription.Text); Trace.WriteLine("Edited Group: " + G.Description +"(" + G.ID.ToString() + ")",System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName + "." + System.Reflection.MethodBase.GetCurrentMethod().Name); } catch(Exception Err) { MessageBox.Show(Err.Message); return; } } this.DialogResult = DialogResult.OK; }