Exemplo n.º 1
0
        public void OnMouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            Logger.logBegin("OnMouseDown");
            try
            {
                if (e.Button == System.Windows.Forms.MouseButtons.Left)
                {
                    Logger.Info("OnMouseDown****", base.SourceControl.GetType().BaseType.MakeArrayType().ToString());
                    Infragistics.Win.UltraWinTabControl.UltraTabControl objTab = (Infragistics.Win.UltraWinTabControl.UltraTabControl)base.SourceControl;
                    //objTab.GetType().BaseType.ToString()
                    //Infragistics.Win.UltraWinTabControl.UltraTabControl objTab = (Infragistics.Win.UltraWinTabControl.UltraTabControl)base.SourceControl;

                    base.RecordFunction("ActiveTab", RecordingMode.RECORD_SEND_LINE, objTab.ActiveTab.Text);
                }
            }
            finally
            {
            }
        }
Exemplo n.º 2
0
        public void CloseTab()
        {
            Logger.logBegin("CloseTab");
            PrepareForReplay();
            var obj = base.SourceControl;

            if (obj is Infragistics.Win.UltraWinTabControl.UltraTabControl)
            {
                Infragistics.Win.UltraWinTabControl.UltraTabControl objTab = (Infragistics.Win.UltraWinTabControl.UltraTabControl)obj;

                UltraTabControlUIElement objUI        = objTab.UIElement;
                TabHeaderAreaUIElement   objTabHeader = (TabHeaderAreaUIElement)mobjReflector.GetMember <TabHeaderAreaUIElement>(objUI, "TabAreaUIElement");
                //objTabHeader.ChildElements
                //UltraTab objTab.ActiveTab
                MouseMove(objTabHeader.Rect.Left, objTabHeader.Rect.Top);
                MessageBox.Show(string.Format("Original position:[x:{0}, y:{1}]", objTabHeader.Rect.Left, objTabHeader.Rect.Top));

                // objTab.TabMa
            }
            else
            {
            }
        }