Winform

/// <summary>
///Copy or cut files to clipboard (method)
/// </summary>
///< param name = "files" > file path array to be added to the clipboard < / param >
///< param name = "cut" > whether to cut true means to cut and false means to copy < / param >
public static void CopyToClipboard(string[] files, bool cut)
{
    if (files == null) 
        return;

    IDataObject data = new DataObject(DataFormats.FileDrop, files);

    MemoryStream memo = new MemoryStream(4);

    byte[] bytes = new byte[] { (byte)(cut ? 2 : 5), 0, 0, 0 };

    memo.Write(bytes, 0, bytes.Length);

    data.SetData("Preferred DropEffect", memo);

    Clipboard.SetDataObject(data);
}


/// <summary>
///Get the list of files in the clipboard (method)
/// </summary>
/// <returns>System. Collections. List < string > returns the set of file paths in the clipboard < / returns >
public static List<string> GetClipboardList()
{
    List<string> clipboardList = new List<string>();

    IDataObject dataObject = Clipboard.GetDataObject();

    if (dataObject.GetDataPresent(DataFormats.FileDrop))
    {
        System.Collections.Specialized.StringCollection sc = Clipboard.GetFileDropList();

        for (int i = 0; i < sc.Count; i++)
        {
            string listfileName = sc[i];

            clipboardList.Add(listfileName);
        }
    }

    return clipboardList;
}


/// <summary>
///Get the list of files in the clipboard (method)
/// </summary>
/// <param name="cut">true:剪切;false:复制</param>
/// <returns>System. Collections. List < string > returns the set of file paths in the clipboard < / returns >
public static List<string> GetClipboardList(out bool cut)
{
    List<string> clipboardList = new List<string>();

    cut = false;

    IDataObject dataObject = Clipboard.GetDataObject();

    if (dataObject.GetDataPresent(DataFormats.FileDrop))
    {
        MemoryStream memoryStream = (MemoryStream)dataObject.GetData("Preferred DropEffect", true);

        DragDropEffects dragDropEffects = (DragDropEffects)memoryStream.ReadByte();

        if ((dragDropEffects & DragDropEffects.Move) == DragDropEffects.Move)
        {
            cut = true;
        }

        StringCollection sc = Clipboard.GetFileDropList();

        for (int i = 0; i < sc.Count; i++)
        {
            string listfileName = sc[i];

            clipboardList.Add(listfileName);
        }
    }

    return clipboardList;
}

I stayed in Taipei for the next three days. For three days, I left the most time to Taipei. Without the daily task like the other days, I was confused here

People are in a hurry like Beijing. The sparse high-rise buildings can not cover up the old city, but more low buildings and narrow streets. Later in the day, there will be more people and cars on the road. I stand at the crossroads and watch them tie knot with each other... A traffic policeman busy clearing the street and a pair of girls walking slowly, saying "Miss, can you walk faster..."

The young man said that he can't go on the same road with me any more, because his destination is Yilan, which is very close. In fact, su'ao town is included in Yilan County. He goes to school there and has classmates to meet him there. I want to go to Keelung, which is nearly 100 kilometers away. It's not far or near, so we have to go our own way.

So, in the morning of the next day, I got up to wash myself. When I said goodbye to the young man, he was still sleeping. Knowing that I was going to leave first, he wanted to get up immediately and drive me out of the house. I said it was OK. If I had a chance, I would have a future. The young man nodded, raised his fist right hand, and I also raised my fist right hand. The two fists collided together and completed the farewell ceremony.

Next stop, I'm going to Hualien.

Due to the close distance, I plan to spend enough time to rest and energy to challenge the legendary Suhua road the next day. The Suhua road is built along the coastline. Along the road, you can see the sea view of the Pacific Ocean and the cliffs and mountains. It is a famous landscape road. The most famous scenic spot is Qingshui cliff, which is mainly between Chongde and hern, about ten kilometers.

Unfortunately, the end of May is close to the Dragon Boat Festival, which is a landmark solar term for the rainy season in Taiwan. The climate in the mountains is unpredictable and rainy and sunny. Especially in the mountains in the northeast of Taiwan, the rainfall is even more amazing. Falling rocks and landslides often occur along the Suhua Road, so they are particularly dangerous.

When I wake up again, I feel very tired at the waist and sore all over. I vaguely remember the legs I had nowhere to put in my dream when I went to sleep last night. I took the odometer and it said "146.58km" and climbed "1343m". I was surprised. I didn't know how I survived.

The owner of the house and lodging called me to have breakfast. After I washed and washed, I came to the dining table and saw that the owner had prepared me a western breakfast, including toast, bacon, fried eggs, cheese and some mushroom dishes. It was unexpected! I didn't expect that the accommodation in the small village could meet the service standard.

The boss is a man in his thirties and forties with sparse hair. He wears a pair of glasses and speaks politely. Ask me if I'm from Hong Kong? When I learned that I was from the mainland, I called me Chinese! And he claims to be Taiwanese... The boss is a good man, but what he said made me feel very uncomfortable. I feel like a thorn in my throat, and my heart is far away from the next time