示例#1
0
        private void lbtAddnew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmSiteCat frm = new FrmSiteCat(new SiteCategory());

            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                BindSiteCategorys();
            }
        }
示例#2
0
 public override void EditSelectedItem()
 {
     if (listView1.SelectedItems.Count > 0)
     {
         FrmSiteCat frm = new FrmSiteCat(DataRepository.GetSiteCategoryById((int)listView1.SelectedItems[0].Tag));
         if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             BindSiteCategorys();
         }
     }
 }