コード例 #1
0
        public void OpenDialogeBox()
        {
            var xmlReader = new ReadXml();

            if (xmlReader.checkXmlPath())
            {
                var drawingList = new List <string>();

                using (var _form = new PurgeAttributeForm())
                {
                    _form.SetTabIndex(1);

                    var result = _form.ShowDialog();

                    if (result == System.Windows.Forms.DialogResult.OK)
                    {
                        drawingList = _form.AttributeDrawingList;
                    }
                    if (result == System.Windows.Forms.DialogResult.None)
                    {
                        return;
                    }

                    ReplaceStringValue(drawingList, _form.AttBlockname, _form.LinkattAttributeName, _form.LinkAttValue, _form.ChangeattAttributeName, _form.ChangeAttValue);
                }
            }
        }
コード例 #2
0
        public void checkXMLPath()
        {
            var readXml = new ReadXml();

            Assert.AreEqual(true, readXml.checkXmlPath());
        }