Files
UnrealEngineUWP/Engine/Extras/ThirdPartyNotUE/crunchersharp/SelectNamespaceForm.cs
aurel cordonnier fc542f6cfd Merge from Release-Engine-Staging @ 18081189 to Release-Engine-Test
This represents UE4/Main @18073326, Release-5.0 @18081140 and Dev-PerfTest @18045971

[CL 18081471 by aurel cordonnier in ue5-release-engine-test branch]
2021-11-07 23:43:01 -05:00

58 lines
1.5 KiB
C#

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 CruncherSharp
{
public partial class SelectNamespaceForm : Form
{
public bool SkipAllNamespaces { get; set; }
public SelectNamespaceForm()
{
InitializeComponent();
SkipAllNamespaces = false;
}
public void SetName(String className, ulong count)
{
this.labelSelectNamespace.Text = "Select namespace for " + className + " (" + count + " instances)";
}
public string GetNamespace()
{
if (checkedListBoxNamespaces.CheckedItems.Count == 0)
return "";
return checkedListBoxNamespaces.CheckedItems[0].ToString();
}
public void AddNamespaces(List<String> namespaces)
{
foreach (var name in namespaces)
checkedListBoxNamespaces.Items.Add(name);
}
private void checkedListBoxNamespaces_ItemCheck(object sender, ItemCheckEventArgs e)
{
Close();
}
private void buttonSkip_Click(object sender, EventArgs e)
{
Close();
}
private void buttonSkipAll_Click(object sender, EventArgs e)
{
SkipAllNamespaces = true;
Close();
}
}
}