Beispiel #1
0
        private void VagrantWrapper_OnOutputMessageReceived(object _, VagrantMessageEventHandler e)
        {
            this.SafeInvoke(() =>
            {
                if (string.IsNullOrEmpty(e.Message))
                {
                    return;
                }

                //非同期なのでWaitForExitが終わってからここが書かれるケースもある
                consoleTextBox.HideSelection = false;
                consoleTextBox.AppendText(e.Message + Environment.NewLine);

                var vagrantData = new VagrantData();
                if (vagrantData.GetVagrantDataParseCommandLine(e.Message))
                {
                    UpdaetVagrantData(vagrantData);
                }
                var vagrantBoxData = new VagrantBoxData();
                if (vagrantBoxData.GetVagrantBoxDataParseCommandLine(e.Message))
                {
                    UpdaetVagrantBoxData(vagrantBoxData);
                }
                removeButton.Enabled = (_vagrantBoxDatas.Count > 0);
                initButton.Enabled   = (_vagrantBoxDatas.Count > 0);
            });
        }
Beispiel #2
0
        private void VagrantWrapper_OnErrorMessageReceived(object _, VagrantMessageEventHandler e)
        {
            this.SafeInvoke(() =>
            {
                if (string.IsNullOrEmpty(e.Message))
                {
                    return;
                }

                consoleTextBox.HideSelection = false;
                consoleTextBox.AppendText(e.Message + Environment.NewLine);
            });
        }
Beispiel #3
0
        private void VagrantWrapper_OnOutputMessageReceived(object _, VagrantMessageEventHandler e)
        {
            this.SafeInvoke(() =>
            {
                if (string.IsNullOrEmpty(e.Message))
                {
                    return;
                }

                //非同期なのでWaitForExitが終わってからここが書かれるケースもある
                consoleTextBox.HideSelection = false;
                consoleTextBox.AppendText(e.Message + Environment.NewLine);

                var vagrantData = new VagrantData();
                if (vagrantData.GetVagrantDataParseCommandLine(e.Message))
                {
                    UpdaetVagrantData(vagrantData);
                }
                var vagrantBoxData = new VagrantBoxData();
                if (vagrantBoxData.GetVagrantBoxDataParseCommandLine(e.Message))
                {
                    UpdaetVagrantBoxData(vagrantBoxData);
                }
                removeButton.Enabled = (_vagrantBoxDatas.Count > 0);
                initButton.Enabled = (_vagrantBoxDatas.Count > 0);
            });
        }
Beispiel #4
0
        private void VagrantWrapper_OnErrorMessageReceived(object _, VagrantMessageEventHandler e)
        {
            this.SafeInvoke(() =>
            {
                if (string.IsNullOrEmpty(e.Message))
                {
                    return;
                }

                consoleTextBox.HideSelection = false;
                consoleTextBox.AppendText(e.Message + Environment.NewLine);
            });
        }