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

            this.MainStyle = new BasicStyle();

            this.ThreeD = false;

            this.Repeat = false;
        }
예제 #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));
 }
예제 #5
0
 public ExTableLayout(ExControl objBind)
     : base(ELT_TABLE, objBind)
 {
 }
예제 #6
0
 //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)
 {
 }
예제 #8
0
 public bool GetChildPropList(ExControl obj, out int lpProps)
 {
     return(ExAPI._layout_getchildproplist(m_hLayout, obj.Handle, out lpProps));
 }
예제 #9
0
 public ExLinearLayout(ExControl objBind)
     : base(ELT_LINEAR, objBind)
 {
 }
예제 #10
0
 public bool AddChild(ExControl obj)
 {
     return(ExAPI._layout_addchild(m_hLayout, obj.Handle));
 }
예제 #11
0
 public ExBaseLayout(int nType, ExControl objBind)
 {
     m_hLayout = (IntPtr)ExAPI._layout_create(nType, objBind.Handle);
 }
예제 #12
0
 public ExPageLayout(ExControl objBind)
     : base(ELT_PAGE, objBind)
 {
 }
예제 #13
0
        //ctor

        public HorizonGroupView(ExControl i_Control)
            : base(i_Control)
        {
        }
예제 #14
0
 public bool SetEdge(ExControl obj, int dwEdge, int dwType, int nValue)
 {
     return(ExAPI._layout_absolute_setedge(m_hLayout, obj.Handle, dwEdge, dwType, nValue));
 }
예제 #15
0
 public bool DeleteChild(ExControl obj)
 {
     return(ExAPI._layout_deletechild(m_hLayout, obj.Handle));
 }
예제 #16
0
 public ExAbsoluteLayout(ExControl objBind)
     : base(ELT_ABSOLUTE, objBind)
 {
 }
예제 #17
0
 public bool GetChildProp(ExControl obj, int dwPropID, out int pvValue)
 {
     return(ExAPI._layout_getchildprop(m_hLayout, obj.Handle, dwPropID, out pvValue));
 }
예제 #18
0
 public ExFlowLayout(ExControl objBind)
     : base(ELT_FLOW, objBind)
 {
 }
예제 #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);
 }