mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 23:12:59 +08:00
59 lines
1.2 KiB
C#
59 lines
1.2 KiB
C#
using CodeWalker.GameFiles;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace CodeWalker.Forms
|
|
{
|
|
public partial class GenericForm : Form
|
|
{
|
|
|
|
private string fileName;
|
|
public string FileName
|
|
{
|
|
get { return fileName; }
|
|
set
|
|
{
|
|
fileName = value;
|
|
UpdateFormTitle();
|
|
}
|
|
}
|
|
public string FilePath { get; set; }
|
|
|
|
ExploreForm ExploreForm;
|
|
object CurrentFile;
|
|
|
|
|
|
public GenericForm(ExploreForm exploreForm)
|
|
{
|
|
ExploreForm = exploreForm;
|
|
InitializeComponent();
|
|
}
|
|
|
|
|
|
public void LoadFile(object file, RpfFileEntry fileEntry)
|
|
{
|
|
CurrentFile = file;
|
|
|
|
DetailsPropertyGrid.SelectedObject = file;
|
|
|
|
fileName = fileEntry?.Name;
|
|
|
|
UpdateFormTitle();
|
|
}
|
|
|
|
|
|
private void UpdateFormTitle()
|
|
{
|
|
Text = fileName + " - File Inspector - CodeWalker by dexyfex";
|
|
}
|
|
|
|
}
|
|
}
|