Mercurial > repos > RelicTools > IChunkyViewer
view IChunkyViewer.cs @ 0:8439bec53421
Initial commit under the GPLv3
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 06 Oct 2018 20:00:56 +0100 |
parents | |
children |
line wrap: on
line source
using System; using System.Collections; using System.Windows.Forms; using System.Threading; namespace IBBoard.Relic.IChunkyViewer { /// <summary> /// Summary description for IChunkyViewer. /// </summary> public class IChunkyViewer { private ArrayList windows; public IChunkyViewer() { windows = new ArrayList(); } public void CreateForm(string path) { Form1 frm = new Form1(path); windows.Add(frm); frm.ShowDialog(); } public void RemoveForm(Form1 frm) { if (windows.Contains(frm)) { windows.Remove(frm); } if (windows.Count==0) { Application.Exit(); } } /* * /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { IChunkyViewer viewer = new IChunkyViewer(); viewer.CreateForm(""); }*/ } }