private bool ValidarModificar() { if (txtCodigo.Text.IsNullOrWhiteSpace()) { lblStatus.Text = "Debe ingresar el codigo del hotel"; lblStatus.ForeColor = Color.Maroon; lblStatus.Visible = true; return(false); } if (txtNombre.Text.IsNullOrWhiteSpace()) { lblStatus.Text = "Debe ingresar el nombre del hotel"; lblStatus.ForeColor = Color.Maroon; lblStatus.Visible = true; return(false); } if (txtEmail.Text.IsNullOrWhiteSpace()) { lblStatus.Text = "Debe ingresar el email del hotel"; lblStatus.ForeColor = Color.Maroon; lblStatus.Visible = true; return(false); } if (txtDireccion.Text.IsNullOrWhiteSpace()) { lblStatus.Text = "Debe ingresar la direccion del hotel"; lblStatus.ForeColor = Color.Maroon; lblStatus.Visible = true; return(false); } if (txtTelefono.Text.IsNullOrWhiteSpace()) { lblStatus.Text = "Debe ingresar el telefono del hotel"; lblStatus.ForeColor = Color.Maroon; lblStatus.Visible = true; return(false); } if (!VG.CadenaSoloNumeros(txtTelefono.Text)) { lblStatus.Text = "Debe ingresar un telefono valido"; lblStatus.ForeColor = Color.Maroon; lblStatus.Visible = true; return(false); } if (!VG.CadenaSoloNumeros(txtCodigo.Text)) { lblStatus.Text = "Debe ingresar un código valido"; lblStatus.ForeColor = Color.Maroon; lblStatus.Visible = true; return(false); } return(true); }
public Table(IWidget parent) : base(parent) { mPath = VG.vgCreatePath(0, VGPathDatatype.VG_PATH_DATATYPE_S_16, 1, 0, 0, 0, VGPathCapabilities.VG_PATH_CAPABILITY_ALL); mPaint = VG.vgCreatePaint(); Name = string.Format("table{0}", mId++); }
public AStar(VG.Map.Tissue t) { this.map = t; nodeGrid = new AStarNode[200][]; openSet = new bool[200][]; closedSet= new bool[200][]; cacheable = new bool[200][]; for (int i = 0; i < 200; i++) { nodeGrid[i] = new AStarNode[200]; openSet[i] = new bool[200]; closedSet[i] = new bool[200]; cacheable[i] = new bool[200]; } // prepare cacheable set EntityCollection aznCol = map.get_EntitiesByType(EntityEnum.AZN); for (int i = 0; i < aznCol.Count; i++) cacheable[aznCol[i].X][aznCol[i].Y] = true; EntityCollection hpCol = map.get_EntitiesByType(EntityEnum.HoshimiPoint); for (int i = 0; i < hpCol.Count; i++) cacheable[hpCol[i].X][hpCol[i].Y] = true; //cache PierreIP cacheable[Global.MYAI.PierreTeamInjectionPoint.X][Global.MYAI.PierreTeamInjectionPoint.Y] = true; cache = new System.Collections.Hashtable( (hpCol.Count * hpCol.Count) + (aznCol.Count * aznCol.Count) ); aznCol = null; // garbage-collected hpCol = null; }
private void Init(int x, int y) { InitBackground(); mPaint = VG.vgCreatePaint(); VG.vgSetParameterfv(mPaint, (int)VGPaintParamType.VG_PAINT_COLOR, 4, Palette.Red.Value); mImageBg = new Image(this, 12, 40); mImageFg = new Image(this, 12, 40); Text.Label(this, mDescription, 16, 0, 0, Width, 16); Text.Label(this, mPhysical, 18, 0, Height - 50, Width, 18); mActiveArea = new TextArea(this, 0, (int)(Height * 0.4f), Width, 40); mActiveArea.SetAlign(Align.Center, new GfxPoint(0, 5)); mActiveArea.SetFont(Palette.White, 45); AddVGPath(new VGPath(mPath, null, new VGSolidColor(new Color(0x2c2d2eff)))); Format = "{0:0}"; //MaxValue = 100; //SetValue(100); SetValue(0); mSensor.OnUpdate += sensor => SetValue(sensor.Value / 10.0f); Move(x, y); }
protected async void btnEliminar_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(TextBox_codigo.Text) && VG.CadenaSoloNumeros(TextBox_codigo.Text)) { string codigoEliminado = string.Empty; string codigoElemento = string.Empty; codigoElemento = TextBox_codigo.Text; codigoEliminado = await modelosManager.Eliminar(codigoElemento, VG.usuarioActual.CadenaToken); if (!string.IsNullOrEmpty(codigoEliminado)) { MensajeEstado("Registro ha sido eliminado correctamente", false, true); InicializarControles(); } else { MensajeEstado("El registro no puede ser eliminado. (Registry does not exist or foreign key constraint)", true, true); } } else { MensajeEstado("Debe ingresar el código para eliminar un registro", true, true); } }
public void Dispose() { if (mPaint != new IntPtr()) { VG.vgDestroyPaint(mPaint); } }
private void LoadImage() { try { if (!File.Exists(Path.Combine(Application.ResourceUrl, mUrl))) { Console.Write("Image file not found:"); Console.Write(Path.Combine(Application.ResourceUrl, mUrl)); return; } var data = File.ReadAllBytes(mUrl); var height = XpBitConverter.ToInt32(data, 0); var width = XpBitConverter.ToInt32(data, 4); var size = data.Length - 8; var raw = Marshal.AllocHGlobal(size); Marshal.Copy(data, 8, raw, size); //mCache = VG.vgCreateImage(PixelFormat, Width, Height, VGImageQuality.VG_IMAGE_QUALITY_BETTER); //VG.vgImageSubData(mCache, raw, 4 * Width, PixelFormat, 0, 0, Width, Height); VG.vgWritePixels(raw, 4 * width, VGImageFormat.VG_sBGRA_8888, 0, 0, width, height); //VG.vgWritePixels(raw, 4*width, PixelFormat, 0, 0, width, height); Marshal.FreeHGlobal(raw); } catch (Exception ex) { Debug.Print(ex.ToString()); } }
public void SetPaint(VGPaintMode mode) { if (mPaint != IntPtr.Zero) { VG.vgSetPaint(mPaint, mode); } }
public bool AddColor(byte percent, Color color) { if (color == null) { return(false); } if (percent > 100) { percent = 100; } if (mPercent == 100) { return(false); } if (mPercent < percent || percent == 0) { mPercent = percent; } else { return(false); } mColorRamps.Add(mPercent / 100f); mColorRamps.AddRange(color.Value); VG.vgSetParameterfv(mPaint, (int)VGPaintParamType.VG_PAINT_COLOR_RAMP_STOPS, mColorRamps.Count, mColorRamps.ToArray()); return(true); }
protected AStar(VG.Map.Tissue tissue, bool expl, Point start, int width) { this.tissue = tissue; X = tissue.Width; Y = tissue.Height; exArray = new int[X + 1, Y + 1]; openList = new int[X * Y + 2]; openX = new int[X * Y + 2]; openY = new int[X * Y + 2]; parentX = new int[X + 1, Y + 1]; parentY = new int[X + 1, Y + 1]; Fcost = new int[X * Y + 2]; Gcost = new int[X + 1, Y + 1]; Hcost = new int[X * Y + 2]; history = new List<FPath>(); map = new int[X, Y]; for (int i = 0; i < X; i++) { for (int j = 0; j < Y; j++) map[i, j] = (int)tissue[i, j].AreaType; } this.bogStartX = start.X; this.bogStartY = start.Y; this.bogWidth = width; this.explorer = expl; }
async protected void btnEliminar_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txtCodigo.Text) && VG.CadenaSoloNumeros(txtCodigo.Text)) { string codigoHotelEliminado = string.Empty; string codigoHotel = string.Empty; codigoHotel = txtCodigo.Text; codigoHotelEliminado = await hotelManager.Eliminar(codigoHotel, VG.usuarioActual.CadenaToken); if (!string.IsNullOrEmpty(codigoHotelEliminado)) { lblStatus.Text = "Hotel eliminado correctamente"; lblStatus.Visible = true; InicializarControles(); } else { lblStatus.Text = "Hubo un error al eliminar el hotel"; lblStatus.ForeColor = Color.Maroon; lblStatus.Visible = true; } } else { lblStatus.Text = "Debe ingresar el código del hotel"; lblStatus.ForeColor = Color.Maroon; lblStatus.Visible = true; } }
public virtual void Update(GfxRect updateArea) { if (!IsVisible) { return; } if (OnPaint != null) { OnPaint(this); } //Console.WriteLine("->> {1}: to surface: {0}", Name, DateTime.Now.ToString("mm:ss.fff")); var position = ScreenPosition; VG.vgSeti(VGParamType.VG_MATRIX_MODE, (int)VGMatrixMode.VG_MATRIX_IMAGE_USER_TO_SURFACE); VG.vgLoadIdentity(); VG.vgTranslate(position.X, position.Y); mRenderBuffer.ToSurface(); //Console.WriteLine("<<- {1}: to surface: {0}", Name, DateTime.Now.ToString("mm:ss.fff")); foreach (var widget in mChilds.Where(widget => !(widget is ModalWindow))) { widget.Update(); } }
public override void Draw() { { VG.vgSeti(VGParamType.VG_MATRIX_MODE, (int)VGMatrixMode.VG_MATRIX_PATH_USER_TO_SURFACE); VG.vgLoadIdentity(); for (var i = 0; i < mCount; i++) { VG.vgClearPath(mPath, VGPathCapabilities.VG_PATH_CAPABILITY_ALL); if (i == (mSpeed - 1)) { VG.vgSetPaint(mActivePaint, VGPaintMode.VG_FILL_PATH); mText[i][0].SetFont(Palette.Black); } else { VG.vgSetPaint(mDefaultPaint, VGPaintMode.VG_FILL_PATH); mText[i][0].SetFont(Palette.White); } VGU.vguRoundRect(mPath, X, Y + i * (Width + 5), Width, Width, 5, 5); VG.vgDrawPath(mPath, VGPaintMode.VG_FILL_PATH); VG.vgFinish(); } } //base.Update(); }
public ProgressBar(IWidget parent, int x, int y, int width, int height, int round) : base(parent, x, y, width, height) { mRound = round; mPath = VG.vgCreatePath(0, VGPathDatatype.VG_PATH_DATATYPE_S_16, 1, 0, 0, 0, VGPathCapabilities.VG_PATH_CAPABILITY_ALL); VGU.vguRoundRect(mPath, 0, 0, Width, Height, mRound, mRound); mPaint = VG.vgCreatePaint(); Status = new TextArea(this, 0, 0, Width, Height); Status.SetAlign(Align.Center, new GfxPoint(0, 3)); Status.OnTextChange += caller => Invalidate(); Border = new VGSolidColor(Palette.White); Background = new VGSolidColor(Palette.Black); var percent = new VGLinearGradient(0, 0, 0, Height); percent.AddColor(0, new Color(0xE9AE5DFF)); //percent.AddColor(50, new Color(0xE08F1EFF)); percent.AddColor(100, new Color(0xE08F1EFF)); //percent.AddColor(0, new Color(0x00FF00FF)); //percent.AddColor(100, new Color(0xFF0000FF)); PercentLine = percent; }
public override void Draw() { //base.Update(); #region draw circle { VG.vgSeti(VGParamType.VG_MATRIX_MODE, (int)VGMatrixMode.VG_MATRIX_PATH_USER_TO_SURFACE); VG.vgLoadIdentity(); VG.vgClearPath(mLinear, VGPathCapabilities.VG_PATH_CAPABILITY_ALL); VG.vgSetf(VGParamType.VG_STROKE_LINE_WIDTH, 40.0f); VG.vgSetPaint(mPaint, VGPaintMode.VG_STROKE_PATH); VG.vgSetfv(VGParamType.VG_STROKE_DASH_PATTERN, mDashPattern.Length, mDashPattern); const float kFullScale = 55; var rv = kFullScale * (Percent / 100.0f); VGU.vguLine(mLinear, X + 35, Y + 35, X + 35, Y + 35 + rv); VG.vgDrawPath(mLinear, VGPaintMode.VG_STROKE_PATH); VG.vgFinish(); } #endregion VG.vgFinish(); }
private void Init(int x) { //Width = 16; //Height = mCount * (Width + 5) - 5; //Y = (Application.Screen.Height - Height) / 2 + 10; Resize(16, mCount * (Width + 5) - 5); mPath = VGPath.OpenVGPath(); mActivePaint = VG.vgCreatePaint(); VG.vgSetParameterfv(mActivePaint, (int)VGPaintParamType.VG_PAINT_COLOR, 4, (new Color(0x2EBF0EFF)).Value); mDefaultPaint = VG.vgCreatePaint(); VG.vgSetParameterfv(mDefaultPaint, (int)VGPaintParamType.VG_PAINT_COLOR, 4, (new Color(0x3B3C3DFF)).Value); mText = new List <TextArea[]>(); for (var i = 0; i < mCount; i++) { mText.Add(Text.Label(this, string.Format("{0}", i + 1), 17, -1, (i * (Width + 5)) - 3, 16, 16)); } SetSpeed(0); mSensor.OnUpdate += sensor => SetSpeed((byte)sensor.Value); Move(x, (Application.Screen.Height - Height) / 2 + 10); }
public ListItem(string aName, int x, int y, int width, int height, float round) : base(null, aName) { X = x; Y = y; Width = width; Height = height; mRound = round; const int kSize = 20; const int kBias = 3; mText = new TextArea(this, "", null, 0, (Height - kSize) / 2 + kBias, Width, Height) { Text = "---", Size = kSize, Align = Align.Center }; AddChild(mText); mPath = VG.vgCreatePath(0, VGPathDatatype.VG_PATH_DATATYPE_S_16, 1, 0, 0, 0, VGPathCapabilities.VG_PATH_CAPABILITY_ALL); mPaint = VG.vgCreatePaint(); mCache = VG.vgCreateImage(PixelFormat, Width, Height, VGImageQuality.VG_IMAGE_QUALITY_NONANTIALIASED); mIsRealUpdate = true; }
public override void Draw() { /* * var screen = ScreenPosition; * foreach (var path in mStaticElement) * path.Update(screen.X, screen.Y); * * mImageBg.Update(); */ //base.Update(); #region draw circle { VG.vgSeti(VGParamType.VG_MATRIX_MODE, (int)VGMatrixMode.VG_MATRIX_PATH_USER_TO_SURFACE); VG.vgLoadIdentity(); VG.vgClearPath(mCircle, VGPathCapabilities.VG_PATH_CAPABILITY_ALL); VG.vgSetf(VGParamType.VG_STROKE_LINE_WIDTH, 6.0f); VG.vgSetPaint(mPaint, VGPaintMode.VG_STROKE_PATH); VG.vgSetfv(VGParamType.VG_STROKE_DASH_PATTERN, 0, null); const float kFullScale = -250; VguArc(mCircle, X + Width / 2, Y + Height / 2 + 5, 74, 74, 215, kFullScale * (Percent / 100.0f)); } #endregion mImageFg.Update(); VG.vgFinish(); }
private bool ValidarModificar() { if (TextBox_nombre.Text.IsNullOrWhiteSpace()) { MensajeEstado("Debe ingresar el nombre del proveedor a modificar", true, true); return(false); } if (TextBox_direccion.Text.IsNullOrWhiteSpace()) { MensajeEstado("Debe ingresar la dirección del proveedor a modificar", true, true); return(false); } if (TextBox_telefono.Text.IsNullOrWhiteSpace()) { MensajeEstado("Debe ingresar el teléfono del proveedor a modificar", true, true); return(false); } if (!VG.CadenaSoloNumeros(TextBox_telefono.Text)) { MensajeEstado("Debe ingresar el teléfono valido", true, true); return(false); } if (!VG.CadenaSoloNumeros(TextBox_codigo.Text)) { MensajeEstado("Debe ingresar un código valido", true, true); return(false); } return(true); }
private Adjustments LoadGlyph(uint index) { Adjustments adjustments; mEscapements.TryGetValue(index, out adjustments); if (adjustments != null) { return(adjustments); } //Application.GetInstance().DebugTimeToConsole("--> LoadGlyph (" + index + "):"); { Glyph rv; mGlyphDictionary.TryGetValue(index, out rv); if (rv == null) { return(null); } adjustments = new Adjustments(rv.escapement[0], rv.escapement[1]); mEscapements.Add(rv.glyphIndex, adjustments); var glyphPath = VG.vgCreatePath(0, VGPathDatatype.VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VGPathCapabilities.VG_PATH_CAPABILITY_ALL); VG.vgAppendPathData(glyphPath, rv.commands.Length, rv.commands, rv.coordinates); VG.vgSetGlyphToPath(mFont, rv.glyphIndex, glyphPath, VGboolean.VG_TRUE, rv.origin, rv.escapement); VG.vgDestroyPath(glyphPath); } return(adjustments); //Application.GetInstance().DebugTimeToConsole("<-- LoadGlyph (" + index + "):"); }
private void Init(int x, int y) { InitBackground(); Text.Label(this, "Напряжение\\nв сети", 14, 0, 0, Width, 14); mPaint = VG.vgCreatePaint(); VG.vgSetParameterfv(mPaint, (int)VGPaintParamType.VG_PAINT_COLOR, 4, (new Color(0xEDAB18ff)).Value); mRollArea = new TextArea(this, 0, 45, Width, 30) { Text = "" }; mRollArea.SetAlign(Align.Center, new GfxPoint(0, 5)); mRollArea.SetFont(Palette.White, 22); mRollArea.Text = string.Format("{0:0} В", mSensor.Value); mSensor.OnUpdate += sensor => { mRollArea.Text = string.Format("{0:0} В", sensor.Value); }; AddVGPath(new VGPath(mPath, null, new VGSolidColor(new Color(0x2c2d2eff)))); Move(x, y); }
public TextArea(IWidget parent, int x, int y, int width, int height) : base(parent, width, height) { // create a paint mPaint = VG.vgCreatePaint(); Name = string.Format("textArea{0}", _id++); Init(x, y); }
public void SetBorder(int width, Color color) { mBorderWidth = width; VG.vgSetParameteri(mPaint, (int)VGPaintParamType.VG_PAINT_TYPE, (int)VGPaintType.VG_PAINT_TYPE_COLOR); VG.vgSetParameterfv(mPaint, (int)VGPaintParamType.VG_PAINT_COLOR, 4, color == null ? Palette.Black.Value : color.Value); Invalidate(); }
public override void Dispose() { if (mPaint != new IntPtr()) { VG.vgDestroyPaint(mPaint); } base.Dispose(); }
public void Dispose() { if (mFont != new IntPtr()) { VG.vgDestroyFont(mFont); } mAdjustmentses.Clear(); mEscapements.Clear(); }
private void Initialize() { mPaint = VG.vgCreatePaint(); VG.vgSetParameteri(mPaint, (int)VGPaintParamType.VG_PAINT_TYPE, (int)VGPaintType.VG_PAINT_TYPE_RADIAL_GRADIENT); VG.vgSetParameteri(mPaint, (int)VGPaintParamType.VG_PAINT_COLOR_RAMP_SPREAD_MODE, (int)VGColorRampSpreadMode.VG_COLOR_RAMP_SPREAD_PAD); // repeat type VG.vgSetParameteri(mPaint, (int)VGPaintParamType.VG_PAINT_COLOR_RAMP_PREMULTIPLIED, (int)VGboolean.VG_TRUE); // //VG.vgSetParameteri(mPaint, (int)VGPaintParamType.VG_PAINT_COLOR_RAMP_PREMULTIPLIED, (int)VGboolean.VG_FALSE); // }
public AStar(VG.Map.Tissue tissue) { openList = new List<Node>(); closeList = new List<Node>(); this.tissue = tissue; this.x = tissue.Width; this.y = tissue.Width; this.existsArray = new int[this.x, this.y]; }
public override void Draw() { VG.vgSetfv(VGParamType.VG_CLEAR_COLOR, 4, new[] { 0.0f, 1.0f, 0.0f, 0.50f }); VG.vgClear(0, 60, Width, Height); VG.vgFinish(); Text.Label(null, "Hello", 50, 10, 20, Width, 50, Align.Center, Palette.DarkSlateGray)[0].Draw(); mPath.Update(); }
protected override void Draw() { //VG.vgSetfv(VGParamType.VG_CLEAR_COLOR, 4, new[] { 0.0f, 1.0f, 0.0f, 0.5f }); //VG.vgClear(0, 0, Width, Height); //VG.vgFinish(); VG.vgSeti(VGParamType.VG_MATRIX_MODE, (int)VGMatrixMode.VG_MATRIX_PATH_USER_TO_SURFACE); VG.vgLoadIdentity(); #region draw text if (Text == null) { return; } VG.vgSetParameteri(mPaint, (int)VGPaintParamType.VG_PAINT_TYPE, (int)VGPaintType.VG_PAINT_TYPE_COLOR); VG.vgSetParameterfv(mPaint, (int)VGPaintParamType.VG_PAINT_COLOR, 4, FontColor.Value); VG.vgSetPaint(mPaint, VGPaintMode.VG_FILL_PATH); float[] glyphOrigin = { 0.0f, 0.0f }; // set glyph matrices VG.vgSetfv(VGParamType.VG_GLYPH_ORIGIN, 2, glyphOrigin); VG.vgSeti(VGParamType.VG_MATRIX_MODE, (int)VGMatrixMode.VG_MATRIX_GLYPH_USER_TO_SURFACE); VG.vgLoadIdentity(); var widthText = (TextWidth > Width) ? Width : TextWidth; switch (TextAlign) { case Align.Left: VG.vgTranslate(TextOffset.X, TextOffset.Y); break; case Align.Center: VG.vgTranslate((Width - widthText + TextOffset.X) / 2f, TextOffset.Y); break; case Align.Right: VG.vgTranslate((Width - widthText - TextOffset.X), TextOffset.Y); break; } VG.vgTranslate(RotateCenter.X, RotateCenter.Y); VG.vgRotate(mRotate); VG.vgTranslate(-RotateCenter.X, -RotateCenter.Y); VG.vgScale(FontSize, FontSize); mFontRender.RenderText(Text); VG.vgFinish(); #endregion }
public GraphicArea(IWidget parent, int width, int height) : base(parent, width, height) { //Width = width; // 460 //Height = height; // 220 mPath = VG.vgCreatePath(0, VGPathDatatype.VG_PATH_DATATYPE_S_16, 1, 0, 0, 0, VGPathCapabilities.VG_PATH_CAPABILITY_ALL); mPaint = VG.vgCreatePaint(); mGrapihcs = new List <GraphicsData>(); }
public override void Dispose() { if (mPath != new IntPtr()) { VG.vgDestroyPath(mPath); } if (mPaint != new IntPtr()) { VG.vgDestroyPaint(mPaint); } }
private bool ValidarInsertar() { if (DropDownList_marca.SelectedValue.ToString().Equals("seleccionar")) { MensajeEstado("Debe seleccionar una marca", true, true); return(false); } if (DropDownList_modelo.SelectedValue.ToString().Equals("seleccionar")) { MensajeEstado("Debe seleccionar un modelo", true, true); return(false); } if (DropDownList_combustible.SelectedValue.ToString().Equals("seleccionar")) { MensajeEstado("Debe seleccionar un combustible", true, true); return(false); } if (DropDownList_sucursal.SelectedValue.ToString().Equals("seleccionar")) { MensajeEstado("Debe seleccionar una sucursal", true, true); return(false); } if (TextBox_cantidad.Text.IsNullOrWhiteSpace()) { MensajeEstado("Debe ingresar la cantidad de autos en posesión", true, true); return(false); } if (!VG.CadenaSoloNumeros(TextBox_cantidad.Text)) { MensajeEstado("Debe introducir una cantidad de autos valida", true, true); return(false); } if (TextBox_precio.Text.IsNullOrWhiteSpace()) { MensajeEstado("Debe ingresar el precio del auto para guardar", true, true); return(false); } if (!VG.CadenaSoloNumeros(TextBox_precio.Text)) { MensajeEstado("Debe introducir un precio valido", true, true); return(false); } return(true); }
private bool ValidarModificar() { if (TextBox_identificacion.Text.IsNullOrWhiteSpace()) { MensajeEstado("Debe ingresar su número de identifiación", true, true); return(false); } if (TextBox_Nombre.Text.IsNullOrWhiteSpace()) { MensajeEstado("Debe ingresar el nombre del usuario", true, true); return(false); } if (TextBox_primerApellido.Text.IsNullOrWhiteSpace()) { MensajeEstado("Debe ingresar su primer apellido", true, true); return(false); } if (TextBox_segundoApellido.Text.IsNullOrWhiteSpace()) { MensajeEstado("Debe ingresar su segundo apellido", true, true); return(false); } if (TextBox_direccion.Text.IsNullOrWhiteSpace()) { MensajeEstado("Debe ingresar su dirección", true, true); return(false); } if (TextBox_telefono.Text.IsNullOrWhiteSpace()) { MensajeEstado("Debe ingresar un número de teléfono", true, true); return(false); } if (!VG.CadenaSoloNumeros(TextBox_telefono.Text)) { MensajeEstado("Debe ingresar el teléfono valido", true, true); return(false); } if (!VG.CadenaSoloNumeros(TextBox_identificacion.Text)) { MensajeEstado("Debe ingresar un código valido", true, true); return(false); } return(true); }
public AStar(VG.Map.Tissue tissue, Point start, int width) : this(tissue, false, start, width) { }
public AStar(VG.Map.Tissue tissue) : this(tissue, new Point(0, 0), 0) { }
public eAstar(VG.Map.Tissue tissue, Point start, int width) : base(tissue, true, start, width) { }