Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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();
            }
        }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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();
            }
        }