Beispiel #1
0
 public void Save(RSFileWriter bw)
 {
     bw.WriteByte(10);
     bw.WriteBool(p_value_valid[0]);
     bw.WriteBool(p_value_valid[1]);
     bw.WriteBool(p_value_valid[2]);
     bw.WriteBool(p_value_valid[3]);
     bw.WriteDouble(p_value[0]);
     bw.WriteDouble(p_value[1]);
     bw.WriteDouble(p_value[2]);
     bw.WriteDouble(p_value[3]);
     bw.WriteByte(11); bw.WriteInt32((int)Axis);
     bw.WriteByte(13); bw.WriteBool(Changed);
     bw.WriteByte(0);
 }
Beispiel #2
0
        public override void SaveStatus(RSFileWriter bw)
        {
            base.SaveStatusCore(bw);

            if (Rows > 0 && Rows < 100 && Columns > 0 && Columns < 100)
            {
                bw.WriteByte(10);
                bw.WriteInt32(Rows);
                bw.WriteInt32(Columns);


                for (int r = 0; r < Rows; r++)
                {
                    for (int c = 0; c < Columns; c++)
                    {
                        if (matrix[r, c] != null)
                        {
                            bw.WriteByte(20);
                            bw.WriteInt32(r);
                            bw.WriteInt32(c);
                            bw.WriteString(matrix[r, c].Tag);
                            bw.WriteInt32((int)matrix[r, c].State);
                            bw.WriteBool(matrix[r, c].CanChangeState);
                        }
                    }
                }
            }

            bw.WriteByte(0);
        }
Beispiel #3
0
        public override void SaveStatus(RSFileWriter bw)
        {
            base.SaveStatusCore(bw);

            bw.WriteByte(20);
            bw.WriteBool(Status);

            bw.WriteByte(0);
        }
Beispiel #4
0
        public void Save(RSFileWriter bw)
        {
            bw.WriteByte(10); bw.WriteBool(SizeToFit);
            bw.WriteByte(11); bw.WriteInt32((Int32)Align);
            bw.WriteByte(12); bw.WriteInt32((Int32)VertAlign);
            bw.WriteByte(13); bw.WriteFloat(LineSpacing);

            bw.WriteByte(0);
        }
Beispiel #5
0
        public void SaveStatus(RSFileWriter bw)
        {
            // tag and value for highlighted status
            bw.WriteByte(10);
            bw.WriteBool(UIStateHighlighted);

            // end for spot status info
            bw.WriteByte(0);
        }
Beispiel #6
0
        public void Save(RSFileWriter bw)
        {
            bw.WriteByte(11);
            bw.WriteFloat(Size);

            bw.WriteByte(13);
            bw.WriteBool(Italic);

            bw.WriteByte(14);
            bw.WriteBool(Bold);

            bw.WriteByte(15);
            bw.WriteBool(Underline);

            bw.WriteByte(16);
            bw.WriteString(Name);

            bw.WriteByte(0);
        }
Beispiel #7
0
 public override void Save(RSFileWriter bw)
 {
     bw.WriteByte(1);
     bw.WriteInt64(TimeOffset);
     bw.WriteByte(2);
     bw.WriteBool(Valid);
     bw.WriteByte(3);
     bw.WriteString(Text);
     bw.WriteByte(0);
     Modified = true;
 }
Beispiel #8
0
        public override void Save(RSFileWriter bw)
        {
            base.Save(bw);

            bw.WriteByte(10);
            bw.WriteInt32((int)RunningLine);

            bw.WriteByte(11);
            bw.WriteBool(RichContent);

            bw.WriteByte(0);
        }
Beispiel #9
0
        public override void Save(RSFileWriter bw)
        {
            base.Save(bw);

            bw.WriteByte(10);
            bw.WriteByte((byte)DefaultChecked);
            bw.WriteByte((byte)ExpectedChecked);

            bw.WriteByte(11);
            bw.WriteBool(CheckBoxAtEnd);

            bw.WriteByte(0);
        }
Beispiel #10
0
        public override void SaveStatus(RSFileWriter bw)
        {
            base.SaveStatusCore(bw);

            if (p_cellStatus != null && p_cellExpectedStatus != null)
            {
                bw.WriteByte(20);
                bw.WriteInt32(Columns);
                bw.WriteInt32(Rows);
                for (int c = 0; c < Columns; c++)
                {
                    for (int r = 0; r < Rows; r++)
                    {
                        bw.WriteBool(p_cellStatus[c, r]);
                        bw.WriteBool(p_cellExpectedStatus[c, r]);
                    }
                }
            }


            bw.WriteByte(0);
        }
Beispiel #11
0
        public void Save(RSFileWriter bw)
        {
            bw.Log("* * * AREA * * *\n");
            bw.WriteByte(11);
            bw.WriteBool(Selected);

            bw.WriteByte(12);
            bw.WriteInt32(RelativeArea.X);
            bw.WriteInt32(RelativeArea.Y);
            bw.WriteInt32(RelativeArea.Width);
            bw.WriteInt32(RelativeArea.Height);

            bw.WriteByte(13);
            bw.WriteInt32((int)Dock);

            bw.WriteByte(14);
            bw.WriteInt32((int)BackType);

            if (BackgroundImage != null)
            {
                bw.WriteByte(15);
                bw.WriteImage(BackgroundImage);
            }

            bw.WriteByte(16);
            bw.WriteInt32(BackgroundImageOffset.X);
            bw.WriteInt32(BackgroundImageOffset.Y);

            bw.WriteByte(17);
            bw.WriteInt32((int)Screen);

            bw.WriteByte(18);
            bw.WriteBool(DockModified);

            // end of object
            bw.WriteByte(0);
        }
Beispiel #12
0
        public virtual void Save(RSFileWriter W)
        {
            W.WriteByte(10);
            W.WriteInt64(Id);

            W.WriteByte(11);
            W.WriteFloat(X);
            W.WriteFloat(Y);
            W.WriteFloat(Width);
            W.WriteFloat(Height);

            W.WriteByte(12);
            W.WriteBool(Autosize);

            W.WriteByte(13);
            Objects.Save(W);

            W.WriteByte(14);
            W.WriteInt64(ParentObject != null ? ParentObject.Id : -1);

            W.WriteByte(0);
        }