示例#1
0
        void wizSupplier_Closed(object sender, EventArgs e)
        {
            PhoneBookWizard wizPhoneBook = sender as PhoneBookWizard;

            if (wizPhoneBook.MemberId != System.Guid.Empty && wizPhoneBook.AddressTypeId != System.Guid.Empty)
            {
                //2013.06.25 paulus: 每次 close 個 wizard 都 rebind 會浪費時間,既然有 Refresh button,我就取消這
                //BindList();
                //this.Update();
            }
        }
示例#2
0
 private void ShowItem()
 {
     if (lvList.SelectedItem != null)
     {
         Guid memberId = Guid.Empty, addressTypeId = Guid.Empty;
         if (Guid.TryParse(lvList.SelectedItem.SubItems[2].Text, out memberId) && Guid.TryParse(lvList.SelectedItem.SubItems[12].Text, out addressTypeId))
         {
             PhoneBookWizard wizPhone = new PhoneBookWizard(memberId, addressTypeId);
             wizPhone.Closed += new EventHandler(wizSupplier_Closed);
             wizPhone.ShowDialog();
         }
     }
 }