10-01
This commit is contained in:
@@ -11,15 +11,15 @@ namespace FCM0000
|
||||
{
|
||||
public partial class fLovProject : Form
|
||||
{
|
||||
public string ProjectName { get; set; }
|
||||
public int Project { get; set; }
|
||||
public string Title { get; set; }
|
||||
public int Index { get; set; }
|
||||
|
||||
string keyword = string.Empty;
|
||||
public fLovProject(string search_)
|
||||
{
|
||||
InitializeComponent();
|
||||
ProjectName = string.Empty;
|
||||
Project = -1;
|
||||
Title = string.Empty;
|
||||
Index = -1;
|
||||
|
||||
this.keyword = search_;
|
||||
this.KeyPreview = true;
|
||||
@@ -56,18 +56,18 @@ namespace FCM0000
|
||||
var drv = bs.Current as DataRowView;
|
||||
if (drv == null)
|
||||
{
|
||||
ProjectName = string.Empty;
|
||||
Project = -1;
|
||||
Title = string.Empty;
|
||||
Index = -1;
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
var dr = drv.Row as dsMSSQL.ProjectsRow;
|
||||
Project = dr.idx;
|
||||
ProjectName = dr.name;
|
||||
Index = dr.idx;
|
||||
Title = dr.name;
|
||||
}
|
||||
|
||||
if (ProjectName.isEmpty() || Project == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
if (Title.isEmpty() || Index == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
else DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user