public void cleartext()
 {
     EID.Clear();
     EName.Clear();
     EAge.Clear();
     EPhone.Clear();
     ECNIC.Clear();
     EPass.Clear();
 }
Exemple #2
0
        public static Color GetColorFromTheme(EName _theme, EColorPalet _colorName)
        {
            Color _color = new Color();

            _color.A = table[(int)_theme][(int)_colorName][0];
            _color.R = table[(int)_theme][(int)_colorName][1];
            _color.G = table[(int)_theme][(int)_colorName][2];
            _color.B = table[(int)_theme][(int)_colorName][3];
            return(_color);
        }
Exemple #3
0
 private void txtBoxstfID_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == 13)
     {
         EName.Focus();
         e.Handled = true;
     }
     else
     {
         e.Handled = false;
     }
 }
Exemple #4
0
        // =============================================================================================================
        // GET ARGUMENT METHODS
        // =============================================================================================================

        public static Name GetName(int index, EName defaultValue = EName.None, params Variant[] args)
        {
            if (index < args.Length)
            {
                var value = args[index];
                if (value.VariantType == Variant.EVariantType.Name)
                {
                    return(value.AsName);
                }
                else
                {
                    throw new Exception(ArgumentErrorMessage("Arguments.GetName", "Name", index, args));
                }
            }
            else
            {
                return(new Name(defaultValue));
            }
        }
Exemple #5
0
        public static Syntax ParseQuoted(Token thisToken, Tokenizer moreTokens)
        {
            EName quote = EName.None;

            // First symbol is quote, unquote, quasiquote depending on what the token was
            switch (thisToken.type)
            {
            case TokenType.Quote: quote = EName.Quote; break;

            case TokenType.Unquote: quote = EName.Unquote; break;

            case TokenType.QuasiQuote: quote = EName.Quasiquote; break;

            case TokenType.UnquoteSplicing: quote = EName.UnquoteSplicing; break;
            }
            var quote_stx = Syntax.Create((Name)quote, thisToken.location);
            var nextToken = moreTokens.ReadToken();
            var quoted    = ParseToken(nextToken, moreTokens);
            var list      = new LinkedList <Syntax>();

            list.AddLast(quote_stx);
            list.AddLast(quoted);
            return(Syntax.Create(list, thisToken.location));
        }
Exemple #6
0
        public static ImageBrush GetPictureFromTheme(EName _theme)
        {
            ImageBrush _imageBrush = new ImageBrush();
            String     _path       = "ms-appx:///Assets/";

            switch (_theme)
            {
            default:
            case EName.EThemeWasp:
            case EName.EThemeDefault:
                _path += "Wallpaper_yellow.png";
                break;

            case EName.EThemeSquares:
                _path += "Wallpaper_bluesquares.png";
                break;

            case EName.EThemeDesert:
                _path += "Wallpaper_sand.png";
                break;

            case EName.EThemeSpring:
                _path += "Wallpaper_green.png";
                break;

            case EName.EThemeBlack:
                _path += "Wallpaper_black.png";
                break;
            }
            _imageBrush.ImageSource = new BitmapImage()
            {
                UriSource = new Uri(_path)
            };
            _imageBrush.Stretch = Stretch.UniformToFill;
            return(_imageBrush);
        }
Exemple #7
0
 public ElevatorEvent(Elevator elevator, EName name, int level) : this(elevator, name)
 {
     this.level = level;
 }
Exemple #8
0
 public ElevatorEvent(Elevator elevator, EName name) : base(elevator)
 {
     this.name = name;
 }
Exemple #9
0
 public Name(EName name)
 {
     index = (int)name;
 }
Exemple #10
0
	public ElevatorEvent(Elevator elevator, EName name, int level) : this(elevator, name)
    {
        this.level = level;
    }
Exemple #11
0
 public ElevatorEvent(Elevator elevator, EName name) : base(elevator)
 {
     this.name = name;
 }
Exemple #12
0
 public Name(EName name)
 {
     Hash = (int)name;
 }
Exemple #13
0
 public ElevatorInputEvent(ElevatorInputController sender, EName name) : base(sender)
 {
     this.name = name;
 }
Exemple #14
0
 public ElevatorInputEvent(ElevatorInputController sender, EName name) : base(sender)
 {
     this.name = name;
 }