Exemplo n.º 1
0
        public TaskDialog(Task task = null)
        {
            InitializeComponent();

            if (task != null)
            {
                WindowUtils.ConnectTask(this, task);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }