Beispiel #1
0
        void OnDrop(object sender, DragEventArgs e)
        {
            System.IO.FileAttributes Attributes;
            String FileName = ((String[])e.Data.GetData(DataFormats.FileDrop))[0];

            try
            {
                Attributes = System.IO.File.GetAttributes(FileName);
            }
            catch
            {
                return;
            }

            if ((Attributes & System.IO.FileAttributes.Directory) != 0)
            {
                FileName = FileName + "\\savedata.dat";
            }

            GlobalData.NotifySaveDataChange(new EDAOSaveData(FileName));
        }
Beispiel #2
0
 private void SaveDataListItem_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     GlobalData.NotifySaveDataChange(this.saveData, true);
 }