Exemplo n.º 1
0
        public System.Collections.Specialized.StringCollection GetFileDropList()
        {
            ClipboardAsync instance  = new ClipboardAsync();
            Thread         staThread = new Thread(instance._thGetFileDropList);

            staThread.SetApartmentState(ApartmentState.STA);
            staThread.Start();
            staThread.Join();
            return(instance._GetFileDropList);
        }
Exemplo n.º 2
0
        public bool ContainsFileDropList()
        {
            ClipboardAsync instance  = new ClipboardAsync();
            Thread         staThread = new Thread(instance._thContainsFileDropList);

            staThread.SetApartmentState(ApartmentState.STA);
            staThread.Start();
            staThread.Join();
            return(instance._ContainsFileDropList);
        }
Exemplo n.º 3
0
        public string GetText(TextDataFormat format)
        {
            ClipboardAsync instance  = new ClipboardAsync();
            Thread         staThread = new Thread(instance._thGetText);

            staThread.SetApartmentState(ApartmentState.STA);
            staThread.Start(format);
            staThread.Join();
            return(instance._GetText);
        }
Exemplo n.º 4
0
        private void IsDataInClipboard()
        {
            setStatus("Looking for addon's save data... (clipboard)");

            string         jsonData   = "";
            ClipboardAsync Clipboard2 = new ClipboardAsync();

            jsonData = Clipboard2.GetText();

            if (jsonData.StartsWith("{\"tRaids\":") || jsonData.StartsWith("{\"tMembers\":"))
            {
                setProgress(4);
                SendRequest(jsonData);
            }
            else
            {
                IsXMLFile();
            }
        }
Exemplo n.º 5
0
 public string GetText(TextDataFormat format)
 {
     ClipboardAsync instance = new ClipboardAsync();
     Thread staThread = new Thread(instance._thGetText);
     staThread.SetApartmentState(ApartmentState.STA);
     staThread.Start(format);
     staThread.Join();
     return instance._GetText;
 }
Exemplo n.º 6
0
 public System.Collections.Specialized.StringCollection GetFileDropList()
 {
     ClipboardAsync instance = new ClipboardAsync();
     Thread staThread = new Thread(instance._thGetFileDropList);
     staThread.SetApartmentState(ApartmentState.STA);
     staThread.Start();
     staThread.Join();
     return instance._GetFileDropList;
 }
Exemplo n.º 7
0
 public bool ContainsText(object format)
 {
     ClipboardAsync instance = new ClipboardAsync();
     Thread staThread = new Thread(instance._thContainsFileDropList);
     staThread.SetApartmentState(ApartmentState.STA);
     staThread.Start(format);
     staThread.Join();
     return instance._ContainsText;
 }
Exemplo n.º 8
0
        private void IsDataInClipboard()
        {
            setStatus("Looking for addon's save data... (clipboard)");

            string jsonData = "";
            ClipboardAsync Clipboard2 = new ClipboardAsync();
            jsonData = Clipboard2.GetText();

            if (jsonData.StartsWith("{\"tRaids\":") || jsonData.StartsWith("{\"tMembers\":"))
            {
                setProgress(4);
                SendRequest(jsonData);
            }
            else
            {
                IsXMLFile();
            }
        }