MainWindow.xaml.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Win32;
using System.IO;
using System.Collections;
// 下载于www.51aspx.com
namespace MediaShow
{
/// <summary>
/// MainWindow.xaml 的交互逻辑
/// </summary>
public partial class MainWindow : Window
{
string fileName, fileName1;
BitmapImage bitmapImage;
DirectoryInfo directory;
ArrayList filesArray;
int fileIndex;
bool fitToScreen = true;
double rotateAngle = 0;
public MainWindow()
{
InitializeComponent();
}
void Window1_SizeChanged(object sender, SizeChangedEventArgs e)
{
if (fileName != null)
{
showPicture(fileName);
}
}
int intTuPianWenZhiY = 0;
List<string> lisWenJianMing = new List<string>();
List<byte[]> lstBytes = new List<byte[]>();
OpenFileDialog dlg = new OpenFileDialog();
string filePath;
private void showPicture(string fileName)
{
bitmapImage = new BitmapImage();
bitmapImage.BeginInit();
bitmapImage.UriSource = new Uri(fileName);
if (rotateAngle == 0)
{
bitmapImage.Rotation = Rotation.Rotate0;
}
else if (rotateAngle == 90)
{
bitmapImage.Rotation = Rotation.Rotate90;
}
后面还有 297 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
