public void OnClickPCTrigger() { currentPanel = PANEL.PC; pcPanel.SetActive(true); itemBox.SetActive(false); backButton.SetActive(true); }
public Dictionary <string, string> obtenerInformacionCatacion(string codCatacion) { Dictionary <string, string> catas = new Dictionary <string, string>(); CATACION catacion = consultarCatacion(codCatacion); PANEL panel = consultarPanel(catacion.CODPANEL); EVENTO evento = consultarEvento(panel.CODEVENTO); CAFE cafe = consultarCafe(catacion.CODCAFE); string atributosCafe = obtenerAtributosCafes(panel.TIPOCAFE.ToString()); string valoresDefectoCafe = obtenerValoresDefectoCafes(panel.TIPOCAFE.ToString()); if (catacion != null && panel != null && evento != null && cafe != null) { string hora = panel.HORA.ToString(); string fecha = evento.FECHA.ToShortDateString(); string tipoCafe = panel.TIPOCAFE; string CodCafe = cafe.CODCAFE; string cantVez = catacion.CANTIDAD.ToString(); catas.Add("hora", hora); catas.Add("fecha", fecha); catas.Add("tipoCafe", tipoCafe); catas.Add("CodCafe", CodCafe); catas.Add("cantVez", cantVez); catas.Add("atributos", atributosCafe); catas.Add("valoresDefecto", valoresDefectoCafe); } return(catas); }
//Switching the panels of country, states, cities public void SwitchPanel(PANEL pANEL) { switch (pANEL) { case PANEL.COUNTRY: currentPanel = PANEL.COUNTRY; countryPanel.gameObject.SetActive(true); statePanel.gameObject.SetActive(false); cityPanel.gameObject.SetActive(false); break; case PANEL.STATE: currentPanel = PANEL.STATE; scrollRect.content = statePanel.GetComponent <RectTransform>(); countryPanel.gameObject.SetActive(false); statePanel.gameObject.SetActive(true); cityPanel.gameObject.SetActive(false); break; case PANEL.CITY: currentPanel = PANEL.CITY; scrollRect.content = cityPanel.GetComponent <RectTransform>(); countryPanel.gameObject.SetActive(false); statePanel.gameObject.SetActive(false); cityPanel.gameObject.SetActive(true); break; } }
// ボタンを押したらパネルを全て非表示にする public void OnClickBackTrigger() { currentPanel = PANEL.ROOM; lightStandPanel.SetActive(false); drawerPanel.SetActive(false); pcPanel.SetActive(false); messageManager.ToggleText(false, ""); }
// ボタンを押したらパネルを全て非表示 public void OnClickBackTrigger() { currentPanel = PANEL.ROOM; lightStandPanel.SetActive(false); drawerPanel.SetActive(false); pcPanel.SetActive(false); itemBox.SetActive(true); backButton.SetActive(false); }
public void SetPanel(PANEL panel) { downloadPanel.gameObject.SetActive(panel == PANEL.Download); uploadPanel.gameObject.SetActive(panel == PANEL.Upload); loginPanel.gameObject.SetActive(panel == PANEL.Login); registerPanel.gameObject.SetActive(panel == PANEL.Register); menuPanel.gameObject.SetActive(panel == PANEL.Menu); }
//Panels ------------------ private void ShowPanel(PANEL panel) { if (panel == PANEL.MENU) { OnMainAction?.Invoke(SELECTIONACTION.MENU, _slotSelected); } for (int i = 0; i < listPanels.Length; i++) { listPanels[i].SetActive((i == (int)panel)); } }
private void Hide() { e_panel = PANEL.hide; HidePanel(); if (doPauseGame) { return; } PauseController.Resume(); }
private void Show() { e_panel = PANEL.show; ShowPanel(); if (doPauseGame) { return; } PauseController.Pause(); }
/// <summary> /// Este metodo trae por instancia de la clase repositorio un PANEL. Este panel se "transforma" a un objeto de tipo Panel, esto se realiza de /// manera manual, asignando cada atributo /// </summary> /// <param name="codigo">Codigo del panel</param> /// <returns>Se retorna un objeto de tipo panel</returns> private Panel convertirPANEL(string codigo) { PANEL panelDB = repositorio.consultarPanel(codigo); if (panelDB != null) { Panel panel = new Panel(); { panel.codigo = panelDB.CODPANEL; panel.codEvento = panelDB.CODEVENTO; panel.tipoCafe = panelDB.TIPOCAFE; panel.hora = panelDB.HORA; } return(panel); } return(null); }
public IList <CATACION> consultarCataciones() { IList <CATACION> catacionesPendientes = new List <CATACION>(); foreach (CATACION cat in this.db.CATACION.ToList()) { PANEL panel = obtenerPanel(cat.CODPANEL); EVENTO evento = obtenerEvento(panel.CODEVENTO); if (evento.FECHA.CompareTo(DateTime.Today) >= 1 && panel.HORA.CompareTo(DateTime.Now) >= 1) { catacionesPendientes.Add(cat); } } return(catacionesPendientes); }
/// <summary> /// 全场景替换模板 /// </summary> /// <param name="sender">事件发送者</param> /// <param name="e">事件参数</param> private void bReplaceAllDoodadTemplate_Click(object sender, EventArgs e) { Node currentNode = doodadTree.SelectedNode; if (currentNode != null && currentNode.Level == 1) { DataRow dataRow = doodadInfoTable[currentNode] as DataRow; if (dataRow != null) { int newTemplateID = int.Parse(dataRow["ID"].ToString()); // 获取焦点,切换场景对象 PANEL.Focus(); m_doc.DocLogical.ReplaceDoodadTemplate(newTemplateID, 1); } } else { MessageBox.Show("请先选择要替换的模板类型", "替换模板", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
// -------------------------------- Metodos para enviar correo ----------------------------------------------- private string getNombreEvento(string codPanel) { PANEL panel = this.db.PANEL.Where(x => x.CODPANEL.Equals(codPanel)).FirstOrDefault(); return(panel.EVENTO.NOMBRE.ToString()); }
public void OnClickPCTrigger() { currentPanel = PANEL.PC; pcPanel.SetActive(true); }
public void OnClickDrawerTrigger() { currentPanel = PANEL.DRAWER; drawerPanel.SetActive(true); }
// ボタンを押したら該当するパネルを表示 public void OnClickLightStandTrigger() { currentPanel = PANEL.LIGHT_STAND; lightStandPanel.SetActive(true); }
//---------------------------------- Fin Generar Imagen ---------------------------------------------------- public bool pertenecePanel(string codPanel, string codEvento) { PANEL panel = this.db.PANEL.Where(x => x.CODPANEL.Equals(codPanel)).FirstOrDefault(); return(panel.EVENTO.CODEVENTO.Equals(codEvento)); }
private string generarCodigo(string encabezado) { string ultimo = "0"; switch (encabezado) { case "EV": try { EVENTO ev = this.db.EVENTO.ToList().Last(); string[] cod = ev.CODEVENTO.Split('-'); ultimo = (int.Parse(cod[1]) + 1).ToString(); } catch (Exception) { ultimo = "1"; } break; case "CT": try { CATACION ev = this.db.CATACION.ToList().Last(); string[] cod = ev.CODCATACION.Split('-'); ultimo = (int.Parse(cod[1]) + 1).ToString(); } catch (Exception) { ultimo = "1"; } break; case "PA": try { PANEL pa = this.db.PANEL.ToList().Last(); string[] cod = pa.CODPANEL.Split('-'); ultimo = (int.Parse(cod[1]) + 1).ToString(); } catch (Exception) { ultimo = "1"; } break; case "CF": try { CAFE ca = this.db.CAFE.ToList().Last(); string[] cod = ca.CODCAFE.Split('-'); ultimo = (int.Parse(cod[1]) + 1).ToString(); } catch (Exception) { ultimo = "1"; } break; case "CAT": int cantidad = this.db.CATACION.ToList().Count() + 1; ultimo = cantidad.ToString(); break; } return(encabezado + '-' + ultimo); }