public void writeWarning(WhiskeyEditor.Backend.WhiskeyWarning message) { if (TopView != null) { TopView.writeWarning(message); } }
public void writeException(Exception message) { if (TopView != null) { TopView.writeException(message); } }
public void requestClose() { Closing(this, new EventArgs()); TopView.Invoke(new NoArgFunction(() => { TopView.Close(); })); }
public void startup() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); TopView = new TopView(); TopView.WindowState = FormWindowState.Maximized; TopView.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable; Application.Run(TopView); }