-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from KarkuvelRajan/WPF-868567_Add_Symbol_Design…
…er_Sample_in_Winforms_Diagram_Examples Symbol Designer sample is added to this repository
- Loading branch information
Showing
17 changed files
with
9,792 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Symbol Designer sample | ||
|
||
This sample will help us to create new Symbols and can save them as a Symbol Palatte and used them in your application. | ||
|
||
__*Documentation*__: https://help.syncfusion.com/windowsforms/diagram/getting-started#symbol-designer | ||
|
||
## Project pre-requisites | ||
To run this application, you need to have the below two in your system | ||
|
||
* [Visual Studio 2019](https://www.visualstudio.com/wpf-vs) | ||
* [Syncfusion.Diagram.Windows](https://www.nuget.org/packages/Syncfusion.Diagram.Windows/) nuget package. To install the package using NuGet Package Manager, refer this [link](https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio#nuget-package-manager). | ||
* [Syncfusion.Diagram.Utility.Windows](https://www.nuget.org/packages/Syncfusion.Diagram.Utility.Windows/) nuget package. To install the package using NuGet Package Manager, refer this [link](https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio#nuget-package-manager). | ||
* [Syncfusion.Tools.Windows](https://www.nuget.org/packages/Syncfusion.Tools.Windows/) nuget package. To install the package using NuGet Package Manager, refer this [link](https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio#nuget-package-manager). | ||
|
||
## Deploying and running the sample | ||
* To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
#region Copyright Syncfusion Inc. 2001 - 2009 | ||
// | ||
// Copyright Syncfusion Inc. 2001 - 2009. All rights reserved. | ||
// | ||
// Use of this code is subject to the terms of our license. | ||
// A copy of the current license can be obtained at any time by e-mailing | ||
// licensing@syncfusion.com. Any infringement will be prosecuted under | ||
// applicable laws. | ||
// | ||
#endregion | ||
|
||
using System; | ||
using System.Drawing; | ||
using System.Collections; | ||
using System.ComponentModel; | ||
using System.Reflection; | ||
using System.Windows.Forms; | ||
|
||
namespace Syncfusion.Windows.Forms.Diagram.Samples.DiagramTool | ||
{ | ||
/// <summary> | ||
/// Summary description for About. | ||
/// </summary> | ||
public class About : Office2007Form | ||
{ | ||
private System.Windows.Forms.Label label1; | ||
private ButtonAdv btnOk; | ||
/// <summary> | ||
/// Required designer variable. | ||
/// </summary> | ||
private System.ComponentModel.Container components = null; | ||
|
||
public About() | ||
{ | ||
// | ||
// Required for Windows Form Designer support | ||
// | ||
InitializeComponent(); | ||
this.ColorScheme = Office2007Theme.Silver; | ||
|
||
// | ||
// TODO: Add any constructor code after InitializeComponent call | ||
// | ||
} | ||
|
||
/// <summary> | ||
/// Clean up any resources being used. | ||
/// </summary> | ||
protected override void Dispose( bool disposing ) | ||
{ | ||
if( disposing ) | ||
{ | ||
if(components != null) | ||
{ | ||
components.Dispose(); | ||
} | ||
} | ||
base.Dispose( disposing ); | ||
} | ||
|
||
#region Windows Form Designer generated code | ||
/// <summary> | ||
/// Required method for Designer support - do not modify | ||
/// the contents of this method with the code editor. | ||
/// </summary> | ||
private void InitializeComponent() | ||
{ | ||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(About)); | ||
this.label1 = new System.Windows.Forms.Label(); | ||
this.btnOk = new Syncfusion.Windows.Forms.ButtonAdv(); | ||
this.SuspendLayout(); | ||
// | ||
// label1 | ||
// | ||
this.label1.AutoSize = true; | ||
this.label1.BackColor = System.Drawing.Color.Transparent; | ||
this.label1.Location = new System.Drawing.Point(18, 93); | ||
this.label1.Name = "label1"; | ||
this.label1.Size = new System.Drawing.Size(268, 104); | ||
this.label1.TabIndex = 0; | ||
this.label1.Text = resources.GetString("label1.Text"); | ||
// | ||
// btnOk | ||
// | ||
this.btnOk.Appearance = Syncfusion.Windows.Forms.ButtonAppearance.Office2007; | ||
this.btnOk.Location = new System.Drawing.Point(228, 226); | ||
this.btnOk.Name = "btnOk"; | ||
this.btnOk.Size = new System.Drawing.Size(75, 23); | ||
this.btnOk.TabIndex = 1; | ||
this.btnOk.Text = "OK"; | ||
this.btnOk.UseVisualStyle = true; | ||
this.btnOk.Click += new System.EventHandler(this.btnOk_Click); | ||
// | ||
// About | ||
// | ||
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); | ||
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage"))); | ||
this.ClientSize = new System.Drawing.Size(314, 256); | ||
this.Controls.Add(this.btnOk); | ||
this.Controls.Add(this.label1); | ||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; | ||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); | ||
this.MaximizeBox = false; | ||
this.MinimizeBox = false; | ||
this.Name = "About"; | ||
this.ShowInTaskbar = false; | ||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; | ||
this.Text = "About"; | ||
this.ResumeLayout(false); | ||
this.PerformLayout(); | ||
|
||
} | ||
#endregion | ||
|
||
private void btnOk_Click(object sender, System.EventArgs e) | ||
{ | ||
this.Close(); | ||
} | ||
} | ||
} |
Oops, something went wrong.