개정판 4bb0a307
dev issue #000 : 라이브러리로 변경
Change-Id: I06352f43cd82db94c01ca90e1101557b736b6ec0
DTI_PID/SPPIDConverter_AutoModeling/ConverterForm.cs | ||
---|---|---|
26 | 26 |
public partial class ConverterForm : DevExpress.XtraBars.Ribbon.RibbonForm |
27 | 27 |
{ |
28 | 28 |
private Dictionary<string, SPPID_Document> _DicDocuments = new Dictionary<string, SPPID_Document>(); |
29 |
public List< SPPID_Document> Documents { get { return _DicDocuments.Select(x => x.Value).ToList(); } } |
|
29 | 30 |
private DataTable _ConverterDT = new DataTable(); |
30 | 31 |
private DataTable _SPPIDSymbolPathDT = new DataTable(); |
31 | 32 |
private DataTable _SPPIDUnitDT = new DataTable(); |
... | ... | |
98 | 99 |
gridControlConverter.RepositoryItems.Add(templateComboBox); |
99 | 100 |
gridViewConverter.Columns["colTemplate"].ColumnEdit = templateComboBox; |
100 | 101 |
|
101 |
//RepositoryItemButtonEdit unitButton = new RepositoryItemButtonEdit(); |
|
102 |
//unitButton.ButtonClick += UnitButton_ButtonClick; |
|
103 |
//unitButton.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
|
104 |
//gridControlConverter.RepositoryItems.Add(unitButton); |
|
105 |
//gridViewConverter.Columns["colUnit"].ColumnEdit = unitButton; |
|
106 |
|
|
107 | 102 |
gridViewConverter.Columns["colUnit"].OptionsColumn.AllowEdit = false; |
108 | 103 |
gridViewConverter.Columns["colDrawingFileName"].OptionsColumn.AllowEdit = false; |
109 | 104 |
gridViewConverter.Columns["colUnit"].OptionsColumn.ReadOnly = true; |
DTI_PID/SPPIDConverter_AutoModeling/Form/SPPID_DB_SettingForm.Designer.cs | ||
---|---|---|
28 | 28 |
/// </summary> |
29 | 29 |
private void InitializeComponent() |
30 | 30 |
{ |
31 |
this.components = new System.ComponentModel.Container(); |
|
31 | 32 |
this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl(); |
32 | 33 |
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
33 | 34 |
this.btnCancel = new DevExpress.XtraEditors.SimpleButton(); |
... | ... | |
58 | 59 |
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); |
59 | 60 |
this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); |
60 | 61 |
this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); |
61 |
this.xtraOpenFileDialog = new DevExpress.XtraEditors.XtraOpenFileDialog(); |
|
62 |
this.xtraOpenFileDialog = new DevExpress.XtraEditors.XtraOpenFileDialog(this.components);
|
|
62 | 63 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); |
63 | 64 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); |
64 | 65 |
this.layoutControl1.SuspendLayout(); |
DTI_PID/SPPIDConverter_AutoModeling/MainWrapper.cs | ||
---|---|---|
7 | 7 |
using System.Text; |
8 | 8 |
using System.Threading.Tasks; |
9 | 9 |
using System.Windows.Forms; |
10 |
using Converter.AutoModeling.SPPID.Model; |
|
10 | 11 |
|
11 | 12 |
namespace Converter.AutoModeling.SPPID |
12 | 13 |
{ |
... | ... | |
22 | 23 |
ConverterForm form = new ConverterForm(); |
23 | 24 |
if (form.ShowDialog() == DialogResult.OK) |
24 | 25 |
{ |
26 |
List<SPPID_Document> documents = form.Documents; |
|
25 | 27 |
//dynamic application = Interaction.GetObject("", "PIDAutomation.Application"); |
26 | 28 |
//dynamic newDrawing = application.Drawings.Add(sUnit, sTemplate, sDrawingNumber, sDrawingName); |
27 |
MessageBox.Show("OK"); |
|
29 |
|
|
30 |
MessageBox.Show(documents.Count.ToString()); |
|
28 | 31 |
} |
29 | 32 |
} |
30 | 33 |
} |
DTI_PID/SPPIDConverter_AutoModeling/SPPIDConverter_AutoModeling.csproj | ||
---|---|---|
5 | 5 |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
6 | 6 |
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
7 | 7 |
<ProjectGuid>{B6757E78-6B59-40A3-A7BB-E73E8F81B6C3}</ProjectGuid> |
8 |
<OutputType>WinExe</OutputType>
|
|
8 |
<OutputType>Library</OutputType>
|
|
9 | 9 |
<AppDesignerFolder>Properties</AppDesignerFolder> |
10 | 10 |
<RootNamespace>Converter.AutoModeling.SPPID</RootNamespace> |
11 | 11 |
<AssemblyName>SPPIDConverter_AutoModeling</AssemblyName> |
... | ... | |
134 | 134 |
<Compile Include="Model\LineMapping.cs" /> |
135 | 135 |
<Compile Include="Model\AssociationMapping.cs" /> |
136 | 136 |
<Compile Include="Model\SymbolMapping.cs" /> |
137 |
<Compile Include="Program.cs" /> |
|
138 | 137 |
<Compile Include="Properties\AssemblyInfo.cs" /> |
139 | 138 |
<Compile Include="Properties\Msg.Designer.cs"> |
140 | 139 |
<AutoGen>True</AutoGen> |
... | ... | |
283 | 282 |
<ItemGroup> |
284 | 283 |
<None Include="Resources\pencolor_16x16.png" /> |
285 | 284 |
</ItemGroup> |
285 |
<ItemGroup> |
|
286 |
<Folder Include="AutoModeling\" /> |
|
287 |
</ItemGroup> |
|
286 | 288 |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
287 | 289 |
</Project> |
내보내기 Unified diff