示例#1
0
        private void fab_OnClick(object sender, EventArgs e)
        {
            var wizard = new MemberWizard();

            wizard.EditMode = EnumHelper.EditMode.Add;
            wizard.ShowDialog();
        }
示例#2
0
        void wizSupplier_Closed(object sender, EventArgs e)
        {
            MemberWizard wizMember = sender as MemberWizard;

            if (wizMember.MemberId != System.Guid.Empty)
            {
                BindList();
                this.Update();
            }
        }
示例#3
0
 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();
         }
     }
 }