Beispiel #1
0
 public override void Write()
 {
     base.Write();
     foreach (var entry in Entries)
     {
         Wr.Write((byte)entry.Value);
     }
 }
Beispiel #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     Lno.Clear();
     Lname.Clear();
     Wr.Clear();
     // Lpress.Clear();
     Lbz.Clear();
     Ldate.Clear();
 }
Beispiel #3
0
 public override void Write()
 {
     base.Write();
     Wr.Write(_majorBrand);
     Wr.Write(_minorVersion);
     foreach (var compatibleBrand in CompatibleBrands)
     {
         Wr.Write(compatibleBrand);
     }
 }
Beispiel #4
0
 public virtual void Write()
 {
     if (IsSmallBox)
     {
         Wr.Write((uint)GetSize());
         Wr.Write(Type);
     }
     else
     {
         Wr.Write(1);
         Wr.Write(Type);
         Wr.Write(GetSize());
     }
     //if (UserBox.TYPE.equals(getType()))
     //{
     //    byteBuffer.put(getUserType());
     //}
 }
Beispiel #5
0
        public static void Log(string Ruta, string Tex)
        {
            StreamWriter Wr;

            string Archivo = "\\Eventos\\Eventos" + DateTime.Now.Year.ToString() + "_" + DateTime.Now.Month.ToString() + "_" + DateTime.Now.Day.ToString() + ".txt";

            Ruta = Ruta.Substring(6);

            Wr = File.AppendText(Ruta + Archivo);

            try
            {
                Wr.NewLine = "\r\n";
                Wr.Write(Wr.NewLine);
                Wr.Write(DateTime.Now.ToLongTimeString() + ": " + Tex);
                Wr.Close();
            }
            catch (Exception ex)
            {
                Wr.Close();
            }
        }
 public static void Write(this double x, Wr wr)
 {
     wr.WriteDouble(x);
 }
 public static void Write(this char x, Wr wr)
 {
     wr.WriteChar(x);
 }
 public static void Write(this short x, Wr wr)
 {
     wr.WriteInt16(x);
 }
 public static void Write(this long x, Wr wr)
 {
     wr.WriteInt64(x);
 }
Beispiel #10
0
 public static void Write(this int x, Wr wr)
 {
     wr.WriteInt32(x);
 }
Beispiel #11
0
 public static void Write(this decimal x, Wr wr)
 {
     wr.WriteDecimal(x);
 }
Beispiel #12
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteChar((Char)val);
 }
Beispiel #13
0
 public static void Write(Int val, Wr wr)
 {
     wr.WriteInt32(val);
 }
Beispiel #14
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteUInt64((UInt64)val);
 }
Beispiel #15
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteUInt8((Byte)val);
 }
Beispiel #16
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteBoolean((Boolean)val);
 }
Beispiel #17
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteString((String)val);
 }
Beispiel #18
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteSingle((Single)val);
 }
 public static void Write(this string x, Wr wr)
 {
     wr.WriteString(x);
 }
Beispiel #20
0
 public override void Write(object val, Wr wr)
 {
     wrChMeth.Invoke(null, new object[]{val, wr});
 }
Beispiel #21
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteDouble((Double)val);
 }
Beispiel #22
0
 public override void Write(object val, Wr wr)
 {
     wrChMeth.Invoke(null, new object[] { val, wr });
 }
Beispiel #23
0
 public static void Write(this sbyte x, Wr wr)
 {
     wr.WriteInt8(x);
 }
Beispiel #24
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteBoolean((Boolean)val);
 }
Beispiel #25
0
 public static void Write(this float x, Wr wr)
 {
     wr.WriteSingle(x);
 }
Beispiel #26
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteInt8((SByte)val);
 }
Beispiel #27
0
 public abstract void Write(object val, Wr wr);
Beispiel #28
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteUInt32((UInt32)val);
 }
 public static void Write(this int x, Wr wr)
 {
     wr.WriteInt32(x);
 }
Beispiel #30
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteInt64((Int64)val);
 }
 public static void Write(this float x, Wr wr)
 {
     wr.WriteSingle(x);
 }
Beispiel #32
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteSingle((Single)val);
 }
 public static void Write(this decimal x, Wr wr)
 {
     wr.WriteDecimal(x);
 }
Beispiel #34
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteDouble((Double)val);
 }
 public static void Write(this byte[] x, Wr wr)
 {
     wr.WriteBytes(x);
 }
Beispiel #36
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteDecimal((Decimal)val);
 }
 public static void Write(Int val, Wr wr)
 {
     wr.WriteInt32(val);
 }
Beispiel #38
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteChar((Char)val);
 }
Beispiel #39
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteDecimal((Decimal)val);
 }
Beispiel #40
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteString((String)val);
 }
Beispiel #41
0
 public static void Write(this bool x, Wr wr)
 {
     wr.WriteBoolean(x);
 }
Beispiel #42
0
 public abstract void Write(object val, Wr wr);
Beispiel #43
0
 public static void Write(this short x, Wr wr)
 {
     wr.WriteInt16(x);
 }
Beispiel #44
0
 public static void Write(this byte[] x, Wr wr)
 {
     wr.WriteBytes(x);
 }
Beispiel #45
0
 public static void Write(this long x, Wr wr)
 {
     wr.WriteInt64(x);
 }
Beispiel #46
0
 public override void Write()
 {
     Wr.Write(Version);
     Wr.Write24(Flags);
 }
Beispiel #47
0
 public static void Write(this double x, Wr wr)
 {
     wr.WriteDouble(x);
 }
 public static void Write(this sbyte x, Wr wr)
 {
     wr.WriteInt8(x);
 }
Beispiel #49
0
 public static void Write(this char x, Wr wr)
 {
     wr.WriteChar(x);
 }
Beispiel #50
0
 public override void Write(object val, Wr wr)
 {
     wr.WriteInt32((Int32)val);
 }
Beispiel #51
0
 public static void Write(this string x, Wr wr)
 {
     wr.WriteString(x);
 }
 public static void Write(this bool x, Wr wr)
 {
     wr.WriteBoolean(x);
 }