Beispiel #1
0
 private void Navigator_AfterItemClick(object sender, AfterItemClickEventArgs e)
 {
     infoDsDetails.SetWhere("1=1");
     ArrayList temp = new ArrayList();
     foreach (string str in lstTabName.Items)
     {
         string tableName = Remove(str);
         temp.Add(tableName);
     }
     for (int i = 0; i < dgvColDEF.CurrentRow.Cells.Count; i++)
         if (dgvColDEF.CurrentRow.Cells[i].Value.ToString() == "*")
         {
             int x = lstTabName.SelectedIndex;
             lstTabName.Items.Clear();
             foreach (string str in temp)
                 FillListBox(str, lstTabName);
             lstTabName.SelectedIndex = x;
             break;
         }
 }
Beispiel #2
0
 void ParentNavigator_AfterItemClick(object sender, AfterItemClickEventArgs e)
 {
     if (e.ItemName == "Add" || e.ItemName == "Edit")
     {
         SetNavigatorItems(false);
     }
     else/* if (e.ItemName == "OK" || e.ItemName == "Cancel" || e.ItemName == "Apply" || e.ItemName == "Abort")*/
     {
         DisableNavigatorItems();
     }
 }
Beispiel #3
0
 private void NavigatorGroups_AfterItemClick(object sender, AfterItemClickEventArgs e)
 {
     if (e.ItemName == "Apply")
     {
         isNew = false;
     }
     else if (e.ItemName == "About")
     {
         isNew = false;
         newGroup.Clear();
     }
     else if (e.ItemName == "Cancel")
     {
         isNew = false;
         newGroup.Clear();
     }
     else if (e.ItemName == "OK")
     {
         //isNew = false;
     }
     else if (e.ItemName == "Add")
     {
         isNew = true;
     }
 }
Beispiel #4
0
        private void NavigatorUsers_AfterItemClick(object sender, AfterItemClickEventArgs e)
        {
            if (e.ItemName == "Apply")
            {
                isNew = false;

                this.infoDsGroups.ApplyUpdates();
                //重贴的话bindingNavigatorRefreshItem2可能会改变,现在的位置是14
                this.NavigatorGroups.Items["bindingNavigatorRefreshItem2"].PerformClick();
            }
            else if (e.ItemName == "About")
            {
                isNew = false;
            }
            else if (e.ItemName == "Cancel")
            {
                isNew = false;
            }
            else if (e.ItemName == "OK")
            {
                //isNew = false;
            }
            else if (e.ItemName == "Add")
            {
                isNew = true;
            }
        }
Beispiel #5
0
 public void OnAfterItemClick(AfterItemClickEventArgs value)
 {
     AfterItemClickEventHandler handler = (AfterItemClickEventHandler)Events[EventAfterItemClick];
     if (handler != null)
     {
         handler(this, value);
     }
 }