Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Toolkit For Net Standard & Net Core + Update The Targeted Framework #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
454 changes: 454 additions & 0 deletions .gitignore

Large diffs are not rendered by default.

449 changes: 449 additions & 0 deletions VFPToolkitNET_CSharpNET_NetCore/Arrays.cs

Large diffs are not rendered by default.

111 changes: 111 additions & 0 deletions VFPToolkitNET_CSharpNET_NetCore/BrowseForm.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//using System.Windows.Forms;

//namespace VFPToolkitNET_CSharpNET_NetCore
//{
public class BrowseForm : System.Windows.Forms.Form
{
private System.Windows.Forms.DataGridView grdBrowse;
internal System.Windows.Forms.Button cmdClose;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;

public BrowseForm()
{
InitializeComponent();
}

/// <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()
{
this.grdBrowse = new System.Windows.Forms.DataGridView();
this.cmdClose = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.grdBrowse)).BeginInit();
this.SuspendLayout();
//
// grdBrowse
//
this.grdBrowse.Dock = System.Windows.Forms.DockStyle.Fill;
this.grdBrowse.ColumnHeadersDefaultCellStyle.ForeColor = System.Drawing.SystemColors.ControlText;
this.grdBrowse.Location = new System.Drawing.Point(0, 0);
this.grdBrowse.Name = "grdBrowse";
this.grdBrowse.ReadOnly = true;
this.grdBrowse.Size = new System.Drawing.Size(488, 389);
this.grdBrowse.TabIndex = 0;
//
// cmdClose
//
this.cmdClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cmdClose.Location = new System.Drawing.Point(428, 344);
this.cmdClose.Name = "cmdClose";
this.cmdClose.Size = new System.Drawing.Size(48, 33);
this.cmdClose.TabIndex = 3;
this.cmdClose.Text = "Close";
this.cmdClose.Click += new System.EventHandler(this.cmdClose_Click);
//
// BrowseForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.CancelButton = this.cmdClose;
this.ClientSize = new System.Drawing.Size(488, 389);
this.Controls.Add(this.grdBrowse);
this.Controls.Add(this.cmdClose);
this.KeyPreview = true;
this.Name = "BrowseForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "VFP Toolkit for .NET - Browse";
((System.ComponentModel.ISupportInitialize)(this.grdBrowse)).EndInit();
this.ResumeLayout(false);

}
#endregion

/// <summary>
/// Sets the datasource of the grid
/// </summary>
/// <param name="toView"></param>
public void SetData(System.Data.DataView toView)
{
this.grdBrowse.DataSource = toView;
this.Text = toView.Table.TableName;
}

/// <summary>
/// Close the form when done. This button is hidden behind the datagrid (Another trick <g> not in the books)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void cmdClose_Click(object sender, System.EventArgs e)
{
this.Close();
}
}
//}
60 changes: 60 additions & 0 deletions VFPToolkitNET_CSharpNET_NetCore/BrowseForm.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
Loading