Async stop
This commit is contained in:
parent
1cd71c54fc
commit
80fcaa6fd0
4 changed files with 81 additions and 71 deletions
60
imagecatalog/MainForm.Designer.cs
generated
60
imagecatalog/MainForm.Designer.cs
generated
|
|
@ -41,11 +41,11 @@ namespace ImageCatalog
|
|||
ProgressBar1 = new ProgressBar();
|
||||
CheckBox22 = new CheckBox();
|
||||
Label43 = new Label();
|
||||
bindingSource1 = new BindingSource(components);
|
||||
dataModelBindingSource = new BindingSource(components);
|
||||
TabControl1 = new TabControl();
|
||||
TabPage5 = new TabPage();
|
||||
button1 = new Button();
|
||||
bindingSource1 = new BindingSource(components);
|
||||
dataModelBindingSource = new BindingSource(components);
|
||||
btnTest = new Button();
|
||||
GroupBox11 = new GroupBox();
|
||||
Panel3 = new Panel();
|
||||
|
|
@ -181,10 +181,10 @@ namespace ImageCatalog
|
|||
_btnCreaCatalogoAsync = new Button();
|
||||
timer1 = new System.Windows.Forms.Timer(components);
|
||||
dataModelBindingSource1 = new BindingSource(components);
|
||||
TabControl1.SuspendLayout();
|
||||
TabPage5.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)bindingSource1).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)dataModelBindingSource).BeginInit();
|
||||
TabControl1.SuspendLayout();
|
||||
TabPage5.SuspendLayout();
|
||||
GroupBox11.SuspendLayout();
|
||||
Panel3.SuspendLayout();
|
||||
GroupBox3.SuspendLayout();
|
||||
|
|
@ -240,6 +240,14 @@ namespace ImageCatalog
|
|||
Label43.Text = "000";
|
||||
Label43.TextAlign = ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// bindingSource1
|
||||
//
|
||||
bindingSource1.DataSource = dataModelBindingSource;
|
||||
//
|
||||
// dataModelBindingSource
|
||||
//
|
||||
dataModelBindingSource.DataSource = typeof(ImageCatalog_2.DataModel);
|
||||
//
|
||||
// TabControl1
|
||||
//
|
||||
TabControl1.Controls.Add(TabPage5);
|
||||
|
|
@ -283,14 +291,6 @@ namespace ImageCatalog
|
|||
button1.Text = "Test Async";
|
||||
button1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// bindingSource1
|
||||
//
|
||||
bindingSource1.DataSource = dataModelBindingSource;
|
||||
//
|
||||
// dataModelBindingSource
|
||||
//
|
||||
dataModelBindingSource.DataSource = typeof(ImageCatalog_2.DataModel);
|
||||
//
|
||||
// btnTest
|
||||
//
|
||||
btnTest.DataBindings.Add(new Binding("Command", bindingSource1, "TestCommand", true));
|
||||
|
|
@ -1698,14 +1698,14 @@ namespace ImageCatalog
|
|||
// _Button7
|
||||
//
|
||||
_Button7.DataBindings.Add(new Binding("Enabled", bindingSource1, "UiDisabled", true, DataSourceUpdateMode.OnPropertyChanged));
|
||||
_Button7.Font = new Font("Microsoft Sans Serif", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
||||
_Button7.DataBindings.Add(new Binding("Command", bindingSource1, "AsyncCancelOperationCommand", true));
|
||||
_Button7.Font = new Font("Microsoft Sans Serif", 14.25F, FontStyle.Bold, GraphicsUnit.Point, 0);
|
||||
_Button7.Location = new Point(1168, 296);
|
||||
_Button7.Margin = new Padding(6, 8, 6, 8);
|
||||
_Button7.Name = "_Button7";
|
||||
_Button7.Size = new Size(416, 99);
|
||||
_Button7.TabIndex = 61;
|
||||
_Button7.Text = "stop creazione";
|
||||
_Button7.Click += Button7_Click;
|
||||
_Button7.Text = "STOP";
|
||||
//
|
||||
// _Button5
|
||||
//
|
||||
|
|
@ -1826,10 +1826,10 @@ namespace ImageCatalog
|
|||
Name = "MainForm";
|
||||
Text = "Image Catalog";
|
||||
Load += Form1_Load;
|
||||
TabControl1.ResumeLayout(false);
|
||||
TabPage5.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)bindingSource1).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)dataModelBindingSource).EndInit();
|
||||
TabControl1.ResumeLayout(false);
|
||||
TabPage5.ResumeLayout(false);
|
||||
GroupBox11.ResumeLayout(false);
|
||||
GroupBox11.PerformLayout();
|
||||
Panel3.ResumeLayout(false);
|
||||
|
|
@ -2216,31 +2216,7 @@ namespace ImageCatalog
|
|||
}
|
||||
}
|
||||
|
||||
private Button _Button7;
|
||||
|
||||
internal Button Button7
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.Synchronized)]
|
||||
get
|
||||
{
|
||||
return _Button7;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_Button7 != null)
|
||||
{
|
||||
_Button7.Click -= Button7_Click;
|
||||
}
|
||||
|
||||
_Button7 = value;
|
||||
if (_Button7 != null)
|
||||
{
|
||||
_Button7.Click += Button7_Click;
|
||||
}
|
||||
}
|
||||
}
|
||||
private Button _Button7;
|
||||
|
||||
private Button _Button5;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue