private void fab_OnClick(object sender, EventArgs e) { var wizard = new MemberWizard(); wizard.EditMode = EnumHelper.EditMode.Add; wizard.ShowDialog(); }
void wizSupplier_Closed(object sender, EventArgs e) { MemberWizard wizMember = sender as MemberWizard; if (wizMember.MemberId != System.Guid.Empty) { BindList(); this.Update(); } }
private void ShowItem() { if (lvList.SelectedItem != null) { Guid memberId = Guid.Empty; if (Guid.TryParse(lvList.SelectedItem.SubItems[2].Text, out memberId)) { MemberWizard wizMember = new MemberWizard(); wizMember.MemberId = memberId; wizMember.EditMode = EnumHelper.EditMode.Edit; wizMember.Closed += new EventHandler(wizSupplier_Closed); wizMember.ShowDialog(); } } }