프로젝트

일반

사용자정보

개정판 0d323d8f

ID0d323d8f0649d71ae598457a13d6bb662b321194
상위 cd8502c2
하위 9f26701c

백흠경이(가) 일년 이상 전에 추가함

Feature: AutoCADViewer 컨트롤 추가

Change-Id: I5fd5618daa521226cfbcd4fbe0b846f86d4cef89

차이점 보기:

ID2.Manager/ID2.Manager/Controls/AutoCADViewer.Designer.cs
1

2
namespace ID2.Manager.Controls
3
{
4
    partial class AutoCADViewer
5
    {
6
        /// <summary> 
7
        /// 필수 디자이너 변수입니다.
8
        /// </summary>
9
        private System.ComponentModel.IContainer components = null;
10

  
11
        /// <summary> 
12
        /// 사용 중인 모든 리소스를 정리합니다.
13
        /// </summary>
14
        /// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param>
15
        protected override void Dispose(bool disposing)
16
        {
17
            if (disposing && (components != null))
18
            {
19
                components.Dispose();
20
            }
21
            base.Dispose(disposing);
22
        }
23

  
24
        #region 구성 요소 디자이너에서 생성한 코드
25

  
26
        /// <summary> 
27
        /// 디자이너 지원에 필요한 메서드입니다. 
28
        /// 이 메서드의 내용을 코드 편집기로 수정하지 마세요.
29
        /// </summary>
30
        private void InitializeComponent()
31
        {
32
            this.components = new System.ComponentModel.Container();
33
            devDept.Eyeshot.CancelToolBarButton cancelToolBarButton1 = new devDept.Eyeshot.CancelToolBarButton("Cancel", devDept.Eyeshot.ToolBarButton.styleType.ToggleButton, true, true);
34
            devDept.Eyeshot.ProgressBar progressBar1 = new devDept.Eyeshot.ProgressBar(devDept.Eyeshot.ProgressBar.styleType.Circular, 0, "Idle", System.Drawing.Color.Black, System.Drawing.Color.Transparent, System.Drawing.Color.Green, 1D, true, cancelToolBarButton1, false, 0.1D, 0.333D, true);
35
            devDept.Graphics.BackgroundSettings backgroundSettings1 = new devDept.Graphics.BackgroundSettings(devDept.Graphics.backgroundStyleType.Solid, System.Drawing.Color.DeepSkyBlue, System.Drawing.Color.DodgerBlue, System.Drawing.Color.Black, 0.75D, null, devDept.Graphics.colorThemeType.Auto, 0.33D);
36
            devDept.Eyeshot.Camera camera1 = new devDept.Eyeshot.Camera(new devDept.Geometry.Point3D(-4.5374030325107811E-16D, 2.0434646606445308D, 47.596564948558793D), 97.257904648780823D, new devDept.Geometry.Quaternion(0.49999999999999989D, 0.5D, 0.5D, 0.50000000000000011D), devDept.Graphics.projectionType.Orthographic, 40D, 1.497090233266769D, false, 0.001D);
37
            devDept.Eyeshot.MagnifyingGlassToolBarButton magnifyingGlassToolBarButton1 = new devDept.Eyeshot.MagnifyingGlassToolBarButton("Magnifying Glass", devDept.Eyeshot.ToolBarButton.styleType.ToggleButton, true, true);
38
            devDept.Eyeshot.ZoomWindowToolBarButton zoomWindowToolBarButton1 = new devDept.Eyeshot.ZoomWindowToolBarButton("Zoom Window", devDept.Eyeshot.ToolBarButton.styleType.ToggleButton, true, true);
39
            devDept.Eyeshot.ZoomToolBarButton zoomToolBarButton1 = new devDept.Eyeshot.ZoomToolBarButton("Zoom", devDept.Eyeshot.ToolBarButton.styleType.ToggleButton, true, true);
40
            devDept.Eyeshot.PanToolBarButton panToolBarButton1 = new devDept.Eyeshot.PanToolBarButton("Pan", devDept.Eyeshot.ToolBarButton.styleType.ToggleButton, true, true);
41
            devDept.Eyeshot.ZoomFitToolBarButton zoomFitToolBarButton1 = new devDept.Eyeshot.ZoomFitToolBarButton("Zoom Fit", devDept.Eyeshot.ToolBarButton.styleType.PushButton, true, true);
42
            devDept.Eyeshot.ToolBar toolBar1 = new devDept.Eyeshot.ToolBar(devDept.Eyeshot.ToolBar.positionType.HorizontalTopCenter, true, new devDept.Eyeshot.ToolBarButton[] {
43
            ((devDept.Eyeshot.ToolBarButton)(magnifyingGlassToolBarButton1)),
44
            ((devDept.Eyeshot.ToolBarButton)(zoomWindowToolBarButton1)),
45
            ((devDept.Eyeshot.ToolBarButton)(zoomToolBarButton1)),
46
            ((devDept.Eyeshot.ToolBarButton)(panToolBarButton1)),
47
            ((devDept.Eyeshot.ToolBarButton)(zoomFitToolBarButton1))});
48
            devDept.Eyeshot.Histogram histogram1 = new devDept.Eyeshot.Histogram(30, 80, "Title", System.Drawing.Color.Blue, System.Drawing.Color.Gray, System.Drawing.Color.Black, System.Drawing.Color.Red, System.Drawing.Color.LightYellow, false, true, false, "{0:+0.###;-0.###;0}");
49
            devDept.Eyeshot.Grid grid1 = new devDept.Eyeshot.Grid(new devDept.Geometry.Point2D(-100D, -100D), new devDept.Geometry.Point2D(100D, 100D), 10D, new devDept.Geometry.Plane(new devDept.Geometry.Point3D(0D, 0D, 0D), new devDept.Geometry.Vector3D(0D, 0D, 1D)), System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))), System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(0)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))), false, false, false, false, 10, 100, 10, System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(90)))), ((int)(((byte)(90)))), ((int)(((byte)(90))))), System.Drawing.Color.Transparent, false, System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))));
50
            devDept.Eyeshot.OriginSymbol originSymbol1 = new devDept.Eyeshot.OriginSymbol(10, devDept.Eyeshot.originSymbolStyleType.Ball, new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))), System.Drawing.Color.Black, System.Drawing.Color.Black, System.Drawing.Color.Black, System.Drawing.Color.Black, System.Drawing.Color.Red, System.Drawing.Color.Green, System.Drawing.Color.Blue, "Origin", "X", "Y", "Z", true, null, false);
51
            devDept.Eyeshot.RotateSettings rotateSettings1 = new devDept.Eyeshot.RotateSettings(new devDept.Eyeshot.MouseButton(devDept.Eyeshot.mouseButtonsZPR.Middle, devDept.Eyeshot.modifierKeys.None), 10D, false, 1D, devDept.Eyeshot.rotationType.Trackball, devDept.Eyeshot.rotationCenterType.CursorLocation, new devDept.Geometry.Point3D(0D, 0D, 0D), false);
52
            devDept.Eyeshot.ZoomSettings zoomSettings1 = new devDept.Eyeshot.ZoomSettings(new devDept.Eyeshot.MouseButton(devDept.Eyeshot.mouseButtonsZPR.Middle, devDept.Eyeshot.modifierKeys.Shift), 25, true, devDept.Eyeshot.zoomStyleType.AtCursorLocation, false, 1D, System.Drawing.Color.Empty, devDept.Eyeshot.Camera.perspectiveFitType.Accurate, false, 10, true);
53
            devDept.Eyeshot.PanSettings panSettings1 = new devDept.Eyeshot.PanSettings(new devDept.Eyeshot.MouseButton(devDept.Eyeshot.mouseButtonsZPR.Middle, devDept.Eyeshot.modifierKeys.Ctrl), 25, true);
54
            devDept.Eyeshot.NavigationSettings navigationSettings1 = new devDept.Eyeshot.NavigationSettings(devDept.Eyeshot.Camera.navigationType.Examine, new devDept.Eyeshot.MouseButton(devDept.Eyeshot.mouseButtonsZPR.Left, devDept.Eyeshot.modifierKeys.None), new devDept.Geometry.Point3D(-1000D, -1000D, -1000D), new devDept.Geometry.Point3D(1000D, 1000D, 1000D), 8D, 50D, 50D);
55
            devDept.Eyeshot.CoordinateSystemIcon coordinateSystemIcon1 = new devDept.Eyeshot.CoordinateSystemIcon(new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))), System.Drawing.Color.Black, System.Drawing.Color.Black, System.Drawing.Color.Black, System.Drawing.Color.Black, System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80))))), System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80))))), System.Drawing.Color.OrangeRed, "Origin", "X", "Y", "Z", true, devDept.Eyeshot.coordinateSystemPositionType.BottomLeft, 37, null, false);
56
            devDept.Eyeshot.ViewCubeIcon viewCubeIcon1 = new devDept.Eyeshot.ViewCubeIcon(devDept.Eyeshot.coordinateSystemPositionType.TopRight, false, System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(20)))), ((int)(((byte)(60))))), true, "FRONT", "BACK", "LEFT", "RIGHT", "TOP", "BOTTOM", System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))), System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))), System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))), System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))), System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))), System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))), 'S', 'N', 'W', 'E', true, null, System.Drawing.Color.White, System.Drawing.Color.Black, 120, true, true, null, null, null, null, null, null, false, new devDept.Geometry.Quaternion(0D, 0D, 0D, 1D), true);
57
            devDept.Eyeshot.Viewport.SavedViewsManager savedViewsManager1 = new devDept.Eyeshot.Viewport.SavedViewsManager(8);
58
            devDept.Eyeshot.Viewport viewport1 = new devDept.Eyeshot.Viewport(new System.Drawing.Point(0, 0), new System.Drawing.Size(487, 360), backgroundSettings1, camera1, new devDept.Eyeshot.ToolBar[] {
59
            toolBar1}, new devDept.Eyeshot.Legend[0], histogram1, devDept.Eyeshot.displayType.Wireframe, true, false, false, false, new devDept.Eyeshot.Grid[] {
60
            grid1}, new devDept.Eyeshot.OriginSymbol[] {
61
            originSymbol1}, false, rotateSettings1, zoomSettings1, panSettings1, navigationSettings1, coordinateSystemIcon1, viewCubeIcon1, savedViewsManager1, devDept.Eyeshot.viewType.Top);
62
            this.myModelDWG = new Xtractor.Viewer.MyModel(this.components);
63
            ((System.ComponentModel.ISupportInitialize)(this.myModelDWG)).BeginInit();
64
            this.SuspendLayout();
65
            // 
66
            // myModelDWG
67
            // 
68
            this.myModelDWG.Cursor = System.Windows.Forms.Cursors.Default;
69
            this.myModelDWG.Dock = System.Windows.Forms.DockStyle.Fill;
70
            this.myModelDWG.Location = new System.Drawing.Point(0, 0);
71
            this.myModelDWG.Name = "myModelDWG";
72
            this.myModelDWG.ProgressBar = progressBar1;
73
            this.myModelDWG.Size = new System.Drawing.Size(487, 360);
74
            this.myModelDWG.TabIndex = 1;
75
            this.myModelDWG.Viewports.Add(viewport1);
76
            // 
77
            // AutoCADViewer
78
            // 
79
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
80
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
81
            this.Controls.Add(this.myModelDWG);
82
            this.Name = "AutoCADViewer";
83
            this.Size = new System.Drawing.Size(487, 360);
84
            ((System.ComponentModel.ISupportInitialize)(this.myModelDWG)).EndInit();
85
            this.ResumeLayout(false);
86

  
87
        }
88

  
89
        #endregion
90

  
91
        private Xtractor.Viewer.MyModel myModelDWG;
92
    }
93
}
ID2.Manager/ID2.Manager/Controls/AutoCADViewer.cs
1
using System;
2
using System.Collections.Generic;
3
using System.ComponentModel;
4
using System.Data;
5
using System.Drawing;
6
using System.Linq;
7
using System.Text;
8
using System.Threading.Tasks;
9
using System.Windows.Forms;
10

  
11
namespace ID2.Manager.Controls
12
{
13
    public partial class AutoCADViewer : UserControl
14
    {
15
        public AutoCADViewer()
16
        {
17
            InitializeComponent();
18
        }
19
    }
20
}
ID2.Manager/ID2.Manager/Controls/AutoCADViewer.resx
1
<?xml version="1.0" encoding="utf-8"?>
2
<root>
3
  <!-- 
4
    Microsoft ResX Schema 
5
    
6
    Version 2.0
7
    
8
    The primary goals of this format is to allow a simple XML format 
9
    that is mostly human readable. The generation and parsing of the 
10
    various data types are done through the TypeConverter classes 
11
    associated with the data types.
12
    
13
    Example:
14
    
15
    ... ado.net/XML headers & schema ...
16
    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
    <resheader name="version">2.0</resheader>
18
    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
    </data>
25
    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
        <comment>This is a comment</comment>
28
    </data>
29
                
30
    There are any number of "resheader" rows that contain simple 
31
    name/value pairs.
32
    
33
    Each data row contains a name, and value. The row also contains a 
34
    type or mimetype. Type corresponds to a .NET class that support 
35
    text/value conversion through the TypeConverter architecture. 
36
    Classes that don't support this are serialized and stored with the 
37
    mimetype set.
38
    
39
    The mimetype is used for serialized objects, and tells the 
40
    ResXResourceReader how to depersist the object. This is currently not 
41
    extensible. For a given mimetype the value must be set accordingly:
42
    
43
    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
    that the ResXResourceWriter will generate, however the reader can 
45
    read any of the formats listed below.
46
    
47
    mimetype: application/x-microsoft.net.object.binary.base64
48
    value   : The object must be serialized with 
49
            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
            : and then encoded with base64 encoding.
51
    
52
    mimetype: application/x-microsoft.net.object.soap.base64
53
    value   : The object must be serialized with 
54
            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
            : and then encoded with base64 encoding.
56

  
57
    mimetype: application/x-microsoft.net.object.bytearray.base64
58
    value   : The object must be serialized into a byte array 
59
            : using a System.ComponentModel.TypeConverter
60
            : and then encoded with base64 encoding.
61
    -->
62
  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
    <xsd:element name="root" msdata:IsDataSet="true">
65
      <xsd:complexType>
66
        <xsd:choice maxOccurs="unbounded">
67
          <xsd:element name="metadata">
68
            <xsd:complexType>
69
              <xsd:sequence>
70
                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
              </xsd:sequence>
72
              <xsd:attribute name="name" use="required" type="xsd:string" />
73
              <xsd:attribute name="type" type="xsd:string" />
74
              <xsd:attribute name="mimetype" type="xsd:string" />
75
              <xsd:attribute ref="xml:space" />
76
            </xsd:complexType>
77
          </xsd:element>
78
          <xsd:element name="assembly">
79
            <xsd:complexType>
80
              <xsd:attribute name="alias" type="xsd:string" />
81
              <xsd:attribute name="name" type="xsd:string" />
82
            </xsd:complexType>
83
          </xsd:element>
84
          <xsd:element name="data">
85
            <xsd:complexType>
86
              <xsd:sequence>
87
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
              </xsd:sequence>
90
              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
              <xsd:attribute ref="xml:space" />
94
            </xsd:complexType>
95
          </xsd:element>
96
          <xsd:element name="resheader">
97
            <xsd:complexType>
98
              <xsd:sequence>
99
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
              </xsd:sequence>
101
              <xsd:attribute name="name" type="xsd:string" use="required" />
102
            </xsd:complexType>
103
          </xsd:element>
104
        </xsd:choice>
105
      </xsd:complexType>
106
    </xsd:element>
107
  </xsd:schema>
108
  <resheader name="resmimetype">
109
    <value>text/microsoft-resx</value>
110
  </resheader>
111
  <resheader name="version">
112
    <value>2.0</value>
113
  </resheader>
114
  <resheader name="reader">
115
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
  </resheader>
117
  <resheader name="writer">
118
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
  </resheader>
120
</root>
ID2.Manager/ID2.Manager/ID2.Manager.csproj
47 47
    <Reference Include="System.Xml" />
48 48
  </ItemGroup>
49 49
  <ItemGroup>
50
    <Compile Include="Controls\AutoCADViewer.cs">
51
      <SubType>UserControl</SubType>
52
    </Compile>
53
    <Compile Include="Controls\AutoCADViewer.Designer.cs">
54
      <DependentUpon>AutoCADViewer.cs</DependentUpon>
55
    </Compile>
50 56
    <Compile Include="Forms\BaseForm.cs">
51 57
      <SubType>Form</SubType>
52 58
    </Compile>
......
65 71
    <Compile Include="Main.Designer.cs">
66 72
      <DependentUpon>Main.cs</DependentUpon>
67 73
    </Compile>
74
    <Compile Include="Model\MyModel.cs">
75
      <SubType>Component</SubType>
76
    </Compile>
77
    <Compile Include="Model\MyModel.Designer.cs">
78
      <DependentUpon>MyModel.cs</DependentUpon>
79
    </Compile>
68 80
    <Compile Include="Program.cs" />
69 81
    <Compile Include="Properties\AssemblyInfo.cs" />
70 82
    <Compile Include="Settings.cs" />
83
    <EmbeddedResource Include="Controls\AutoCADViewer.resx">
84
      <DependentUpon>AutoCADViewer.cs</DependentUpon>
85
    </EmbeddedResource>
71 86
    <EmbeddedResource Include="Forms\Login.resx">
72 87
      <DependentUpon>Login.cs</DependentUpon>
73 88
    </EmbeddedResource>
......
123 138
    </ProjectReference>
124 139
  </ItemGroup>
125 140
  <ItemGroup>
141
    <PackageReference Include="devDept.Eyeshot.2022">
142
      <Version>2022.3.614</Version>
143
    </PackageReference>
144
    <PackageReference Include="devDept.Eyeshot.2022.Cad.Support">
145
      <Version>2022.3.614</Version>
146
    </PackageReference>
126 147
    <PackageReference Include="EmptyLicensesLicx">
127 148
      <Version>3.0.0</Version>
128 149
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
ID2.Manager/ID2.Manager/Main.Designer.cs
88 88
            this.radGridViewDocuments = new Telerik.WinControls.UI.RadGridView();
89 89
            this.splitPanelRight = new Telerik.WinControls.UI.SplitPanel();
90 90
            this.radButtonElementImportPCWBS = new Telerik.WinControls.UI.RadButtonElement();
91
            this.tableLayoutPanelRight = new System.Windows.Forms.TableLayoutPanel();
91 92
            ((System.ComponentModel.ISupportInitialize)(this.ID2ManagerRadRibbonBar)).BeginInit();
92 93
            ((System.ComponentModel.ISupportInitialize)(this.radSplitContainerWrap)).BeginInit();
93 94
            this.radSplitContainerWrap.SuspendLayout();
......
97 98
            ((System.ComponentModel.ISupportInitialize)(this.radGridViewDocuments)).BeginInit();
98 99
            ((System.ComponentModel.ISupportInitialize)(this.radGridViewDocuments.MasterTemplate)).BeginInit();
99 100
            ((System.ComponentModel.ISupportInitialize)(this.splitPanelRight)).BeginInit();
101
            this.splitPanelRight.SuspendLayout();
100 102
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
101 103
            this.SuspendLayout();
102 104
            // 
......
502 504
            // 
503 505
            // splitPanelRight
504 506
            // 
507
            this.splitPanelRight.Controls.Add(this.tableLayoutPanelRight);
505 508
            this.splitPanelRight.Location = new System.Drawing.Point(971, 0);
506 509
            this.splitPanelRight.Name = "splitPanelRight";
507 510
            // 
......
523 526
            this.radButtonElementImportPCWBS.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
524 527
            this.radButtonElementImportPCWBS.UseCompatibleTextRendering = false;
525 528
            // 
529
            // tableLayoutPanelRight
530
            // 
531
            this.tableLayoutPanelRight.ColumnCount = 1;
532
            this.tableLayoutPanelRight.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
533
            this.tableLayoutPanelRight.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
534
            this.tableLayoutPanelRight.Dock = System.Windows.Forms.DockStyle.Fill;
535
            this.tableLayoutPanelRight.Location = new System.Drawing.Point(0, 0);
536
            this.tableLayoutPanelRight.Name = "tableLayoutPanelRight";
537
            this.tableLayoutPanelRight.RowCount = 1;
538
            this.tableLayoutPanelRight.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
539
            this.tableLayoutPanelRight.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
540
            this.tableLayoutPanelRight.Size = new System.Drawing.Size(214, 552);
541
            this.tableLayoutPanelRight.TabIndex = 0;
542
            // 
526 543
            // Main
527 544
            // 
528 545
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
......
543 560
            ((System.ComponentModel.ISupportInitialize)(this.radGridViewDocuments.MasterTemplate)).EndInit();
544 561
            ((System.ComponentModel.ISupportInitialize)(this.radGridViewDocuments)).EndInit();
545 562
            ((System.ComponentModel.ISupportInitialize)(this.splitPanelRight)).EndInit();
563
            this.splitPanelRight.ResumeLayout(false);
546 564
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
547 565
            this.ResumeLayout(false);
548 566
            this.PerformLayout();
......
565 583
        private Telerik.WinControls.UI.RibbonTab ribbonTabHome;
566 584
        private Telerik.WinControls.UI.RadRibbonBarGroup radRibbonBarGroup1;
567 585
        private Telerik.WinControls.UI.RadButtonElement radButtonElementSave;
586
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanelRight;
568 587
    }
569 588
}
ID2.Manager/ID2.Manager/Main.cs
107 107
                switch (e.Column.Name)
108 108
                {
109 109
                    case "AutoCADLink":
110
                        MessageBox.Show($"{e.Column.Name} 실행");
110
                        Controls.AutoCADViewer viewer = null;
111
                        foreach (var control in this.tableLayoutPanelRight.Controls)
112
                        {
113
                            if (control is Controls.AutoCADViewer _viewer)
114
                            {
115
                                viewer = _viewer;
116
                                break;
117
                            }
118
                        }
119

  
120
                        if (viewer == null)
121
                        {
122
                            viewer = new Controls.AutoCADViewer() { Dock = DockStyle.Fill };
123
                            this.tableLayoutPanelRight.Controls.Add(viewer);
124
                        }
125
                        else
126
                        {
127
                            viewer.Visible = true;
128
                        }
111 129
                        break;
112 130
                    case "PDFLink":
113 131
                        MessageBox.Show($"{e.Column.Name} 실행");
......
127 145
                        break;
128 146
                    case "ToCapturePath":
129 147
                    case "FrCapturePath":
130
                        MessageBox.Show($"{e.Column.Name} 실행");
131 148
                        break;
132 149
                    case "ID2Connection":
133 150
                        MessageBox.Show($"{e.Column.Name} 실행");

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)