RadioDld.Status.ShowDialog C# (CSharp) Method

ShowDialog() public method

public ShowDialog ( Form parent, MethodInvoker work ) : DialogResult
parent System.Windows.Forms.Form
work MethodInvoker
return DialogResult
        public DialogResult ShowDialog(Form parent, MethodInvoker work)
        {
            this.work = work;
            return this.ShowDialog(parent);
        }

Same methods

Status::ShowDialog ( MethodInvoker work ) : DialogResult

Usage Example

Ejemplo n.º 1
0
        private DataSearch()
        {
            Dictionary<string, string[]> tableCols = new Dictionary<string, string[]>();
            tableCols.Add("downloads", new string[] { "name", "description" });

            if (this.NeedRebuild(tableCols))
            {
                // Close & clean up the connection used for testing
                dbConn.Close();
                dbConn.Dispose();
                dbConn = null;

                using (Status status = new Status())
                {
                    status.ShowDialog(delegate
                    {
                        this.RebuildIndex(status, tableCols);
                    });
                }
            }

            Model.Download.Added += this.Download_Added;
            Model.Download.Updated += this.Download_Updated;
            Model.Download.Removed += this.Download_Removed;
            DownloadManager.Progress += this.Download_Progress;
        }
All Usage Examples Of RadioDld.Status::ShowDialog