public TaskDialog(Task task = null) { InitializeComponent(); if (task != null) { WindowUtils.ConnectTask(this, task); } }
public TaskDialog(Task task = null) { XML gxml = new XML(null, "MultiMC.GTKGUI.TaskDialog.glade", "vboxTask", null); gxml.Autoconnect(this); this.Remove(this.VBox); this.Add(vboxTask); WidthRequest = 400; HeightRequest = 110; if (task != null) { WindowUtils.ConnectTask(this, task); } }