Initial Commit of the PDM project (ready for DWS migration)
This commit is contained in:
332
documentation/api_extracted/Update_References_Example_CSharp.htm
Normal file
332
documentation/api_extracted/Update_References_Example_CSharp.htm
Normal file
@@ -0,0 +1,332 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Update References Example (C#)</title>
|
||||
<meta http-equiv="Content-Language" content="en-us">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
||||
<link rel="stylesheet" type="text/css" href="ApiHelp.css">
|
||||
</head>
|
||||
<meta name=MS-HKWD content="C# examples,files">
|
||||
<meta name=MS-HKWD content="C# examples,references">
|
||||
<meta name=MS-HKWD content="C# examples,file references">
|
||||
|
||||
<body>
|
||||
<h1><span style="font-weight: normal; font-size: 7.5pt;">SOLIDWORKS PDM Professional API Help</span></h1>
|
||||
<h1>Update References Example (C#)</h1>
|
||||
<p><a name="Top"></a>This example shows how to update the references of a file
|
||||
in a vault.</p>
|
||||
<p><b>NOTE</b>: If using the primary interop assembly
|
||||
provided with SOLIDWORKS PDM Professional, see
|
||||
<a href="Using_NET_Framework_in_Applications.htm">Using .NET Framework 4.0 in
|
||||
Stand-alone Applications</a>.</p>
|
||||
<p><img border="0" src="UpdateRefs.gif" width="300" height="199"></p>
|
||||
|
||||
<pre style="font-family: Courier New; font-size: 13; color: black; background: white"><span style="color:green;">//----------------------------------------------------------------------------</span>
|
||||
<span style="color:green;">// Preconditions:</span>
|
||||
<span style="color:green;">// 1. Start Microsoft Visual Studio.</span>
|
||||
<span style="color:green;">// a. Click <b>File > New > Project > Visual C# > Windows Forms Application</b>.</span>
|
||||
<span style="color:green;">// b. Type <b>UpdateReferencesCSharp</b> in <b>Name</b>.</span>
|
||||
<span style="color:green;">// c. Click <b>Browse</b> and navigate to the folder where to create the project.</span>
|
||||
<span style="color:green;">// d. Click <b>OK</b>. </span>
|
||||
<span style="color:green;">// e. Click <b>Show All Files</b> in the Solution Explorer toolbar and expand </span>
|
||||
<span style="color:green;">// <b>Form1.cs</b> in the Solution Explorer.</span>
|
||||
<span style="color:green;">// f. Replace the code in <b>Form1.cs </b>with <a href="#Form1">this code</a>.</span>
|
||||
<span style="color:green;">// g. To create the form, replace the code in <b>Form1.Designer.cs</b> with </span>
|
||||
<span style="color:green;">// <a href="#Designer">this code</a>.</span>
|
||||
<span style="color:green;">// 2. Add <b>EPDM.Interop.epdm.dll</b> as a reference (right-click the project</span>
|
||||
<span style="color:green;">// name in the Solution Explorer, click <b>Add Reference</b>, click </span>
|
||||
<span style="color:green;">// <b>Assemblies > Framework </b>in the left-side panel, browse to the top folder of </span>
|
||||
<span style="color:green;">// your SOLIDWORKS PDM Professional installation, locate and click </span>
|
||||
<span style="color:green;">// <b>EPDM.Interop.epdm.dll</b>, click <b>Open</b>, click <b>Add</b>, and click <b>Close</b>).</span>
|
||||
<span style="color:green;">// 3. Right-click <b>EPDM.Interop.epdm</b> in References, click <b>Properties</b>, and set </span>
|
||||
<span style="color:green;">// <b>Embed Interop Types</b> to <b>False</b> to handle methods that pass arrays of </span>
|
||||
<span style="color:green;">// structures.</span>
|
||||
<span style="color:green;">// 4. Click <b>Debug > Start Debugging</b> or press F5.</span>
|
||||
<span style="color:green;">//</span>
|
||||
<span style="color:green;">// Postconditions: </span>
|
||||
<span style="color:green;">// 1. Displays your Update References dialog box.</span>
|
||||
<span style="color:green;">// 2. Select a vault view.</span>
|
||||
<span style="color:green;">// 3. Click <b>Browse</b>.</span>
|
||||
<span style="color:green;">// 4. Displays the Select a file dialog box.</span>
|
||||
<span style="color:green;">// a. Click a file in the selected vault.</span>
|
||||
<span style="color:green;">// b. Click <b>Open</b>.</span>
|
||||
<span style="color:green;">// The selected file's path and file name appear </span>
|
||||
<span style="color:green;">// in the Select a file dialog box.</span>
|
||||
<span style="color:green;">// 5. Click <b>Update references</b>.</span>
|
||||
<span style="color:green;">// 6. Initializes and displays SOLIDWORKS PDM Professional's Update References </span>
|
||||
<span style="color:green;">// dialog box, which shows the name of the selected file whose file references </span>
|
||||
<span style="color:green;">// to update and the names of the file references, if any.</span>
|
||||
<span style="color:green;">// 7. Click <b>Close</b>.</span>
|
||||
<span style="color:green;">// 8. Close your Update References dialog box.</span>
|
||||
<span style="color:green;">//----------------------------------------------------------------------------</span>
|
||||
</pre>
|
||||
<pre style="font-family: Courier New; font-size: 13; color: black; background: white"><span style="color:green;"><a name="Form1"></a>//Form1.cs</span>
|
||||
|
||||
<span style="color:blue;">using</span> System;
|
||||
<span style="color:blue;">using</span> System.Windows.Forms;
|
||||
<span style="color:blue;">using</span> EPDM.Interop.epdm;
|
||||
|
||||
|
||||
<span style="color:blue;">namespace</span> UpdateReferencesCSharp
|
||||
{
|
||||
<span style="color:blue;">public</span> <span style="color:blue;">partial</span> <span style="color:blue;">class</span> <span style="color:#2b91af;">Form1</span> : <span style="color:#2b91af;">Form</span>
|
||||
{
|
||||
<span style="color:blue;">public</span> Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
<span style="color:#2b91af;">IEdmVault5</span> vault1 = <span style="color:blue;">null</span>;
|
||||
<span style="color:#2b91af;">IEdmFile5</span> aFile;
|
||||
<span style="color:blue;">string</span> fileName;
|
||||
|
||||
|
||||
<span style="color:blue;">private</span> <span style="color:blue;">void</span> Form1_Load(System.<span style="color:#2b91af;">Object</span> sender, System.<span style="color:#2b91af;">EventArgs</span> e)
|
||||
{
|
||||
|
||||
<span style="color:blue;">try</span>
|
||||
{
|
||||
<span style="color:#2b91af;">IEdmVault5</span> vault1 = <span style="color:blue;">new</span> <span style="color:#2b91af;">EdmVault5</span>();
|
||||
<span style="color:#2b91af;">IEdmVault8</span> vault = (<span style="color:#2b91af;">IEdmVault8</span>)vault1;
|
||||
<span style="color:#2b91af;">EdmViewInfo</span>[] Views = <span style="color:blue;">null</span>;
|
||||
|
||||
vault.<b>GetVaultViews</b>(<span style="color:blue;">out</span> Views, <span style="color:blue;">false</span>);
|
||||
VaultsComboBox.Items.Clear();
|
||||
<span style="color:blue;">foreach</span> (<span style="color:#2b91af;">EdmViewInfo</span> View <span style="color:blue;">in</span> Views)
|
||||
{
|
||||
VaultsComboBox.Items.Add(View.<b>mbsVaultName</b>);
|
||||
}
|
||||
<span style="color:blue;">if</span> (VaultsComboBox.Items.Count > 0)
|
||||
{
|
||||
VaultsComboBox.Text = (<span style="color:blue;">string</span>)VaultsComboBox.Items[0];
|
||||
}
|
||||
|
||||
}
|
||||
<span style="color:blue;">catch</span> (System.Runtime.InteropServices.<span style="color:#2b91af;">COMException</span> ex)
|
||||
{
|
||||
<span style="color:#2b91af;">MessageBox</span>.Show(<span style="color:#a31515;">"HRESULT = 0x"</span> + ex.ErrorCode.ToString(<span style="color:#a31515;">"X"</span>) + <span style="color:#a31515;">"\n"</span> + ex.Message);
|
||||
}
|
||||
<span style="color:blue;">catch</span> (<span style="color:#2b91af;">Exception</span> ex)
|
||||
{
|
||||
<span style="color:#2b91af;">MessageBox</span>.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
<span style="color:blue;">public</span> <span style="color:blue;">void</span> UpdateReferencesButton_Click(System.<span style="color:#2b91af;">Object</span> sender, System.<span style="color:#2b91af;">EventArgs</span> e)
|
||||
{
|
||||
<span style="color:blue;">try</span>
|
||||
{
|
||||
<span style="color:green;">//Only create a new vault object</span>
|
||||
<span style="color:green;">//if one hasn't been created yet</span>
|
||||
<span style="color:blue;">if</span> (vault1 == <span style="color:blue;">null</span>)
|
||||
{
|
||||
vault1 = <span style="color:blue;">new</span> <span style="color:#2b91af;">EdmVault5</span>();
|
||||
}
|
||||
|
||||
<span style="color:blue;">if</span> (!vault1.<b>IsLoggedIn</b>)
|
||||
{
|
||||
<span style="color:green;">//Log into selected vault as the current user</span>
|
||||
vault1.<b>LoginAuto</b>(VaultsComboBox.Text, <span style="color:blue;">this</span>.Handle.ToInt32());
|
||||
}
|
||||
|
||||
<span style="color:green;">//Update the references for the selected document</span>
|
||||
<span style="color:green;">//and show SOLIDWORKS PDM Professional Update References dialog</span>
|
||||
<span style="color:#2b91af;">IEdmUpdateReferences</span> updateRefs = <span style="color:blue;">default</span>(<span style="color:#2b91af;">IEdmUpdateReferences</span>);
|
||||
<span style="color:#2b91af;">IEdmVault7</span> vault2 = (<span style="color:#2b91af;">IEdmVault7</span>)vault1;
|
||||
updateRefs = (<span style="color:#2b91af;">IEdmUpdateReferences</span>)vault2.<b>CreateUtility</b>(<span style="color:#2b91af;">EdmUtility</span>.EdmUtil_UpdateReferences);
|
||||
updateRefs.<b>AddFile</b>(fileName);
|
||||
updateRefs.<b>ShowDlg</b>(<span style="color:blue;">this</span>.Handle.ToInt32(), 0, 0);
|
||||
|
||||
}
|
||||
<span style="color:blue;">catch</span> (System.Runtime.InteropServices.<span style="color:#2b91af;">COMException</span> ex)
|
||||
{
|
||||
<span style="color:#2b91af;">MessageBox</span>.Show(<span style="color:#a31515;">"HRESULT = 0x"</span> + ex.ErrorCode.ToString(<span style="color:#a31515;">"X"</span>) + <span style="color:#a31515;">" "</span> + ex.Message);
|
||||
}
|
||||
<span style="color:blue;">catch</span> (<span style="color:#2b91af;">Exception</span> ex)
|
||||
{
|
||||
<span style="color:#2b91af;">MessageBox</span>.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
<span style="color:blue;">public</span> <span style="color:blue;">void</span> BrowseButton_Click(System.<span style="color:#2b91af;">Object</span> sender, System.<span style="color:#2b91af;">EventArgs</span> e)
|
||||
{
|
||||
<span style="color:blue;">try</span>
|
||||
{
|
||||
<span style="color:green;">//If one hasn't been created yet</span>
|
||||
<span style="color:blue;">if</span> (vault1 == <span style="color:blue;">null</span>)
|
||||
{
|
||||
vault1 = <span style="color:blue;">new</span> <span style="color:#2b91af;">EdmVault5</span>();
|
||||
}
|
||||
|
||||
<span style="color:blue;">if</span> (!vault1.<b>IsLoggedIn</b>)
|
||||
{
|
||||
<span style="color:green;">//Log into selected vault as the current user</span>
|
||||
vault1.<b>LoginAuto</b>(VaultsComboBox.Text, <span style="color:blue;">this</span>.Handle.ToInt32());
|
||||
}
|
||||
<span style="color:green;">//Set the initial directory in the Select a file dialog</span>
|
||||
OpenFileDialog1.InitialDirectory = vault1.<b>RootFolderPath</b>;
|
||||
<span style="color:green;">//Show the Select a file dialog</span>
|
||||
System.Windows.Forms.<span style="color:#2b91af;">DialogResult</span> DialogResult;
|
||||
DialogResult = OpenFileDialog1.ShowDialog();
|
||||
|
||||
<span style="color:blue;">if</span> (!(DialogResult == System.Windows.Forms.<span style="color:#2b91af;">DialogResult</span>.OK))
|
||||
{
|
||||
<span style="color:green;">//Do nothing</span>
|
||||
}
|
||||
<span style="color:blue;">else</span>
|
||||
{
|
||||
<span style="color:green;">//Browse for a file whose next possible state </span>
|
||||
<span style="color:green;">//transitions to get</span>
|
||||
fileName = OpenFileDialog1.FileName;
|
||||
FileListBox.Items.Add(fileName);
|
||||
<span style="color:#2b91af;">IEdmFolder5</span> retFolder = <span style="color:blue;">default</span>(<span style="color:#2b91af;">IEdmFolder5</span>);
|
||||
aFile = vault1.<b>GetFileFromPath</b>(fileName, <span style="color:blue;">out</span> retFolder);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
<span style="color:blue;">catch</span> (System.Runtime.InteropServices.<span style="color:#2b91af;">COMException</span> ex)
|
||||
{
|
||||
<span style="color:#2b91af;">MessageBox</span>.Show(<span style="color:#a31515;">"HRESULT = 0x"</span> + ex.ErrorCode.ToString(<span style="color:#a31515;">"X"</span>) + <span style="color:#a31515;">" "</span> + ex.Message);
|
||||
}
|
||||
<span style="color:blue;">catch</span> (<span style="color:#2b91af;">Exception</span> ex)
|
||||
{
|
||||
<span style="color:#2b91af;">MessageBox</span>.Show(ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}</pre>
|
||||
<div align="center">
|
||||
<pre style="font-family: Courier New; font-size: 13; color: black; background: white"><font face="Calibri"><a href="#Top">Back to top</a></font></pre>
|
||||
</div>
|
||||
<div align="left">
|
||||
<pre style="font-family: Courier New; font-size: 13; color: black; background: white"><font color="#008000"><a name="Designer"></a>//Form1.Designer.cs</font></pre>
|
||||
</div>
|
||||
<div align="left">
|
||||
<pre style="font-family: Courier New; font-size: 13; color: black; background: white"><span style="color:blue;">namespace</span> UpdateReferencesCSharp
|
||||
{
|
||||
<span style="color:blue;">partial</span> <span style="color:blue;">class</span> <span style="color:#2b91af;">Form1</span>
|
||||
{
|
||||
<span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;"><summary></span>
|
||||
<span style="color:gray;">///</span><span style="color:green;"> Required designer variable.</span>
|
||||
<span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;"></summary></span>
|
||||
<span style="color:blue;">private</span> System.ComponentModel.<span style="color:#2b91af;">IContainer</span> components = <span style="color:blue;">null</span>;
|
||||
|
||||
<span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;"><summary></span>
|
||||
<span style="color:gray;">///</span><span style="color:green;"> Clean up any resources being used.</span>
|
||||
<span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;"></summary></span>
|
||||
<span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;"><param name="disposing"></span><span style="color:green;">true if managed resources should be disposed; otherwise, false.</span><span style="color:gray;"></param></span>
|
||||
<span style="color:blue;">protected</span> <span style="color:blue;">override</span> <span style="color:blue;">void</span> Dispose(<span style="color:blue;">bool</span> disposing)
|
||||
{
|
||||
<span style="color:blue;">if</span> (disposing && (components != <span style="color:blue;">null</span>))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
<span style="color:blue;">base</span>.Dispose(disposing);
|
||||
}
|
||||
|
||||
<span style="color:blue;"> #region</span> Windows Form Designer generated code
|
||||
|
||||
<span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;"><summary></span>
|
||||
<span style="color:gray;">///</span><span style="color:green;"> Required method for Designer support - do not modify</span>
|
||||
<span style="color:gray;">///</span><span style="color:green;"> the contents of this method with the code editor.</span>
|
||||
<span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;"></summary></span>
|
||||
<span style="color:blue;">private</span> <span style="color:blue;">void</span> InitializeComponent()
|
||||
{
|
||||
<span style="color:blue;">this</span>.Label1 = <span style="color:blue;">new</span> System.Windows.Forms.<span style="color:#2b91af;">Label</span>();
|
||||
<span style="color:blue;">this</span>.VaultsComboBox = <span style="color:blue;">new</span> System.Windows.Forms.<span style="color:#2b91af;">ComboBox</span>();
|
||||
<span style="color:blue;">this</span>.FileListBox = <span style="color:blue;">new</span> System.Windows.Forms.<span style="color:#2b91af;">ListBox</span>();
|
||||
<span style="color:blue;">this</span>.BrowseButton = <span style="color:blue;">new</span> System.Windows.Forms.<span style="color:#2b91af;">Button</span>();
|
||||
<span style="color:blue;">this</span>.UpdateReferencesButton = <span style="color:blue;">new</span> System.Windows.Forms.<span style="color:#2b91af;">Button</span>();
|
||||
<span style="color:blue;">this</span>.OpenFileDialog1 = <span style="color:blue;">new</span> System.Windows.Forms.<span style="color:#2b91af;">OpenFileDialog</span>();
|
||||
<span style="color:blue;">this</span>.SuspendLayout();
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:green;">// Label1</span>
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:blue;">this</span>.Label1.AutoSize = <span style="color:blue;">true</span>;
|
||||
<span style="color:blue;">this</span>.Label1.Location = <span style="color:blue;">new</span> System.Drawing.<span style="color:#2b91af;">Point</span>(13, 9);
|
||||
<span style="color:blue;">this</span>.Label1.Name = <span style="color:#a31515;">"Label1"</span>;
|
||||
<span style="color:blue;">this</span>.Label1.Size = <span style="color:blue;">new</span> System.Drawing.<span style="color:#2b91af;">Size</span>(91, 13);
|
||||
<span style="color:blue;">this</span>.Label1.TabIndex = 0;
|
||||
<span style="color:blue;">this</span>.Label1.Text = <span style="color:#a31515;">"Select vault view:"</span>;
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:green;">// VaultsComboBox</span>
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:blue;">this</span>.VaultsComboBox.FormattingEnabled = <span style="color:blue;">true</span>;
|
||||
<span style="color:blue;">this</span>.VaultsComboBox.Location = <span style="color:blue;">new</span> System.Drawing.<span style="color:#2b91af;">Point</span>(16, 26);
|
||||
<span style="color:blue;">this</span>.VaultsComboBox.Name = <span style="color:#a31515;">"VaultsComboBox"</span>;
|
||||
<span style="color:blue;">this</span>.VaultsComboBox.Size = <span style="color:blue;">new</span> System.Drawing.<span style="color:#2b91af;">Size</span>(121, 21);
|
||||
<span style="color:blue;">this</span>.VaultsComboBox.TabIndex = 1;
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:green;">// FileListBox</span>
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:blue;">this</span>.FileListBox.FormattingEnabled = <span style="color:blue;">true</span>;
|
||||
<span style="color:blue;">this</span>.FileListBox.Location = <span style="color:blue;">new</span> System.Drawing.<span style="color:#2b91af;">Point</span>(16, 66);
|
||||
<span style="color:blue;">this</span>.FileListBox.Name = <span style="color:#a31515;">"FileListBox"</span>;
|
||||
<span style="color:blue;">this</span>.FileListBox.Size = <span style="color:blue;">new</span> System.Drawing.<span style="color:#2b91af;">Size</span>(165, 17);
|
||||
<span style="color:blue;">this</span>.FileListBox.TabIndex = 2;
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:green;">// BrowseButton</span>
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:blue;">this</span>.BrowseButton.Location = <span style="color:blue;">new</span> System.Drawing.<span style="color:#2b91af;">Point</span>(206, 66);
|
||||
<span style="color:blue;">this</span>.BrowseButton.Name = <span style="color:#a31515;">"BrowseButton"</span>;
|
||||
<span style="color:blue;">this</span>.BrowseButton.Size = <span style="color:blue;">new</span> System.Drawing.<span style="color:#2b91af;">Size</span>(66, 23);
|
||||
<span style="color:blue;">this</span>.BrowseButton.TabIndex = 3;
|
||||
<span style="color:blue;">this</span>.BrowseButton.Text = <span style="color:#a31515;">"Browse..."</span>;
|
||||
<span style="color:blue;">this</span>.BrowseButton.UseVisualStyleBackColor = <span style="color:blue;">true</span>;
|
||||
<span style="color:blue;">this</span>.BrowseButton.Click += <span style="color:blue;">new</span> System.<span style="color:#2b91af;">EventHandler</span>(<span style="color:blue;">this</span>.BrowseButton_Click);
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:green;">// UpdateReferencesButton</span>
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:blue;">this</span>.UpdateReferencesButton.Location = <span style="color:blue;">new</span> System.Drawing.<span style="color:#2b91af;">Point</span>(16, 113);
|
||||
<span style="color:blue;">this</span>.UpdateReferencesButton.Name = <span style="color:#a31515;">"UpdateReferencesButton"</span>;
|
||||
<span style="color:blue;">this</span>.UpdateReferencesButton.Size = <span style="color:blue;">new</span> System.Drawing.<span style="color:#2b91af;">Size</span>(121, 23);
|
||||
<span style="color:blue;">this</span>.UpdateReferencesButton.TabIndex = 4;
|
||||
<span style="color:blue;">this</span>.UpdateReferencesButton.Text = <span style="color:#a31515;">"Update references"</span>;
|
||||
<span style="color:blue;">this</span>.UpdateReferencesButton.TextAlign = System.Drawing.<span style="color:#2b91af;">ContentAlignment</span>.MiddleLeft;
|
||||
<span style="color:blue;">this</span>.UpdateReferencesButton.UseVisualStyleBackColor = <span style="color:blue;">true</span>;
|
||||
<span style="color:blue;">this</span>.UpdateReferencesButton.Click += <span style="color:blue;">new</span> System.<span style="color:#2b91af;">EventHandler</span>(<span style="color:blue;">this</span>.UpdateReferencesButton_Click);
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:green;">// OpenFileDialog1</span>
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:blue;">this</span>.OpenFileDialog1.FileName = <span style="color:#a31515;">"OpenFileDialog1"</span>;
|
||||
<span style="color:blue;">this</span>.OpenFileDialog1.Multiselect = <span style="color:blue;">true</span>;
|
||||
<span style="color:blue;">this</span>.OpenFileDialog1.Title = <span style="color:#a31515;">"Select a file"</span>;
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:green;">// Form1</span>
|
||||
<span style="color:green;">// </span>
|
||||
<span style="color:blue;">this</span>.AutoScaleDimensions = <span style="color:blue;">new</span> System.Drawing.<span style="color:#2b91af;">SizeF</span>(6F, 13F);
|
||||
<span style="color:blue;">this</span>.AutoScaleMode = System.Windows.Forms.<span style="color:#2b91af;">AutoScaleMode</span>.Font;
|
||||
<span style="color:blue;">this</span>.ClientSize = <span style="color:blue;">new</span> System.Drawing.<span style="color:#2b91af;">Size</span>(284, 161);
|
||||
<span style="color:blue;">this</span>.Controls.Add(<span style="color:blue;">this</span>.UpdateReferencesButton);
|
||||
<span style="color:blue;">this</span>.Controls.Add(<span style="color:blue;">this</span>.BrowseButton);
|
||||
<span style="color:blue;">this</span>.Controls.Add(<span style="color:blue;">this</span>.FileListBox);
|
||||
<span style="color:blue;">this</span>.Controls.Add(<span style="color:blue;">this</span>.VaultsComboBox);
|
||||
<span style="color:blue;">this</span>.Controls.Add(<span style="color:blue;">this</span>.Label1);
|
||||
<span style="color:blue;">this</span>.Name = <span style="color:#a31515;">"Form1"</span>;
|
||||
<span style="color:blue;">this</span>.Text = <span style="color:#a31515;">"Update References"</span>;
|
||||
<span style="color:blue;">this</span>.Load += <span style="color:blue;">new</span> System.<span style="color:#2b91af;">EventHandler</span>(<span style="color:blue;">this</span>.Form1_Load);
|
||||
<span style="color:blue;">this</span>.ResumeLayout(<span style="color:blue;">false</span>);
|
||||
<span style="color:blue;">this</span>.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
<span style="color:blue;"> #endregion</span>
|
||||
|
||||
<span style="color:blue;">private</span> System.Windows.Forms.<span style="color:#2b91af;">Label</span> Label1;
|
||||
<span style="color:blue;">private</span> System.Windows.Forms.<span style="color:#2b91af;">ComboBox</span> VaultsComboBox;
|
||||
<span style="color:blue;">private</span> System.Windows.Forms.<span style="color:#2b91af;">ListBox</span> FileListBox;
|
||||
<span style="color:blue;">private</span> System.Windows.Forms.<span style="color:#2b91af;">Button</span> BrowseButton;
|
||||
<span style="color:blue;">private</span> System.Windows.Forms.<span style="color:#2b91af;">Button</span> UpdateReferencesButton;
|
||||
<span style="color:blue;">private</span> System.Windows.Forms.<span style="color:#2b91af;">OpenFileDialog</span> OpenFileDialog1;
|
||||
}
|
||||
}</pre>
|
||||
</div>
|
||||
<div align="center">
|
||||
<pre style="font-family: Courier New; font-size: 13; color: black; background: white"><font face="Calibri"><a href="#Top">Back to top</a></font></pre>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user