Ejemplo n.º 1
0
        private void CreateNewWindow()
        {
            if (mandrillNode.isWindowClosed)
            {
                var mandrillWindow = new MandrillWindow();
                if (mandrillNode.MyHtml == string.Empty || mandrillNode.MyHtml == null)
                {
                    mandrillNode.MyHtml = defaultHtml;
                }

                mandrillWindow.DataContext = mandrillNode;
                mandrillWindow.Show();
                mandrillNode.isWindowClosed = false;
            }
        }
Ejemplo n.º 2
0
        private void CreateNewWindow()
        {
            if (!_mandrillNode.IsWindowClosed)
            {
                return;
            }

            var mandrillWindow = new MandrillWindow();

            if (string.IsNullOrEmpty(_mandrillNode.MyHtml))
            {
                _mandrillNode.MyHtml = DefaultHtml;
            }

            mandrillWindow.DataContext = _mandrillNode;
            mandrillWindow.Show();
            _mandrillNode.IsWindowClosed = false;
        }