private void Initialize_Components() { // window window = new GHI.Glide.Display.Window("window_Main", Window_Manager.Display_Width, Window_Manager.Display_Heigth); window.BackColor = Colors.White; // textBox_Header textBox_Header = new TextBox("textBox_Header", 255, 120, 20, 270, 32); textBox_Header.Text = "Aqua-Comp"; textBox_Header.TextAlign = 2; window.AddChild(textBox_Header); // textBox_Time textBox_Time = new TextBox("textBox_Time", 255, 410, 20, 50, 32); textBox_Time.Text = "--:--"; textBox_Time.TextAlign = 2; window.AddChild(textBox_Time); // button_Calibrate textBox_Calibrate = new TextBox("textBox_Calibrate", 255, 20, 20, 80, 32); textBox_Calibrate.Text = "Calibrate"; textBox_Calibrate.TextAlign = 2; textBox_Calibrate.TapEvent += new OnTap(button_Calibrate_TapEvent); window.AddChild(textBox_Calibrate); // button_Fertilize button_Fertilize = new Button("button_Fertilize", 255, 20, 70, 80, 32); button_Fertilize.Text = "Fertilize"; button_Fertilize.TapEvent += new OnTap(button_Fertilize_TapEvent); window.AddChild(button_Fertilize); }
// Show result for each row in the rectangles private bool populateVisualResult(int fc, int hc) { bool result = false; int fullWrong = 4 - (fc + hc); GHI.Glide.UI.Canvas canvas = new GHI.Glide.UI.Canvas(); int xPosition = 100; masterMind.AddChild(canvas); for (int i = 0; i < fc; i++) { xPosition += 20; canvas.DrawRectangle(GHI.Glide.Colors.Green, 1, xPosition, yPostition, 10, 10, 0, 0, GHI.Glide.Colors.Green, 0, 0, GHI.Glide.Colors.Green, 0, 0, 100); } for (int i = 0; i < hc; i++) { xPosition += 20; canvas.DrawRectangle(GHI.Glide.Colors.Gray, 1, xPosition, yPostition, 10, 10, 0, 0, GHI.Glide.Colors.Gray, 0, 0, GHI.Glide.Colors.Gray, 0, 0, 100); } for (int i = 0; i < fullWrong; i++) { xPosition += 20; canvas.DrawRectangle(GHI.Glide.Colors.Red, 1, xPosition, yPostition, 10, 10, 0, 0, GHI.Glide.Colors.Red, 0, 0, GHI.Glide.Colors.Red, 0, 0, 100); } if (fc == 4 | round == 10) { showResultCode(canvas); txtResult = (GHI.Glide.UI.TextBlock)masterMind.GetChildByName("txtResult"); if (fc == 4) { txtResult.Text = "You Win! "; txtResult.FontColor = GHI.Glide.Colors.Green; } else { txtResult.Text = "You Lost ! Code is : "; txtResult.FontColor = GHI.Glide.Colors.Red; } result = true; } return(result); }
private void Initialize_Components() { // window window = new GHI.Glide.Display.Window("window_Fertilize", Window_Manager.Display_Width, Window_Manager.Display_Heigth); window.BackColor = Colors.White; // textBox_Header textBox_Header = new TextBox("textBox_Header", 255, 120, 20, 270, 32); textBox_Header.Text = "Fertilize"; textBox_Header.TextAlign = 2; window.AddChild(textBox_Header); // textBox_Time textBox_Time = new TextBox("textBox_Time", 255, 410, 20, 50, 32); textBox_Time.Text = "--:--"; textBox_Time.TextAlign = 2; window.AddChild(textBox_Time); // textBox_Back textBox_Back = new TextBox("button_Back", 255, 20, 20, 80, 32); textBox_Back.Text = "Back"; textBox_Back.TextAlign = 2; textBox_Back.TapEvent += new OnTap(button_Back_TapEvent); window.AddChild(textBox_Back); // button_Properties button_Properties = new Button("button_Properties", 255, 20, 70, 80, 32); button_Properties.Text = "Properties"; button_Properties.TapEvent += button_Properties_TapEvent; window.AddChild(button_Properties); // button_Schedule button_Schedule = new Button("button_Schedule", 255, 20, 120, 80, 32); button_Schedule.Text = "Schedule"; button_Schedule.TapEvent += button_Schedule_TapEvent; window.AddChild(button_Schedule); // button_AwcSettings button_AwcSettings = new Button("button_AwcSettings", 255, 20, 170, 80, 32); button_AwcSettings.Text = "AWC Edit"; button_AwcSettings.TapEvent += button_AwcSettings_TapEvent; window.AddChild(button_AwcSettings); // button_AwcRun button_AwcRun = new Button("button_AwcRun", 255, 20, 220, 80, 32); button_AwcRun.Text = "AWC Run"; button_AwcRun.TapEvent += button_AwcRun_TapEvent; window.AddChild(button_AwcRun); // textBox_Name_Pump1 textBox_Name_Pump1 = new TextBox("textBox_Name_Pump1", 255, 120, 70, 150, 32); textBox_Name_Pump1.Text = Fertilize_Manager.Pump1.Name; window.AddChild(textBox_Name_Pump1); // textBox_Name_Pump2 textBox_Name_Pump2 = new TextBox("textBox_Name_Pump2", 255, 120, 120, 150, 32); textBox_Name_Pump2.Text = Fertilize_Manager.Pump2.Name; window.AddChild(textBox_Name_Pump2); // textBox_Name_Pump3 textBox_Name_Pump3 = new TextBox("textBox_Name_Pump3", 255, 120, 170, 150, 32); textBox_Name_Pump3.Text = Fertilize_Manager.Pump3.Name; window.AddChild(textBox_Name_Pump3); // textBox_Name_Pump4 textBox_Name_Pump4 = new TextBox("textBox_Name_Pump4", 255, 120, 220, 150, 32); textBox_Name_Pump4.Text = Fertilize_Manager.Pump4.Name; window.AddChild(textBox_Name_Pump4); // checkBox_Running_Pump1 checkBox_Running_Pump1 = new CheckBox("checkBox_Running_Pump1", 255, 290, 70); checkBox_Running_Pump1.TapEvent += checkBox_Running_Pump1_TapEvent; window.AddChild(checkBox_Running_Pump1); // checkBox_Running_Pump2 checkBox_Running_Pump2 = new CheckBox("checkBox_Running_Pump2", 255, 290, 120); checkBox_Running_Pump2.TapEvent += checkBox_Running_Pump2_TapEvent; window.AddChild(checkBox_Running_Pump2); // checkBox_Running_Pump3 checkBox_Running_Pump3 = new CheckBox("checkBox_Running_Pump3", 255, 290, 170); checkBox_Running_Pump3.TapEvent += checkBox_Running_Pump3_TapEvent; window.AddChild(checkBox_Running_Pump3); // checkBox_Running_Pump4 checkBox_Running_Pump4 = new CheckBox("checkBox_Running_Pump4", 255, 290, 220); checkBox_Running_Pump4.TapEvent += checkBox_Running_Pump4_TapEvent; window.AddChild(checkBox_Running_Pump4); // textBox_NextRun_Pump1 textBox_NextRun_Pump1 = new TextBox("textBox_NextRun_Pump1", 255, 340, 70, 50, 32); textBox_NextRun_Pump1.Text = "--:--"; textBox_NextRun_Pump1.TextAlign = 2; window.AddChild(textBox_NextRun_Pump1); // textBox_NextRun_Pump2 textBox_NextRun_Pump2 = new TextBox("textBox_NextRun_Pump2", 255, 340, 120, 50, 32); textBox_NextRun_Pump2.Text = "--:--"; textBox_NextRun_Pump2.TextAlign = 2; window.AddChild(textBox_NextRun_Pump2); // textBox_NextRun_Pump3 textBox_NextRun_Pump3 = new TextBox("textBox_NextRun_Pump3", 255, 340, 170, 50, 32); textBox_NextRun_Pump3.Text = "--:--"; textBox_NextRun_Pump3.TextAlign = 2; window.AddChild(textBox_NextRun_Pump3); // textBox_NextRun_Pump4 textBox_NextRun_Pump4 = new TextBox("textBox_NextRun_Pump4", 255, 340, 220, 50, 32); textBox_NextRun_Pump4.Text = "--:--"; textBox_NextRun_Pump4.TextAlign = 2; window.AddChild(textBox_NextRun_Pump4); // textBox_RemainingTime_Pump1 textBox_RemainingTime_Pump1 = new TextBox("textBox_RemainingTime_Pump1", 255, 410, 70, 50, 32); textBox_RemainingTime_Pump1.Text = "--:--"; textBox_RemainingTime_Pump1.TextAlign = 2; window.AddChild(textBox_RemainingTime_Pump1); // textBox_RemainingTime_Pump2 textBox_RemainingTime_Pump2 = new TextBox("textBox_RemainingTime_Pump2", 255, 410, 120, 50, 32); textBox_RemainingTime_Pump2.Text = "--:--"; textBox_RemainingTime_Pump2.TextAlign = 2; window.AddChild(textBox_RemainingTime_Pump2); // textBox_RemainingTime_Pump3 textBox_RemainingTime_Pump3 = new TextBox("textBox_RemainingTime_Pump3", 255, 410, 170, 50, 32); textBox_RemainingTime_Pump3.Text = "--:--"; textBox_RemainingTime_Pump3.TextAlign = 2; window.AddChild(textBox_RemainingTime_Pump3); // textBox_RemainingTime_Pump4 textBox_RemainingTime_Pump4 = new TextBox("textBox_RemainingTime_Pump4", 255, 410, 220, 50, 32); textBox_RemainingTime_Pump4.Text = "--:--"; textBox_RemainingTime_Pump4.TextAlign = 2; window.AddChild(textBox_RemainingTime_Pump4); }
private void Initialize_Components() { // window window = new GHI.Glide.Display.Window("window_AWC_Edit", Window_Manager.Display_Width, Window_Manager.Display_Heigth); window.BackColor = Colors.White; // textBox_Header textBox_Header = new TextBox("textBox_Header", 255, 120, 20, 270, 32); textBox_Header.Text = "AWC Edit"; textBox_Header.TextAlign = 2; window.AddChild(textBox_Header); // textBox_Time textBox_Time = new TextBox("textBox_Time", 255, 410, 20, 50, 32); textBox_Time.Text = "--:--"; textBox_Time.TextAlign = 2; window.AddChild(textBox_Time); // textBox_Back textBox_Back = new TextBox("button_Back", 255, 20, 20, 80, 32); textBox_Back.Text = "Back"; textBox_Back.TextAlign = 2; textBox_Back.TapEvent += new OnTap(button_Back_TapEvent); window.AddChild(textBox_Back); // textBox_Name_Pump1 textBox_Name_Pump1 = new TextBox("textBox_Name_Pump1", 255, 120, 70, 170, 32); textBox_Name_Pump1.Text = Fertilize_Manager.Pump1.Name; window.AddChild(textBox_Name_Pump1); // textBox_Name_Pump2 textBox_Name_Pump2 = new TextBox("textBox_Name_Pump2", 255, 120, 120, 170, 32); textBox_Name_Pump2.Text = Fertilize_Manager.Pump2.Name; window.AddChild(textBox_Name_Pump2); // textBox_Name_Pump3 textBox_Name_Pump3 = new TextBox("textBox_Name_Pump3", 255, 120, 170, 170, 32); textBox_Name_Pump3.Text = Fertilize_Manager.Pump3.Name; window.AddChild(textBox_Name_Pump3); // textBox_Name_Pump4 textBox_Name_Pump4 = new TextBox("textBox_Name_Pump4", 255, 120, 220, 170, 32); textBox_Name_Pump4.Text = Fertilize_Manager.Pump4.Name; window.AddChild(textBox_Name_Pump4); // textBox_Quantity_Pump1 textBox_Quantity_Pump1 = new TextBox("textBox_Quantity_Pump1", 255, 310, 70, 80, 32); textBox_Quantity_Pump1.Text = Fertilize_Manager.Pump1.AWC_Quantity.ToString() + " ml"; textBox_Quantity_Pump1.TextAlign = 2; textBox_Quantity_Pump1.TapEvent += textBox_Quantity_Pump1_TapEvent; textBox_Quantity_Pump1.ValueChangedEvent += textBox_Quantity_Pump1_ValueChangedEvent; window.AddChild(textBox_Quantity_Pump1); // textBox_Quantity_Pump2 textBox_Quantity_Pump2 = new TextBox("textBox_Quantity_Pump2", 255, 310, 120, 80, 32); textBox_Quantity_Pump2.Text = Fertilize_Manager.Pump2.AWC_Quantity.ToString() + " ml"; textBox_Quantity_Pump2.TextAlign = 2; textBox_Quantity_Pump2.TapEvent += textBox_Quantity_Pump2_TapEvent; textBox_Quantity_Pump2.ValueChangedEvent += textBox_Quantity_Pump2_ValueChangedEvent; window.AddChild(textBox_Quantity_Pump2); // textBox_Quantity_Pump3 textBox_Quantity_Pump3 = new TextBox("textBox_Quantity_Pump3", 255, 310, 170, 80, 32); textBox_Quantity_Pump3.Text = Fertilize_Manager.Pump3.AWC_Quantity.ToString() + " ml"; textBox_Quantity_Pump3.TextAlign = 2; textBox_Quantity_Pump3.TapEvent += textBox_Quantity_Pump3_TapEvent; textBox_Quantity_Pump3.ValueChangedEvent += textBox_Quantity_Pump3_ValueChangedEvent; window.AddChild(textBox_Quantity_Pump3); // textBox_Quantity_Pump4 textBox_Quantity_Pump4 = new TextBox("textBox_Quantity_Pump4", 255, 310, 220, 80, 32); textBox_Quantity_Pump4.Text = Fertilize_Manager.Pump4.AWC_Quantity.ToString() + " ml"; textBox_Quantity_Pump4.TextAlign = 2; textBox_Quantity_Pump4.TapEvent += textBox_Quantity_Pump4_TapEvent; textBox_Quantity_Pump4.ValueChangedEvent += textBox_Quantity_Pump4_ValueChangedEvent; window.AddChild(textBox_Quantity_Pump4); }
private void Initialize_Components() { // window window = new GHI.Glide.Display.Window("window_Fertilize", Window_Manager.Display_Width, Window_Manager.Display_Heigth); window.BackColor = Colors.White; // textBox_Header textBox_Header = new TextBox("textBox_Header", 255, 120, 20, 270, 32); textBox_Header.Text = "Pump Properties"; textBox_Header.TextAlign = 2; window.AddChild(textBox_Header); // textBox_Time textBox_Time = new TextBox("textBox_Time", 255, 410, 20, 50, 32); textBox_Time.Text = "--:--"; textBox_Time.TextAlign = 2; window.AddChild(textBox_Time); // textBox_Back textBox_Back = new TextBox("button_Back", 255, 20, 20, 80, 32); textBox_Back.Text = "Back"; textBox_Back.TextAlign = 2; textBox_Back.TapEvent += new OnTap(button_Back_TapEvent); window.AddChild(textBox_Back); // dropDown_PumpSelection dropDown_PumpSelection = new Dropdown("dropDown_PumpSelection", 255, 120, 70, 270, 32); dropDown_PumpSelection.Text = "Select Pump"; dropDown_PumpSelection.Options.Add(new object[] { "Pump 1", 1 }); dropDown_PumpSelection.Options.Add(new object[] { "Pump 2", 2 }); dropDown_PumpSelection.Options.Add(new object[] { "Pump 3", 3 }); dropDown_PumpSelection.Options.Add(new object[] { "Pump 4", 4 }); dropDown_PumpSelection.TapEvent += dropDown_PumpSelection_TapEvent; dropDown_PumpSelection.ValueChangedEvent += dropDown_PumpSelection_ValueChangedEvent; window.AddChild(dropDown_PumpSelection); // list_dropDown_PumpSelection list_dropDown_PumpSelection = new List(dropDown_PumpSelection.Options, 4); list_dropDown_PumpSelection.CloseEvent += list_dropDown_PumpSelection_CloseEvent; // textBox_PumpName textBox_PumpName = new TextBox("textBox_PumpName", 255, 120, 120, 270, 32); textBox_PumpName.TapEvent += textBox_PumpName_TapEvent; textBox_PumpName.ValueChangedEvent += textBox_PumpName_ValueChangedEvent; window.AddChild(textBox_PumpName); // button_Calibration_Set button_Calibration_Run = new Button("button_Calibration_Run", 255, 20, 170, 80, 32); button_Calibration_Run.Text = "Run"; button_Calibration_Run.TapEvent += button_Calibration_Run_TapEvent; window.AddChild(button_Calibration_Run); // button_Calibration_Adjust button_Calibration_Adjust = new Button("button_Calibration_Adjust", 255, 20, 220, 80, 32); button_Calibration_Adjust.Text = "Adjust"; button_Calibration_Adjust.TapEvent += button_Calibration_Adjust_TapEvent; window.AddChild(button_Calibration_Adjust); // textBox_Calibration_Quantity_Header textBox_Calibration_Quantity_Header = new TextBox("textBox_Calibration_Quantity_Header", 255, 120, 170, 170, 32); textBox_Calibration_Quantity_Header.Text = "Calibration Quantity:"; window.AddChild(textBox_Calibration_Quantity_Header); // textBox_Calibration_Quantity_Value textBox_Calibration_Quantity_Value = new TextBox("textBox_Calibration_Quantity_Value", 255, 310, 170, 80, 32); textBox_Calibration_Quantity_Value.Text = "15 ml"; textBox_Calibration_Quantity_Value.TextAlign = 3; textBox_Calibration_Quantity_Value.TapEvent += textBox_Calibration_Quantity_Value_TapEvent; textBox_Calibration_Quantity_Value.ValueChangedEvent += textBox_Calibration_Quantity_Value_ValueChangedEvent; window.AddChild(textBox_Calibration_Quantity_Value); // textBox_Calibration_Measured_Header textBox_Calibration_Measured_Header = new TextBox("textBox_Calibration_Measured_Header", 255, 120, 220, 170, 32); textBox_Calibration_Measured_Header.Text = "Calibration Measured:"; window.AddChild(textBox_Calibration_Measured_Header); // textBox_Calibration_Measured_Value textBox_Calibration_Measured_Value = new TextBox("textBox_Calibration_Measured_Value", 255, 310, 220, 80, 32); textBox_Calibration_Measured_Value.Text = "15 ml"; textBox_Calibration_Measured_Value.TextAlign = 3; textBox_Calibration_Measured_Value.TapEvent += textBox_Calibration_Measured_Value_TapEvent; textBox_Calibration_Measured_Value.ValueChangedEvent += textBox_Calibration_Measured_Value_ValueChangedEvent; window.AddChild(textBox_Calibration_Measured_Value); // textBox_Calibration_Runtime_Value textBox_Calibration_Runtime_Value = new TextBox("textBox_Calibration_Runtime_Value", 255, 20, 120, 80, 32); textBox_Calibration_Runtime_Value.Text = "-.- s/ml"; textBox_Calibration_Runtime_Value.TextAlign = 3; window.AddChild(textBox_Calibration_Runtime_Value); }
void initMenu() { Debug.Print("Init Menu!"); /*inizio socket*/ SocketClient.StartClient(); /*fine socket*/ /*load menu*/ _menu = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.Menu)); Glide.MainWindow = _menu; _dataGrid = (GHI.Glide.UI.DataGrid)_menu.GetChildByName("dataGrid"); _pCounter = (GHI.Glide.UI.TextBlock)_menu.GetChildByName("pCounter"); _qntCounter = (GHI.Glide.UI.TextBlock)_menu.GetChildByName("qntCounter"); _errMsg = (GHI.Glide.UI.TextBlock)_menu.GetChildByName("errMsg"); _ordBtn = (GHI.Glide.UI.Button)_menu.GetChildByName("ordBtn"); if (flagmdf == 0) { _ordBtn.Enabled = false; } else { _ordBtn.Enabled = true; } _menu.Invalidate(); _ordBtn.PressEvent += _ordBtn_PressEvent; _deleteBtn = (GHI.Glide.UI.Button)_menu.GetChildByName("deleteBtn"); if (flagmdf == 0) { _deleteBtn.Enabled = false; } else { _deleteBtn.Enabled = true; } _menu.Invalidate(); _deleteBtn.PressEvent += deleteBtn_PressEvent; //_ingBtn = (GHI.Glide.UI.Button)_menu.GetChildByName("ingBtn"); //_ingBtn.Visible = false; //_menu.Invalidate(); //_ingBtn.PressEvent += ingBtn_PressEvent; /*Setup the dataGrid reference*/ _dataGrid = (DataGrid)_menu.GetChildByName("dataGrid"); // Listen for tap cell events. _dataGrid.TapCellEvent += new OnTapCell(dataGrid_TapCellEvent); /*Create our four columns*/ _dataGrid.AddColumn(new DataGridColumn("ID", 0)); _dataGrid.AddColumn(new DataGridColumn("PIZZA", 125)); _dataGrid.AddColumn(new DataGridColumn("PREZZO", 80)); _dataGrid.AddColumn(new DataGridColumn("QNT", 50)); /*Populate the data grid with random data*/ Populate(); /*Add the data grid to the window before rendering it*/ _menu.AddChild(_dataGrid); _dataGrid.Render(); /*Create a timer & run method timer_trick when thr timer ticks (for joystick)*/ GT.Timer timer = new GT.Timer(200); timer.Tick += Timer_Tick; timer.Start(); }
private void Initialize_Components() { // window window = new GHI.Glide.Display.Window("window_Fertilize", Window_Manager.Display_Width, Window_Manager.Display_Heigth); window.BackColor = Colors.White; // textBox_Header textBox_Header = new TextBox("textBox_Header", 255, 120, 20, 270, 32); textBox_Header.Text = "Pump Schedule"; textBox_Header.TextAlign = 2; window.AddChild(textBox_Header); // textBox_Time textBox_Time = new TextBox("textBox_Time", 255, 410, 20, 50, 32); textBox_Time.Text = "--:--"; textBox_Time.TextAlign = 2; window.AddChild(textBox_Time); // textBox_Back textBox_Back = new TextBox("button_Back", 255, 20, 20, 80, 32); textBox_Back.Text = "Back"; textBox_Back.TextAlign = 2; textBox_Back.TapEvent += new OnTap(button_Back_TapEvent); window.AddChild(textBox_Back); // dropDown_PumpSelection dropDown_PumpSelection = new Dropdown("dropDown_PumpSelection", 255, 120, 70, 270, 32); dropDown_PumpSelection.Text = "Select Pump"; dropDown_PumpSelection.Options.Add(new object[] { "Pump 1", 1 }); dropDown_PumpSelection.Options.Add(new object[] { "Pump 2", 2 }); dropDown_PumpSelection.Options.Add(new object[] { "Pump 3", 3 }); dropDown_PumpSelection.Options.Add(new object[] { "Pump 4", 4 }); dropDown_PumpSelection.TapEvent += dropDown_PumpSelection_TapEvent; dropDown_PumpSelection.ValueChangedEvent += dropDown_PumpSelection_ValueChangedEvent; window.AddChild(dropDown_PumpSelection); // list_dropDown_PumpSelection list_dropDown_PumpSelection = new List(dropDown_PumpSelection.Options, 4); list_dropDown_PumpSelection.CloseEvent += list_dropDown_PumpSelection_CloseEvent; // button_New button_New = new Button("button_New", 255, 20, 70, 80, 32); button_New.Text = "New"; button_New.TapEvent += button_New_TapEvent; window.AddChild(button_New); // button_Delete button_Delete = new Button("button_Delete", 255, 20, 120, 80, 32); button_Delete.Text = "Delete"; button_Delete.TapEvent += button_Delete_TapEvent; window.AddChild(button_Delete); // dataGrid_Schedule DataGridColumn dataGridColumn_StartTime = new DataGridColumn("Start Time", 135); DataGridColumn dataGridColumn_Quantity = new DataGridColumn("Quantity", 135); DataGridColumn dataGridColumn_FertilizeJob = new DataGridColumn("Job", 0); dataGrid_Schedule = new DataGrid("dataGrid_Schedule", 255, 120, 120, 270, 32, 4); dataGrid_Schedule.HeadersBackColor = Colors.LightGray; dataGrid_Schedule.HeadersFontColor = Colors.Black; dataGrid_Schedule.AddColumn(dataGridColumn_StartTime); dataGrid_Schedule.AddColumn(dataGridColumn_Quantity); dataGrid_Schedule.AddColumn(dataGridColumn_FertilizeJob); dataGrid_Schedule.TapCellEvent += dataGrid_Schedule_TapCellEvent; window.AddChild(dataGrid_Schedule); // textbox_StartTime textbox_StartTime = new TextBox("textbox_StartTime", 255, 20, 170, 80, 32); textbox_StartTime.TextAlign = 3; textbox_StartTime.TapEvent += textbox_StartTime_TapEvent; textbox_StartTime.ValueChangedEvent += textbox_StartTime_ValueChangedEvent; window.AddChild(textbox_StartTime); // textbox_Quantity textbox_Quantity = new TextBox("textbox_Quantity", 255, 20, 220, 80, 32); textbox_Quantity.TextAlign = 3; textbox_Quantity.TapEvent += textbox_Quantity_TapEvent; textbox_Quantity.ValueChangedEvent += textbox_Quantity_ValueChangedEvent; window.AddChild(textbox_Quantity); }