Пример #1
0
 private void OnItemClick(object sender, ToolItemEventArgs e)
 {
     if (e.Item.CheckOnClick ||
         (e.Item is ToolDropDown && ((ToolDropDown)e.Item).HasDropDown))
     {
         return;
     }
     OwnerItem?.OnItemClick(e);
     BaseGetFocus(null, null);
 }
Пример #2
0
 private void ToolStatusItemClicked(object sender, ToolItemEventArgs e)
 {
     if (dataSource is IStatusable status)
     {
         status.Status = (DBStatus)e.Item.Tag;
         CheckStatus();
     }
     else if (list.Mode != LayoutListMode.Fields)
     {
         foreach (var item in list.Selection.GetItems <IStatusable>())
         {
             item.Status = (DBStatus)e.Item.Tag;
         }
     }
 }
Пример #3
0
 protected internal virtual void OnItemMove(ToolItemEventArgs args)
 {
 }
Пример #4
0
 protected internal override void OnItemMove(ToolItemEventArgs args)
 {
     base.OnItemMove(args);
     OnPageDrag(args);
 }
Пример #5
0
 protected void OnPageDrag(ToolItemEventArgs arg)
 {
     PageDrag?.Invoke(this, arg);
     DockBox?.OnPageDrag(arg);
 }
Пример #6
0
 protected internal void OnPageDrag(ToolItemEventArgs e)
 {
     page  = e.Item as DockPage;
     State = DockBoxState.Move | DockBoxState.InProcess;
 }
Пример #7
0
 protected void ToolProjectCreateItemClick(object sender, ToolItemEventArgs e)
 {
     CurrentProject = new ProjectHandler {
         Type = e.Item.Tag as ProjectType
     };
 }