Ejemplo n.º 1
0
 public DataModes(DataModes other) : this(msclPINVOKE.new_DataModes__SWIG_1(DataModes.getCPtr(other)), true)
 {
     if (msclPINVOKE.SWIGPendingException.Pending)
     {
         throw msclPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 2
0
 public DataModesEnumerator(DataModes collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Ejemplo n.º 3
0
 public void SetRange(int index, DataModes values)
 {
     msclPINVOKE.DataModes_SetRange(swigCPtr, index, DataModes.getCPtr(values));
     if (msclPINVOKE.SWIGPendingException.Pending)
     {
         throw msclPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 4
0
 public void AddRange(DataModes values)
 {
     msclPINVOKE.DataModes_AddRange(swigCPtr, DataModes.getCPtr(values));
     if (msclPINVOKE.SWIGPendingException.Pending)
     {
         throw msclPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 5
0
        public virtual DataModes dataModes()
        {
            DataModes ret = new DataModes(msclPINVOKE.NodeFeatures_dataModes(swigCPtr), true);

            if (msclPINVOKE.SWIGPendingException.Pending)
            {
                throw msclPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 6
0
        public static DataModes Repeat(WirelessTypes.DataMode value, int count)
        {
            global::System.IntPtr cPtr = msclPINVOKE.DataModes_Repeat((int)value, count);
            DataModes             ret  = (cPtr == global::System.IntPtr.Zero) ? null : new DataModes(cPtr, true);

            if (msclPINVOKE.SWIGPendingException.Pending)
            {
                throw msclPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 7
0
        public DataModes GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = msclPINVOKE.DataModes_GetRange(swigCPtr, index, count);
            DataModes             ret  = (cPtr == global::System.IntPtr.Zero) ? null : new DataModes(cPtr, true);

            if (msclPINVOKE.SWIGPendingException.Pending)
            {
                throw msclPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 8
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DataModes obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Ejemplo n.º 9
0
 public void DataChanged(object sender, EventArgs e)
 {
     _dataMode = (!IsBindingActive && !IsSwitchingRecords) ? DataModes.Dirty : DataModes.Unknown;
     if (_formComponent != null)
         _formComponent.MarkDirty(_dataMode == DataModes.Dirty);
 }
Ejemplo n.º 10
0
        static void Main(string[] args)
        {
            if (args.Length < 4)
            {
                Console.WriteLine(
                    "Unreal Config Tool (C) Mojobojo 2011\n" +
                    "Usage:\n\n" +
                    "Unpack  /u\n" +
                    "Pack    /p\n" +
                    "Unicode /n\n" +
                    "Ascii   /a\n\n" +
                    "UnrealConfigTool <options> <in/out file> <in/out dir>\n"
                    );

                return;
            }

            ProcessModes ProcessMode = ProcessModes.Null;
            DataModes    DataMode    = DataModes.Null;
            string       InOutFileName;
            string       InOutDir;

            int i = 0;

            for ( ; i < args.Length; i++)
            {
                if (args[i][0] == '/')
                {
                    switch (args[i][1])
                    {
                    case 'u':
                    case 'U':
                        ProcessMode = ProcessModes.Unpack;
                        break;

                    case 'p':
                    case 'P':
                        ProcessMode = ProcessModes.Pack;
                        break;

                    case 'n':
                    case 'N':
                        DataMode = DataModes.Unicode;
                        break;

                    case 'a':
                    case 'A':
                        DataMode = DataModes.Ascii;
                        break;

                    default:
                        Console.WriteLine("Unknown command");
                        break;
                    }
                }
                else
                {
                    break;
                }
            }

            InOutFileName = args[i++];
            InOutDir      = args[i++];

            if (ProcessMode == ProcessModes.Unpack)
            {
                if (DataMode == DataModes.Unicode)
                {
                    UnpackUnicode(InOutFileName, InOutDir);
                }
                else if (DataMode == DataModes.Ascii)
                {
                    UnpackAscii(InOutFileName, InOutDir);
                }
            }
            else if (ProcessMode == ProcessModes.Pack)
            {
                if (DataMode == DataModes.Unicode)
                {
                    PackUnicdoe(InOutFileName, InOutDir);
                }
                else if (DataMode == DataModes.Ascii)
                {
                    PackAscii(InOutFileName, InOutDir);
                }
            }
        }