Пример #1
0
 public void Open()
 {
     if (string.IsNullOrEmpty(FileFullName.Trim()))
     {
         var cad = new AutoCadConnector();
         cad.Application.Documents.Open(FileFullName);
         cad.Application.Visible = true;
     }
 }
Пример #2
0
        internal void edit()
        {
            //chưa phân tích
            if (Extension == null ||
                Extension == "" ||
                AnalyzedState == false
                )
            {
                return;
            }

            //file tồn tại ở cùng thư mục

            //file copy đi chỗ khác


            // if (_trid == null)
            //    _trid = new TrIDEngine();



            //return null;


            try
            {
                // đáng lẽ phải acquire memory from interactor - nơi cấp nguồn lực
                if (FileFullName.Contains(Extension))//file đã có sẫn đúng extension
                {
                }
                else
                {
                    File.Copy(FileFullName, DirPath + "\\" + FileName + Extension);
                }
                this.EditedState = true;
            }
            catch (Exception e)
            {
                //obejct was not set to instance of object là file không có gì
                // out side bound of array là không có file như vậy
            }
        }