Example #1
0
        private DialogAddSoft StartAddDialog()
        {
            var dialog = new DialogAddSoft
            {
                Owner = this
            };

            dialog.Closed += (sender, args) =>
            {
                AddSoftInfo(dialog.SoftInfo);
            };
            dialog.ShowDialog();
            return(dialog);
        }
Example #2
0
        private void StartAddDialog(Queue <string> files)
        {
            if (files.Count == 0)
            {
                return;
            }
            var file   = files.Dequeue();
            var dialog = new DialogAddSoft
            {
                Owner = this,
                Path  = file
            };

            dialog.Closed += (sender, args) =>
            {
                if (dialog.SoftInfo != null)
                {
                    AddSoftInfo(dialog.SoftInfo);
                }
                StartAddDialog(files);
            };
            dialog.ShowDialog();
        }
 private void StartAddDialog(Queue<string> files)
 {
     if (files.Count == 0)
     {
         return;
     }
     var file = files.Dequeue();
     var dialog = new DialogAddSoft
     {
         Owner = this,
         Path = file
     };
     dialog.Closed += (sender, args) =>
     {
         if (dialog.SoftInfo != null)
         {
             AddSoftInfo(dialog.SoftInfo);
         }
         StartAddDialog(files);
     };
     dialog.ShowDialog();
 }
 private DialogAddSoft StartAddDialog()
 {
     var dialog = new DialogAddSoft
     {
         Owner = this
     };
     dialog.Closed += (sender, args) =>
     {
         AddSoftInfo(dialog.SoftInfo);
     };
     dialog.ShowDialog();
     return dialog;
 }