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);
            }
        }
Beispiel #2
0
        //ctor
        public ExControlView(ExControl i_Control)
        {
            this.ExControl = i_Control;

            this.MainStyle = new BasicStyle();

            this.ThreeD = false;

            this.Repeat = false;
        }
Beispiel #3
0
        //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));
 }
Beispiel #5
0
 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)
 {
 }
Beispiel #8
0
 public bool GetChildPropList(ExControl obj, out int lpProps)
 {
     return(ExAPI._layout_getchildproplist(m_hLayout, obj.Handle, out lpProps));
 }
Beispiel #9
0
 public ExLinearLayout(ExControl objBind)
     : base(ELT_LINEAR, objBind)
 {
 }
Beispiel #10
0
 public bool AddChild(ExControl obj)
 {
     return(ExAPI._layout_addchild(m_hLayout, obj.Handle));
 }
Beispiel #11
0
 public ExBaseLayout(int nType, ExControl objBind)
 {
     m_hLayout = (IntPtr)ExAPI._layout_create(nType, objBind.Handle);
 }
 public ExPageLayout(ExControl objBind)
     : base(ELT_PAGE, objBind)
 {
 }
Beispiel #13
0
        //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));
 }
Beispiel #15
0
 public bool DeleteChild(ExControl obj)
 {
     return(ExAPI._layout_deletechild(m_hLayout, obj.Handle));
 }
 public ExAbsoluteLayout(ExControl objBind)
     : base(ELT_ABSOLUTE, objBind)
 {
 }
Beispiel #17
0
 public bool GetChildProp(ExControl obj, int dwPropID, out int pvValue)
 {
     return(ExAPI._layout_getchildprop(m_hLayout, obj.Handle, dwPropID, out pvValue));
 }
Beispiel #18
0
 public ExFlowLayout(ExControl objBind)
     : base(ELT_FLOW, objBind)
 {
 }
Beispiel #19
0
 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);
 }