-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml.cs
61 lines (43 loc) · 1.86 KB
/
MainWindow.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System;
using System.Collections.Generic;
using System.Windows;
using Upscale_Pixels.Code.Data.PixelManager;
using Upscale_Pixels.Code.Data.User;
namespace Upscale_Pixels
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
string DropBlockText = "You can Drop the File here!";
List<DragEventArgs> SeveralEDataList = new List<DragEventArgs>();
public string MainInputImagePath = "";
public string MainOutputImagepath = "";
public MainWindow()
{
InitializeComponent();
DropTextBlock.Text = DropBlockText;
PixelPro.CreateBitmapIstancesAndSimilar(MainInputImagePath, MainOutputImagepath, OutputImage);
UserData Drominito = new UserData("Drominito");
// Hier wird dann in der Combobox die Namen hinzugefügt, falls es diese Datei gibt
//comboboxitem.Content =
//ImagesHistory.Items = Com;
//DataContext = new MyViewModel(); // MVVM werde ich erst später nutzen, und ich möchte damit besser werden ! >:(
}
private void Button_Click(object sender, RoutedEventArgs e)
{
PixelEditing.CreateBitmapIstancesAndSimilar(MainInputImagePath, MainOutputImagepath, OutputImage);
}
private void LabelDrop_Drop(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
HistoryData.ShowFileData(e, InfoBox, SeveralEDataList);
MainInputImagePath = HistoryData.ShowFileImage(e, OriginalImage);
}
}
//private void Window_KeyDown(object sender, KeyEventArgs e) { }
private void LabelDrop_PreviewDrop(object sender, DragEventArgs e) { }
}
}