Exemplo n.º 1
0
 private void SetButtons(buttonType type)
 {
     CurrentButtonType    = type;
     AddButton.Content    = "Add " + type.ToString();
     EditButton.Content   = "Edit " + type.ToString();
     DeleteButton.Content = "Delete " + type.ToString();
 }
Exemplo n.º 2
0
 public ClickableRectangle(Game game, Rectangle btnRect, buttonType btnType)
     : base(game, new Point(btnRect.X, btnRect.Y))
 {
     this.btnType = btnType;
     destinationBox = btnRect;
     sourceBox = btnRect;
 }
Exemplo n.º 3
0
        private void Validation_BT_Click(object sender, RoutedEventArgs e)
        {
            Log.writeLine("Mise à jour Mapping");

            ONRGBPrimaryColor   = (int)ON_Primary_Color_CB.SelectedItem;
            ONRGBSecondaryColor = (int)ON_Secondary_Color_CB.SelectedItem;
            ONBlinkingType      = (BlinkingType)ON_Flashing_Type_CB.SelectedItem;
            ONBlinkingSpeed     = (BlinkingSpeed)ON_Flashing_Speed_CB.SelectedItem;

            OFFRGBPrimaryColor   = (int)OFF_Primary_Color_CB.SelectedItem;
            OFFRGBSecondaryColor = (int)OFF_Secondary_Color_CB.SelectedItem;
            OFFBlinkingType      = (BlinkingType)OFF_Flashing_Type_CB.SelectedItem;
            OFFBlinkingSpeed     = (BlinkingSpeed)OFF_Flashing_Speed_CB.SelectedItem;

            BTType = (buttonType)BT_Type_CB.SelectedItem;

            try
            {
                if ((string)Groupe_Selection.SelectedItem == "None")
                {
                    Groupe = -1;
                }
            }
            catch
            {
                Groupe = (int)Groupe_Selection.SelectedItem;
            }



            if (BT_Valid_Click != null)
            {
                this.BT_Valid_Click(this, e);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// Creates a button of a specific type and at a location
        /// </summary>
        /// <param name="contentManager">the content manager</param>
        /// <param name="location">the location of the button</param>
        /// <param name="buttonType">the type of button that it will be</param>
        /// <param name="height">the height of the button</param>
        /// <param name="width">the width of the button</param>
        public Button(ContentManager contentManager, Vector2 location, buttonType buttonType, int width, int height)
        {
            LoadContent(contentManager);

            buttonRectangle = new Rectangle((int)location.X, (int)location.Y, width, height);

            type = buttonType;
        }
Exemplo n.º 5
0
 public InfoboxTemplate(buttonType type)
 {
     InitializeComponent();
     switch (type)
     {
     case buttonType.OK:
         button1.Text     = "OK";
         button2.Visible  = false;
         button1.Location = new Point(117, 122);
     }
 }
Exemplo n.º 6
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     if (txtPathToR.Text != "")
     {
         RPathResult = buttonType.OK;
         this.Close();
     }
     else
     {
         MessageBox.Show("You must select a path before you can continue");
     }
 }
Exemplo n.º 7
0
        public Button(int bID)
        {
            ID = bID;

            IsOnToogle = false;

            Type = buttonType.Momentary;

            offColor    = ButtonColor.None;
            offFlashing = false;

            onColor    = ButtonColor.None;
            onFlashing = false;
        }
Exemplo n.º 8
0
        public void SetCondition(LinkedList condition)
        {
            sline              = GetLine(condition);
            sArea              = GetArea(condition);
            sEQPModel          = GetModel(condition);
            sDCPID             = GetDCP(condition);
            llEQPList          = GetEQP(condition);
            llModuleList       = GetModule(condition);
            llProductList      = GetProduct(condition);
            llRecipeList       = GetRecipe(condition);
            llStepList         = GetStep(condition);
            llTraceParamList   = GetTraceParam(condition);
            llSummaryParamList = GetSummaryParam(condition);
            llEventParamList   = GetEventParam(condition);
            llMSPCList         = GetMSPC(condition);
            llLotList          = GetLot(condition);
            count              = GetCount(condition);
            datas              = GetDatas(condition);
            dtStartTime        = GetStart(condition);
            dtEndTime          = GetEnd(condition);
            sOption            = GetOption(condition);
            llResultList       = GetResult(condition);
            button             = GetButton(condition);


            this._sLine                = GetLine(condition);
            this._sLineRawID           = GetLineRawID(condition);
            this._sArea                = GetArea(condition);
            this._sAreaRawID           = GetAreaRawID(condition);
            this._sEQPModel            = GetModel(condition);
            this._sDCPID               = GetDCP(condition);
            this._llstEQPList          = GetEQP(condition);
            this._llstModuleList       = GetModule(condition);
            this._llstProductList      = GetProduct(condition);
            this._llstRecipeList       = GetRecipe(condition);
            this._llstStepList         = GetStep(condition);
            this._llstTraceParamList   = GetTraceParam(condition);
            this._llstSummaryParamList = GetSummaryParam(condition);
            this._llstEventParamList   = GetEventParam(condition);
            this._llstMSPCList         = GetMSPC(condition);
            this._llstLotList          = GetLot(condition);
            this._iCount               = GetCount(condition);
            this._objDatas             = GetDatas(condition);
            this._dtStartTime          = GetStart(condition);
            this._dtEndTime            = GetEnd(condition);
            this._sOption              = GetOption(condition);
            this._llstResultList       = GetResult(condition);
            this._button               = GetButton(condition);
        }
Exemplo n.º 9
0
        public RGBButton(int bID)
        {
            ID = bID;

            IsOnToogle = false;

            Type = buttonType.Momentary;

            offprimaryColor   = 0;
            offsecondaryColor = 0;
            offFlashingtype   = BlinkingType.OneShot;
            offFlashingspeed  = BlinkingSpeed._1_2;

            onprimaryColor   = 0;
            onsecondaryColor = 0;
            onFlashingtype   = BlinkingType.OneShot;
            onFlashingspeed  = BlinkingSpeed._1_2;

            Groupe = -1;
        }
Exemplo n.º 10
0
        public static buttonType GetButton(LinkedList condition)
        {
            buttonType btnData = buttonType.SEARCH;
            object     objData = condition[Definition.CONDITION_KEY_BUTTON];

            if (objData == null)
            {
                return(btnData);
            }

            try
            {
                btnData = (buttonType)objData;
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine(e);
            }

            return(btnData);
        }
Exemplo n.º 11
0
 public void HighButtonSelected()
 {
     buttonSelected    = true;
     currentButtonType = buttonType.high;
 }
Exemplo n.º 12
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     RPathResult = buttonType.Cancel;
     this.Close();
 }
Exemplo n.º 13
0
 public LFButtonInputMap(string _id, buttonType _bType, KeyCode _key, int jNumber, int jButton)
 {
     id = _id;
     bType = _bType;
     key = _key;
     joystickNumber = jNumber;
     joystickButton = jButton;
     // build the joystick string based on the button input
 }
        private void Validation_BT_Click(object sender, RoutedEventArgs e)
        {
            switch (ON_BT_Color_CB.SelectedItem.ToString())
            {
            case "Green":
                ONBTColor = ButtonColor.Green;
                break;

            case "Red":
                ONBTColor = ButtonColor.Red;
                break;

            case "Ambre":
                ONBTColor = ButtonColor.Ambre;
                break;

            case "Yellow":
                ONBTColor = ButtonColor.Yellow;
                break;

            case "None":
                ONBTColor = ButtonColor.None;
                break;
            }

            switch (OFF_BT_Color_CB.SelectedItem.ToString())
            {
            case "Green":
                OFFBTColor = ButtonColor.Green;
                break;

            case "Red":
                OFFBTColor = ButtonColor.Red;
                break;

            case "Ambre":
                OFFBTColor = ButtonColor.Ambre;
                break;

            case "Yellow":
                OFFBTColor = ButtonColor.Yellow;
                break;

            case "None":
                OFFBTColor = ButtonColor.None;
                break;
            }

            switch (BT_Type_CB.SelectedItem.ToString())
            {
            case "Momentary":
                BTType = buttonType.Momentary;
                break;

            case "Toogle":
                BTType = buttonType.Toogle;
                break;
            }

            ONFlash  = (bool)On_BT_Flash_Check.IsChecked;
            OFFFlash = (bool)Off_BT_Flash_Check.IsChecked;

            if (BT_Valid_Click != null)
            {
                this.BT_Valid_Click(this, e);
            }
        }
Exemplo n.º 15
0
 public static void AddCondition(LinkedList condition, string line, string lineRawID, string area, string areaRawID,
                                 string eqpModel, string dcpID, string dcpRawID,
                                 LinkedList eqp, LinkedList module, LinkedList product, LinkedList recipe,
                                 LinkedList step, LinkedList traceParam, LinkedList summaryParam, LinkedList eventParam,
                                 LinkedList mspc, LinkedList lot, int count, object[,] datas,
                                 DateTime start, DateTime end, string option, LinkedList result, buttonType button)
 {
     AddLine(condition, line);
     AddLineRawID(condition, lineRawID);
     AddArea(condition, area);
     AddAreaRawID(condition, areaRawID);
     AddModel(condition, eqpModel);
     AddDCP(condition, dcpID);
     AddDCPRawID(condition, dcpRawID);
     AddEQP(condition, eqp);
     AddModule(condition, module);
     AddProduct(condition, product);
     AddRecipe(condition, recipe);
     AddStep(condition, step);
     AddTraceParam(condition, traceParam);
     AddSummaryParam(condition, summaryParam);
     AddEventParam(condition, eventParam);
     AddMSPC(condition, mspc);
     AddLot(condition, lot);
     AddCount(condition, count);
     AddDatas(condition, datas);
     AddStart(condition, start);
     AddEnd(condition, end);
     AddOption(condition, option);
     AddResult(condition, result);
     AddButton(condition, button);
 }
Exemplo n.º 16
0
	void Setup()
	{
		beatlisttarget = noteSetting.Beat;
		buttontarget = noteSetting.Button;
		Length = noteSetting.Length;
		ActivateButton((int) noteSetting.Button);
		played = false;
	}
Exemplo n.º 17
0
	public NoteSettings (int length, beatList beat, buttonType button)
	{
		Length = length;
		Beat = beat;
		Button = button;
	}
Exemplo n.º 18
0
 public void RestartButtonSelected()
 {
     buttonSelected    = true;
     currentButtonType = buttonType.restart;
 }
Exemplo n.º 19
0
 public static void AddButton(LinkedList condition, buttonType button)
 {
     condition.Add(Definition.CONDITION_KEY_BUTTON, button);
 }
Exemplo n.º 20
0
 public void MedButtonSelected()
 {
     buttonSelected    = true;
     currentButtonType = buttonType.med;
 }
Exemplo n.º 21
0
 public void LowButtonSelected()
 {
     buttonSelected    = true;
     currentButtonType = buttonType.low;
 }
Exemplo n.º 22
0
 public void ReadyButtonSelected()
 {
     buttonSelected    = true;
     currentButtonType = buttonType.ready;
 }