root / trunk / Pithos.Client.WPF / Shell / MiniStatusView.xaml.cs @ 21141c06
History | View | Annotate | Download (1.5 kB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Windows; |
6 |
using System.Windows.Controls; |
7 |
using System.Windows.Data; |
8 |
using System.Windows.Documents; |
9 |
using System.Windows.Input; |
10 |
using System.Windows.Media; |
11 |
using System.Windows.Media.Imaging; |
12 |
using System.Windows.Shapes; |
13 |
|
14 |
namespace Pithos.Client.WPF.Shell |
15 |
{ |
16 |
/// <summary> |
17 |
/// Interaction logic for MiniStatusView.xaml |
18 |
/// </summary> |
19 |
public partial class MiniStatusView : Window |
20 |
{ |
21 |
public MiniStatusView() |
22 |
{ |
23 |
InitializeComponent(); |
24 |
|
25 |
this.Top=System.Windows.SystemParameters.WorkArea.Height - this.Height; |
26 |
this.Left = System.Windows.SystemParameters.WorkArea.Width - this.Width; |
27 |
} |
28 |
|
29 |
private void imgClose_MouseDown(object sender, MouseButtonEventArgs e) |
30 |
{ |
31 |
this.Close(); |
32 |
} |
33 |
|
34 |
private void DropList_DragEnter(object sender, DragEventArgs e) |
35 |
{ |
36 |
if (!e.Data.GetDataPresent(DataFormats.FileDrop) || |
37 |
sender == e.Source) |
38 |
{ |
39 |
e.Effects = DragDropEffects.None; |
40 |
} |
41 |
} |
42 |
|
43 |
private void DropList_Drop(object sender, DragEventArgs e) |
44 |
{ |
45 |
if (e.Data.GetDataPresent(DataFormats.FileDrop)) |
46 |
{ |
47 |
string[] files = (string[])e.Data.GetData(DataFormats.FileDrop); |
48 |
//MessageBox.Show(files[0]); |
49 |
//Utils.CopyMoveFiles(files); |
50 |
} |
51 |
} |
52 |
} |
53 |
} |