internal static void smethod_1(TabCollection A_0, Class345 A_1) { if (A_0.Count != 0) { int num = 0; int num2 = 0; for (int i = 0; i < A_0.Count; i++) { if (!A_0[i].IsClear && ((A_0[i].Position != 0f) || (A_0[i].DeletePosition == 0f))) { num2++; } else { num++; } } A_1.method_5(SprmCode.PChgTabs); int num4 = ((((1 + (num * 2)) + 0) + 1) + (num2 * 2)) + num2; A_1.Write((byte)num4); A_1.Write((byte)num); for (int j = 0; j < A_0.Count; j++) { if (A_0[j].IsClear || ((A_0[j].Position == 0f) && (A_0[j].DeletePosition != 0f))) { A_1.Write((short)A_0[j].DeletePosition); } } A_1.Write((byte)num2); for (int k = 0; k < A_0.Count; k++) { if (!A_0[k].IsClear && ((A_0[k].Position != 0f) || (A_0[k].DeletePosition == 0f))) { A_1.Write((short)Class59.smethod_8(A_0[k].Position * 20f, 0)); } } for (int m = 0; m < A_0.Count; m++) { Tab tab = A_0[m]; if (!A_0[m].IsClear && ((A_0[m].Position != 0f) || (A_0[m].DeletePosition == 0f))) { int num8 = 0; num8 = (int)(TabJustification.Left | tab.Justification); num8 |= ((int)tab.TabLeader) << 3; num8 |= tab.Undocumented40 ? 0x40 : 0; A_1.Write((byte)num8); } } } }
internal static void smethod_5(Class345 A_0, SprmCode A_1, int A_2, int A_3, CellAlign A_4, object A_5) { if ((A_5 != null) && (float.Parse(A_5.ToString()) >= 0f)) { A_0.method_5(A_1); A_0.Write((byte)6); A_0.Write((byte)A_2); A_0.Write((byte)A_3); A_0.Write((byte)A_4); A_0.Write((byte)3); int num2 = (int)Math.Round((double)(float.Parse(A_5.ToString()) * 20f)); A_0.Write((short)num2); } }