Beispiel #1
0
 private void DecidingInfo()
 {
     if (Result.Length % 2 == 0 && Result.Any(item => item.Contains(".vpy"))) //from vpy
     {
         var popup = new VSInfoWindow(Result);
         popup.ShowDialog();
         FromInfo = (Info)popup.result.Clone();
         popup.Dispose();
     }
     else if ((Result.Length % 2 == 0 && Result.Any(item => item.Contains("src") || item.Contains("source")))) //from avs
     {
         FromInfo        = new AVSInfo();
         InfoBoard.Text += "看起来是AVS截取的图。\n";
     }
     else if (Result.Length % 3 == 0)
     {
         FromInfo        = new ProcessedInfo();
         InfoBoard.Text += "看起来是已经处理过的图。\n";
         InfoBoard.Text += $"如果之前上传失败了,记得去图床手动清理啊{Utility.GetHelplessEmotion()}\n";
     }
     else
     {
         InfoBoard.Text += $"完全不明白你这些图怎么来的{Utility.GetHelplessEmotion()}\n";
         InfoBoard.Text += $"去群里求助下正确使用姿势?\n";
     }
 }
Beispiel #2
0
        private void DecidingInfo()
        {
            bool isVpy = Result.Any(item => item.Contains(".vpy"));

            if (isVpy) //from vpy
            {
                var popup = new VSInfoWindow();
                popup.ShowDialog();
                FromInfo = (Info)popup.result.Clone();
                popup.Dispose();
            }
            else
            {
                FromInfo = new AVSInfo();
            }
        }