private void thisDragEnter(object sender, DragEventArgs e) { //不是从本窗体拖来的 if ((e.Data.GetData(typeof(EnLsnAct)) as EnLsnAct).ClsLesson.Squad != (ExControl.GetControlParentForm(sender as Control) as SqdScheduleFm).Entity) { e.Effect = DragDropEffects.None; VC2WinFmApp.MessageSwitch.SetFocusTch(null); return; } if (DropSrcTime.HasValue || //源自课表中拖,总是可以的 (sender is SqdScheduleCell && (sender as SqdScheduleCell).Act == null)) //拖入空Cell,总是可以的 { e.Effect = DragDropEffects.Move; var focusAct = sender is SqdScheduleCell ? (sender as SqdScheduleCell).Act : null; VC2WinFmApp.MessageSwitch.SetFocusTch(focusAct == null || focusAct.ClsLesson == null ? null : focusAct.ClsLesson.Teacher); } else { e.Effect = DragDropEffects.None; VC2WinFmApp.MessageSwitch.SetFocusTch(null); } }
//ctor public ExControlView(ExControl i_Control) { this.ExControl = i_Control; this.MainStyle = new BasicStyle(); this.ThreeD = false; this.Repeat = false; }
//Ctor public WebbChartView(ExControl i_Control) : base(i_Control) { this._RootGroupInfo = new Webb.Reports.ExControls.Data.FieldGroupInfo(Webb.Data.PublicDBFieldConverter.AvialableFields[0].ToString()); this._RootGroupInfo.GroupTitle = "New Group"; this._Filter = new Webb.Data.DBFilter(); this._Series = new ChartSeriesCollection(); this._Series.Add(new ChartSeries()); this._AppearanceType = ChartAppearanceType.Bar; this._StatType = SummaryTypes.Frequence; this._Combine = false; this._BackColor = Color.Transparent; this._StringFormat = new StringFormat(); this._StringFormat.Alignment = StringAlignment.Center; this._StringFormat.LineAlignment = StringAlignment.Center; this._Font = new Font(AppearanceObject.DefaultFont.FontFamily, 8f); this._AxisTextFont = new Font(AppearanceObject.DefaultFont.FontFamily, 10f); this._Step = 2; this._AxisXText = string.Empty; this._AxisYText = string.Empty; this._AxisXGridLine = false; this._AxisYGridLine = false; this._BarValueAlignment = BarValueAlignment.Top; this._BarValueFormat = 0; this.SetDefaultLocation(); }
public bool Lock(ExControl obj, int tLeft, int tTop, int tRight, int tBottom, int tWidth, int tHeight) { return(ExAPI._layout_absolute_lock(m_hLayout, obj.Handle, tLeft, tTop, tRight, tBottom, tWidth, tHeight)); }
public ExTableLayout(ExControl objBind) : base(ELT_TABLE, objBind) { }
//Ctor public WebbChartExView(ExControl i_Control) : base(i_Control) { this._Settings = new WebbChartSetting(); this._Filter = new Webb.Data.DBFilter(); }
public ExRelativateLayout(ExControl objBind) : base(ELT_RELATIVE, objBind) { }
public bool GetChildPropList(ExControl obj, out int lpProps) { return(ExAPI._layout_getchildproplist(m_hLayout, obj.Handle, out lpProps)); }
public ExLinearLayout(ExControl objBind) : base(ELT_LINEAR, objBind) { }
public bool AddChild(ExControl obj) { return(ExAPI._layout_addchild(m_hLayout, obj.Handle)); }
public ExBaseLayout(int nType, ExControl objBind) { m_hLayout = (IntPtr)ExAPI._layout_create(nType, objBind.Handle); }
public ExPageLayout(ExControl objBind) : base(ELT_PAGE, objBind) { }
//ctor public HorizonGroupView(ExControl i_Control) : base(i_Control) { }
public bool SetEdge(ExControl obj, int dwEdge, int dwType, int nValue) { return(ExAPI._layout_absolute_setedge(m_hLayout, obj.Handle, dwEdge, dwType, nValue)); }
public bool DeleteChild(ExControl obj) { return(ExAPI._layout_deletechild(m_hLayout, obj.Handle)); }
public ExAbsoluteLayout(ExControl objBind) : base(ELT_ABSOLUTE, objBind) { }
public bool GetChildProp(ExControl obj, int dwPropID, out int pvValue) { return(ExAPI._layout_getchildprop(m_hLayout, obj.Handle, dwPropID, out pvValue)); }
public ExFlowLayout(ExControl objBind) : base(ELT_FLOW, objBind) { }
public ExCanvas(ExControl obj, int uWidth, int uHeight, int dwFlags, out int nError) { m_hCanvas = (IntPtr)ExAPI._canvas_createfromobj(obj.Handle, uWidth, uHeight, dwFlags, out nError); }