Пример #1
0
        private List <PrensaDato> GetCollection(DataSet ds)
        {
            List <PrensaDato> tags = null;

            try
            {
                if (ds != null && ds.Tables != null && ds.Tables.Count > 0)
                {
                    tags = new List <PrensaDato>();

                    for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                    {
                        tags.Add(new PrensaDato
                        {
                            Fecha          = ConvertValue.ToDateTime(ds.Tables[0].Rows[i][Arguments.Fecha]),
                            PrensaId       = ConvertValue.ToInt32(ds.Tables[0].Rows[i][Arguments.Prensa]),
                            TagActivaValue = ConvertValue.ToString(ds.Tables[0].Rows[i][Arguments.TagActiva]),
                            TagCVValue     = ConvertValue.ToString(ds.Tables[0].Rows[i][Arguments.TagCV]),
                            TagTempValue   = ConvertValue.ToString(ds.Tables[0].Rows[i][Arguments.TagTemp]),
                            TagCicloValue  = ConvertValue.ToString(ds.Tables[0].Rows[i][Arguments.TagCiclo]),
                            TagProdValue   = ConvertValue.ToString(ds.Tables[0].Rows[i][Arguments.TagProd]),
                            Cavidad        = ConvertValue.ToString(ds.Tables[0].Rows[i][Arguments.Cavidad])
                        });
                    }
                }
            }
            catch (Exception ex)
            {
                log.Error("GetCollection", ex);
            }

            return(tags);
        }
Пример #2
0
 public UC_gestureOptions()
 {
     InitializeComponent();
     m_name     = new MyText("O_Gestures_name");
     m_caption  = new MyText("O_Gestures_caption");
     I_infoText = new MyText("O_Gestures_info");
     cB_classicCurve.Items.AddRange(new object[] { m_enabled, m_disabled });
     cB_doubleBtn.Items.AddRange(new object[] { m_enabled, m_disabled });
     cB_wheelBtn.Items.AddRange(new object[] { m_enabled, m_disabled });
     cB_wndHandle.Items.AddRange(new object[] { m_underCursor, m_foreground });
     for (int i = 0; i < ConvertValue.MouseButtonsCount; i++)
     {
         cB_toggleBtn.Items.Add(ConvertValue.IndexToMouseBtn(i));
     }
     for (int i = 0; i < SENSITIVE_ZONE_RANGE + 1; i++)
     {
         if (i == 0)
         {
             cB_sensitiveZone.Items.Add("OFF");
         }
         else
         {
             cB_sensitiveZone.Items.Add(i);
         }
     }
     nUD_deactivateTimeout.Minimum = DEACTIVATION_TIME_MIN;
     nUD_deactivateTimeout.Maximum = DEACTIVATION_TIME_MAX;
     SetValues();
     OnEnableApply(false);
 }
Пример #3
0
        private void cB_trigger_SelectedIndexChanged(object sender, EventArgs e)
        {
            MouseButtons trigger = MouseButtons.None;

            if (cB_holdBtn.SelectedItem != null)
            {
                trigger = ConvertValue.IndexToMouseBtn(cB_holdBtn.SelectedIndex);
            }

            m_tempGesture.Activator = new WheelButton(trigger);
            m_wheelBtnAction        = m_tempGesture.Activator;
            base.RedrawDisplay();
            lV_buttonMatchedGestures.Items.Clear();
            List <MyGesture> matchedGest = m_gesturesCollection.MatchedGestures(m_tempGesture.Activator.ID);

            if (matchedGest != null)
            {
                foreach (MyGesture gest in matchedGest)
                {
                    lV_buttonMatchedGestures.Items.Add(new ListViewItem(new string[] { gest.Caption, gest.AppGroup.Caption }));
                }
            }

            if (trigger == MouseButtons.None)
            {
                OnCanContinue(false);
            }
            else
            {
                OnCanContinue(true);
            }
        }
Пример #4
0
        public ComboListView()
        {
            // set comboBoxLanguages (comboBox1)
            m_gestures          = new List <MyGesture>();
            m_selectedGestures  = new List <string>();
            this.DoubleBuffered = true;
            OwnerDraw           = true;

            cms_options = new ContextMenuStrip();
            cms_options.ShowImageMargin = false;
            cms_options.Items.Add("ChangePriority");
            cms_options.ItemClicked += new ToolStripItemClickedEventHandler(cms_options_ItemClicked);

            m_cbItems = new List <string>();
            for (int i = 0; i < ConvertValue.PrioritiesCount; i++)
            {
                m_cbItems.Add(ConvertValue.IndexToPriority(i).ToString());
            }

            Translate();

            cB_execution.Items.AddRange(m_cbItems.ToArray());
            cB_execution.Size      = new System.Drawing.Size(0, 0);
            cB_execution.Location  = new System.Drawing.Point(0, 0);
            cB_execution.FlatStyle = FlatStyle.Flat;
            this.Controls.AddRange(new System.Windows.Forms.Control[] { this.cB_execution });
            cB_execution.SelectedIndexChanged += new System.EventHandler(this.ComboBoxSelectedIndexChanged);
            cB_execution.LostFocus            += new System.EventHandler(this.ComboBoxFocusExit);
            cB_execution.KeyPress             += new System.Windows.Forms.KeyPressEventHandler(this.ComboBoxKeyPress);
            cB_execution.DropDownStyle         = ComboBoxStyle.DropDownList;
            cB_execution.Hide();
        }
Пример #5
0
        public ODataQueryTests()
        {
            A.CallTo(() => tagService.GetTagIdsAsync(appId, TagGroups.Assets, A <HashSet <string> > .That.Contains("tag1")))
            .Returns(HashSet.Of("normalized1"));

            valueConverter = FindExtensions.CreateValueConverter(appId, tagService);
        }
Пример #6
0
            protected internal override void VisitConvertValue(ConvertValue node, object data)
            {
                StackTypes stack = data as StackTypes;

                Verifier.ProcessConv(node.Type, stack);

                AddTask(node.Next, stack);
            }
Пример #7
0
        public static object Convert(string field, object value, ConvertValue converter = null)
        {
            if (converter == null)
            {
                return(value);
            }

            return(converter(field, value));
        }
Пример #8
0
        public UC_W_classicCurve()
        {
            InitializeComponent();

            m_identifier = Page.ClassicCurve;
            m_next       = Page.DoubleBtn;
            m_previous   = Page.Welcome;

            List <PointF> points = new List <PointF>();

            //Curve G
            points.AddRange(new PointF[] { new PointF(253, 100), new PointF(252, 99), new PointF(249, 98), new PointF(247, 98), new PointF(243, 98),
                                           new PointF(241, 98), new PointF(238, 98), new PointF(235, 98), new PointF(230, 98), new PointF(227, 99), new PointF(223, 100), new PointF(218, 101),
                                           new PointF(215, 101), new PointF(215, 101), new PointF(212, 102), new PointF(208, 103), new PointF(205, 103), new PointF(200, 104), new PointF(196, 106),
                                           new PointF(191, 108), new PointF(187, 110), new PointF(182, 111), new PointF(177, 113), new PointF(171, 115), new PointF(165, 119), new PointF(159, 123),
                                           new PointF(156, 125), new PointF(149, 129), new PointF(145, 132), new PointF(141, 135), new PointF(136, 140), new PointF(132, 144), new PointF(130, 147),
                                           new PointF(126, 152), new PointF(123, 157), new PointF(121, 161), new PointF(119, 166), new PointF(117, 171), new PointF(115, 177), new PointF(114, 182),
                                           new PointF(114, 187), new PointF(113, 194), new PointF(113, 198), new PointF(113, 203), new PointF(113, 209), new PointF(113, 215), new PointF(114, 219),
                                           new PointF(116, 225), new PointF(118, 230), new PointF(120, 236), new PointF(122, 240), new PointF(125, 245), new PointF(128, 250), new PointF(132, 255),
                                           new PointF(134, 258), new PointF(139, 263), new PointF(144, 267), new PointF(148, 270), new PointF(157, 275), new PointF(163, 280), new PointF(170, 283),
                                           new PointF(177, 286), new PointF(183, 288), new PointF(191, 291), new PointF(199, 292), new PointF(206, 293), new PointF(214, 293), new PointF(221, 293),
                                           new PointF(229, 293), new PointF(236, 293), new PointF(243, 293), new PointF(250, 293), new PointF(257, 292), new PointF(263, 291), new PointF(270, 289),
                                           new PointF(275, 287), new PointF(281, 284), new PointF(284, 282), new PointF(290, 278), new PointF(295, 275), new PointF(300, 271), new PointF(304, 268),
                                           new PointF(308, 263), new PointF(311, 259), new PointF(315, 253), new PointF(318, 249), new PointF(321, 245), new PointF(322, 241), new PointF(323, 238),
                                           new PointF(323, 235), new PointF(323, 232), new PointF(323, 229), new PointF(323, 226), new PointF(323, 223), new PointF(322, 220), new PointF(320, 217),
                                           new PointF(319, 213), new PointF(317, 210), new PointF(315, 207), new PointF(312, 204), new PointF(310, 201), new PointF(306, 199), new PointF(303, 196),
                                           new PointF(299, 194), new PointF(296, 193), new PointF(290, 191), new PointF(285, 190), new PointF(280, 189), new PointF(275, 188), new PointF(268, 188),
                                           new PointF(261, 188), new PointF(255, 188), new PointF(249, 188), new PointF(243, 188), new PointF(239, 188), new PointF(235, 188), new PointF(231, 188),
                                           new PointF(228, 188), new PointF(224, 188), new PointF(220, 190), new PointF(218, 191), new PointF(216, 192), new PointF(215, 193), new PointF(213, 195),
                                           new PointF(212, 197), new PointF(210, 199), new PointF(210, 201), new PointF(209, 203), new PointF(209, 205), new PointF(208, 208), new PointF(208, 210),
                                           new PointF(207, 213), new PointF(207, 216), new PointF(207, 218), new PointF(207, 220) });

            m_gesture           = new MyGesture("ClassicCurve");
            m_gesture.Activator = new GestureParts.ClassicCurve(points, m_gesturesCollection);

            cB_gesture.Checked = Config.User.UsingClassicCurve;

            for (int i = 0; i < ConvertValue.MouseButtonsCount; i++)
            {
                cB_toggleBtn.Items.Add(Translation.GetMouseBtnText(ConvertValue.IndexToMouseBtn(i)));
            }

            cB_toggleBtn.SelectedIndex = ConvertValue.MouseBtnToIndex(Config.User.BtnToggle);

            cB_toggleExample.Items.Add(Translation.Name_RightButton);
            cB_toggleExample.SelectedIndex = 0;

            m_caption          = Translation.GetText("W_CC_caption");
            I_infoText         = Translation.GetText("W_CC_info");
            cB_gesture.Text    = Translation.Name_CurveGesture;
            lbl_toggleBtn.Text = lbl_toggleBtn2.Text = Translation.Name_CurveHoldDownBtn;
            rTB_instructions.AppendText(Translation.GetText("W_CC_instructions"));
            lbl_and.Text           = Translation.GetText("W_G_lbl_and");
            lbl_mouseMovement.Text = Translation.GetText("W_G_lbl_mouseMovement");
            rTB_description.AppendText("\n" + Translation.GetText("W_CC_description") + "\n");
        }
Пример #9
0
 private void SetValues()
 {
     cB_classicCurve.SelectedIndex  = Config.User.UsingClassicCurve ? 0 : 1;
     cB_doubleBtn.SelectedIndex     = Config.User.UsingDoubleBtn ? 0 : 1;
     cB_wheelBtn.SelectedIndex      = Config.User.UsingWheelBtn ? 0 : 1;
     cB_wndHandle.SelectedIndex     = Config.User.HandleWndUnderCursor ? 0 : 1;
     cB_toggleBtn.SelectedIndex     = ConvertValue.MouseBtnToIndex(Config.User.BtnToggle);
     cB_sensitiveZone.SelectedIndex = Config.User.SensitiveZone;
     nUD_deactivateTimeout.Value    = Math.Min(Math.Max(Config.User.DeactivationTimeout, nUD_deactivateTimeout.Minimum), nUD_deactivateTimeout.Maximum);
 }
Пример #10
0
 public override void SaveSettings()
 {
     Config.User.UsingClassicCurve    = cB_classicCurve.SelectedIndex == 0 ? true : false;
     Config.User.UsingDoubleBtn       = cB_doubleBtn.SelectedIndex == 0 ? true : false;
     Config.User.UsingWheelBtn        = cB_wheelBtn.SelectedIndex == 0 ? true : false;
     Config.User.HandleWndUnderCursor = cB_wndHandle.SelectedIndex == 0 ? true : false;
     Config.User.BtnToggle            = ConvertValue.IndexToMouseBtn(cB_toggleBtn.SelectedIndex);
     Config.User.SensitiveZone        = cB_sensitiveZone.SelectedIndex;
     Config.User.DeactivationTimeout  = (int)nUD_deactivateTimeout.Value;
 }
Пример #11
0
        private void ComboBoxSelectedIndexChanged(object sender, System.EventArgs e)
        {
            int index = cB_execution.SelectedIndex;

            if (index >= 0)
            {
                string str = cB_execution.Items[index].ToString();
                m_comboItem.SubItems[m_comboColumnIndex].Text = str;
                OnComboIndexChanged(m_comboItem, ConvertValue.IndexToPriority(index));
            }
        }
Пример #12
0
        /// <summary cref="IBackendCodeGenerator.GenerateCode(ConvertValue)"/>
        public void GenerateCode(ConvertValue value)
        {
            var sourceValue = Load(value.Value);

            var target = Allocate(value, value.TargetType);

            using var statement = BeginStatement(target);
            statement.AppendCast(value.TargetType);
            statement.AppendCast(value.SourceType);
            statement.AppendArgument(sourceValue);
        }
Пример #13
0
        /// <summary cref="IValueVisitor.Visit(ConvertValue)"/>
        public void Visit(ConvertValue value)
        {
            var sourceValue = LoadIntrinsic(value.Value);

            var targetRegister = AllocateIntrinsic(value);

            using (var statement = BeginStatement(targetRegister))
            {
                statement.AppendCast(value.TargetType);
                statement.AppendArgument(sourceValue);
            }
        }
Пример #14
0
 public void Translate()
 {
     for (int i = 0; i < m_gestures.Count; i++)
     {
         this.Items[i].SubItems[1].Text = m_gestures[i].PriorityName;
     }
     for (int i = 0; i < ConvertValue.PrioritiesCount; i++)
     {
         m_cbItems[i] = Translation.GetPriorityText(ConvertValue.IndexToPriority(i));
     }
     cms_options.Items[0].Text = Translation.GetText("MW_cMI_changePriority");
 }
Пример #15
0
 public override void Initialize()
 {
     base.Initialize();
     if (m_tempGesture.Activator != null && m_tempGesture.Activator.Type == BaseActivator.Types.WheelButton)
     {
         m_wheelBtnAction = m_tempGesture.Activator;
         if (m_wheelBtnAction.Trigger != MouseButtons.None)
         {
             cB_holdBtn.SelectedIndex = ConvertValue.MouseBtnToIndex(m_wheelBtnAction.Trigger);
         }
         base.RedrawDisplay();
     }
 }
Пример #16
0
        /// <summary cref="IBackendCodeGenerator.GenerateCode(ConvertValue)"/>
        public void GenerateCode(ConvertValue value)
        {
            var sourceValue = LoadPrimitive(value.Value);

            var convertOperation = PTXInstructions.GetConvertOperation(
                value.SourceType,
                value.TargetType);

            var targetRegister = AllocateHardware(value);

            using var command = BeginCommand(convertOperation);
            command.AppendArgument(targetRegister);
            command.AppendArgument(sourceValue);
        }
Пример #17
0
 public UC_TP_wheelBtn()
 {
     InitializeComponent();
     for (int i = 0; i < ConvertValue.MouseButtonsCount; i++)
     {
         cB_holdBtn.Items.Add(Translation.GetMouseBtnText(ConvertValue.IndexToMouseBtn(i)));
     }
     m_wheelBtnAction          = new WheelButton(MouseButtons.None);
     lbl_holdBtn.Text          = Translation.Name_WheelHoldDownBtn;
     rTB_pushHoldBtn.Text      = Translation.GetText("C_WheelG_pushHoldBtn");
     rTB_scrollWheel.Text      = Translation.GetText("C_WheelG_scrollWithWheel");
     rTB_releaseHoldBtn.Text   = Translation.GetText("C_WheelG_releaseHoldBtn");
     cH_associatedActions.Text = Translation.GetText("C_Gestures_cH_associatedActions");
     cH_group.Text             = Translation.GetText("C_Gestures_cH_group");
 }
Пример #18
0
        /// <summary cref="IValueVisitor.Visit(ConvertValue)"/>
        public void Visit(ConvertValue value)
        {
            var sourceValue = LoadPrimitive(value.Value);

            var convertOperation = Instructions.GetConvertOperation(
                value.SourceType,
                value.TargetType);

            var targetRegister = AllocatePrimitive(value);

            using (var command = BeginCommand(convertOperation))
            {
                command.AppendArgument(targetRegister);
                command.AppendArgument(sourceValue);
            }
        }
Пример #19
0
        public void SelectConveringType(ConvertValue convertValue, string option)
        {
            string errorMessage = string.Empty;

            try
            {
                switch (option)
                {
                case "Decimal to binary":
                    errorMessage = "Invalid entered value for converting decimal to binary!";
                    convertToBinary(convertValue);
                    break;

                case "Decimal to octal":
                    errorMessage = "Invalid entered value for converting decimal to octal!";
                    convertToOct(convertValue);
                    break;

                case "Decimal to hexadecimal":
                    errorMessage = "Invalid entered value for converting decimal to hexadecimal!";
                    convertToHex(convertValue);
                    break;

                case "Binary to decimal":
                    errorMessage = "Invalid entered value for converting binary to decimal!";
                    convertFromBinary(convertValue);
                    break;

                case "Octal to decimal":
                    errorMessage = "Invalid entered value for converting octal to decimal!";
                    convertFromOct(convertValue);
                    break;

                case "Hexadecimal to decimal":
                    errorMessage = "Invalid entered value for converting hexadecimal to decimal!";
                    convertFromHex(convertValue);
                    break;

                default:
                    break;
                }
            }
            catch (Exception)
            {
                throw new Exception(errorMessage);
            }
        }
Пример #20
0
 private void ShowComboBox()
 {
     cB_execution.Items.Clear();
     if (!m_gestures[m_comboItem.Index].IsImplicitOnly)
     {
         cB_execution.Items.AddRange(m_cbItems.ToArray());
     }
     else
     {
         cB_execution.Items.Add(m_cbItems[0]);
     }
     cB_execution.Show();
     //cB_execution.Text = m_comboItem.SubItems[m_comboColumnIndex].Text;
     cB_execution.SelectedIndex = ConvertValue.PriorityToIndex(m_gestures[m_comboItem.Index].ExecutionType);
     cB_execution.SelectAll();
     cB_execution.Focus();
 }
Пример #21
0
 private void SetValues()
 {
     cB_priority.Items.Clear();
     if (!m_tempGesture.IsImplicitOnly)
     {
         for (int i = 0; i < ConvertValue.PrioritiesCount; i++)
         {
             cB_priority.Items.Add(Translation.GetPriorityText(ConvertValue.IndexToPriority(i)));
         }
     }
     else
     {
         cB_priority.Items.Add(Translation.GetPriorityText(ConvertValue.IndexToPriority(0)));
         m_tempGesture.ExecutionType = ExecuteType.Implicit;
     }
     cB_priority.SelectedIndex = ConvertValue.PriorityToIndex(m_tempGesture.ExecutionType);
 }
Пример #22
0
        public UC_TP_doubleBtn()
        {
            InitializeComponent();

            for (int i = 0; i < ConvertValue.MouseButtonsCount; i++)
            {
                cB_holdBtn.Items.Add(Translation.GetMouseBtnText(ConvertValue.IndexToMouseBtn(i)));
                cB_executeBtn.Items.Add(Translation.GetMouseBtnText(ConvertValue.IndexToMouseBtn(i)));
            }

            m_doubleBtnAction         = new DoubleButton(MouseButtons.None, MouseButtons.None);
            lbl_holdBtn.Text          = Translation.Name_RockerHoldDownBtn;
            rTB_pushHoldBtn.Text      = Translation.GetText("C_RockerG_pushHoldBtn");
            lbl_executeBtn.Text       = Translation.Name_RockerExecuteBtn;
            rTB_clickExecuteBtn.Text  = Translation.GetText("C_RockerG_clickExecuteBtn");
            rTB_notes.Text            = Translation.GetText("C_RockerG_notes");
            cH_associatedActions.Text = Translation.GetText("C_Gestures_cH_associatedActions");
            cH_group.Text             = Translation.GetText("C_Gestures_cH_group");
        }
Пример #23
0
 private void comboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (!m_bOwnSelect)
     {
         //m_bOwnSelect = true;
         //ComboBox cbIndexChanged = (ComboBox)sender;
         //ComboBox cbModifyCombo = cB_executeBtn;
         //if (cbIndexChanged == cB_executeBtn)
         //    cbModifyCombo = cB_holdBtn;
         //object selected = cbModifyCombo.SelectedItem;
         //cbModifyCombo.Items.Clear();
         //cbModifyCombo.Items.AddRange(Enum.GetNames(typeof(MouseButtons)));
         //cbModifyCombo.Items.Remove(MouseButtons.None.ToString());
         //cbModifyCombo.Items.Remove(cbIndexChanged.SelectedItem);
         //cbModifyCombo.SelectedItem = selected;
         //m_bOwnSelect = false;
         MouseButtons holdBtn    = MouseButtons.None;
         MouseButtons executeBtn = MouseButtons.None;
         if (cB_holdBtn.SelectedIndex != -1)
         {
             holdBtn = ConvertValue.IndexToMouseBtn(cB_holdBtn.SelectedIndex); //(MouseButtons)Enum.Parse(typeof(MouseButtons), cB_holdBtn.SelectedItem.ToString());
         }
         if (cB_executeBtn.SelectedIndex != -1)
         {
             executeBtn = ConvertValue.IndexToMouseBtn(cB_executeBtn.SelectedIndex);//(MouseButtons)Enum.Parse(typeof(MouseButtons), cB_executeBtn.SelectedItem.ToString());
         }
         m_tempGesture.Activator = new DoubleButton(holdBtn, executeBtn);
         m_doubleBtnAction       = m_tempGesture.Activator;
         base.RedrawDisplay();
         lV_buttonMatchedGestures.Items.Clear();
         List <MyGesture> matchedGest = m_gesturesCollection.MatchedGestures(m_tempGesture.Activator.ID);
         if (matchedGest != null)
         {
             foreach (MyGesture gest in matchedGest)
             {
                 lV_buttonMatchedGestures.Items.Add(new ListViewItem(new string[] { gest.Caption, gest.AppGroup.Caption }));
             }
         }
         SetInfoValues();
     }
 }
Пример #24
0
        public void TestConfirmFlightWithLuggage()
        {
            SearchPage searchPage = new SearchPage(Driver);

            searchPage.Open();
            searchPage.SelectFlightFrom("Gatwick");
            searchPage.SelectFlightTo("Bordeaux");
            searchPage.SetOneWayJourney();
            searchPage.SetOutBoundDate("1", "3", "2017");
            searchPage.SelectAdultsNum("1").SelectChildrenNum("0").SelectInfantsNum("0");

            BookingPage bookingPage = searchPage.ClickShowFlights();

            bookingPage.SelectJourney();
            var price = bookingPage.GetJourneyPrice();
            BookingStep2Page bookingStep2Page = bookingPage.ClickContinue();

            bookingStep2Page.AddHoldBag("23");
            var priceWithLuggage = bookingStep2Page.GetFinalPrice();

            Assert.IsTrue(ConvertValue.GetDoubleValue(priceWithLuggage) > ConvertValue.GetDoubleValue(price), "Cost of the flight has not increased with adding luggage");
        }
Пример #25
0
 public override void Initialize()
 {
     base.Initialize();
     if (m_tempGesture.Activator != null && m_tempGesture.Activator.Type == BaseActivator.Types.DoubleButton)
     {
         m_doubleBtnAction = m_tempGesture.Activator;
         m_bOwnSelect      = true;
         if (m_doubleBtnAction.Trigger != MouseButtons.None)
         {
             //cB_executeBtn.Items.Remove(m_doubleBtnAction.Trigger.ToString());
             cB_holdBtn.SelectedIndex = ConvertValue.MouseBtnToIndex(m_doubleBtnAction.Trigger);
         }
         if (m_doubleBtnAction.Modifier != MouseButtons.None)
         {
             //cB_holdBtn.Items.Remove(m_doubleBtnAction.Modifier.ToString());
             cB_executeBtn.SelectedIndex = ConvertValue.MouseBtnToIndex(m_doubleBtnAction.Modifier);
         }
         m_bOwnSelect = false;
         //tabControl_invokeAction.SelectedTab = tabPage_buttons;
         base.RedrawDisplay();
     }
 }
Пример #26
0
        public override void Translate()
        {
            base.Translate();
            gB_gestureTypes.Text         = Translation.GetText("O_Gestures_gB_gestureTypes");
            lbl_classicCurve.Text        = Translation.Name_CurveGesture;
            lbl_doubleBtn.Text           = Translation.Name_RockerGesture;
            lbl_wheelBtn.Text            = Translation.Name_WheelGesture;
            gB_activation.Text           = Translation.GetText("O_Gestures_gB_activation");
            lbl_typeOfWnd.Text           = Translation.GetText("O_Gestures_lbl_typeOfWnd");
            lbl_toggleButton.Text        = Translation.Name_CurveHoldDownBtn;
            lbl_sensitiveZone.Text       = Translation.GetText("O_Gestures_lbl_sensitiveZone");
            lbl_deactivationTimeout.Text = Translation.GetText("O_Gestures_lbl_deactivationTimeout");
            btn_wizard.Text = Translation.GetText("O_Gestures_btn_wizard");

            cB_classicCurve.Items[0] = cB_doubleBtn.Items[0] = cB_wheelBtn.Items[0] = Translation.GetText("O_Gestures_cBI_enabled");
            cB_classicCurve.Items[1] = cB_doubleBtn.Items[1] = cB_wheelBtn.Items[1] = Translation.GetText("O_Gestures_cBI_disabled");
            cB_wndHandle.Items[0]    = Translation.GetText("O_Gestures_cBI_underCursor");
            cB_wndHandle.Items[1]    = Translation.GetText("O_Gestures_cBI_inForeground");
            for (int i = 0; i < ConvertValue.MouseButtonsCount; i++)
            {
                cB_toggleBtn.Items[i] = Translation.GetMouseBtnText(ConvertValue.IndexToMouseBtn(i));
            }
            cB_sensitiveZone.Items[0] = Translation.GetText("O_Gestures_cBI_off");
        }
Пример #27
0
 public ActionResult IndexConvert(ConvertValue convertValue)
 {
     ViewBag.SelectListItems = new SelectList(Data.Data.Options);
     try
     {
         convertRepository.SelectConveringType(convertValue, convertValue.OptionValue);
         if (ModelState.IsValid)
         {
             TempData["Message"] = "Your value was successfully converted!";
         }
         else
         {
             convertValue.Value  = "";
             convertValue.Result = "";
         }
     }
     catch (Exception ex)
     {
         convertValue.Value  = "";
         convertValue.Result = "";
         ModelState.AddModelError("Result", ex.Message);
     }
     return(View(convertValue));
 }
Пример #28
0
 public void Visit(ConvertValue value)
 {
 }
Пример #29
0
 /// <summary cref="IValueVisitor.Visit(ConvertValue)"/>
 public void Visit(ConvertValue value) =>
 CodeGenerator.GenerateCode(value);
Пример #30
0
 protected override void VisitConvertValue(ConvertValue node, object data)
 {
     state.Stack.Perform_ConvertValue(node.Type, node.Overflow, node.Unsigned, out exc);
     nextNode = node.Next;
 }