예제 #1
0
 private void i2g_Completed(object sender, Iso2GodCompletedArgs e)
 {
     foreach (ListViewItem item in this.listView1.Items)
     {
         IsoEntry tag = (IsoEntry)item.Tag;
         if (tag.Status == IsoEntryStatus.InProgress)
         {
             ProgressBar embeddedControl = (ProgressBar)this.listView1.GetEmbeddedControl(5, item.Index);
             if ((bool)Chilano.Iso2God.Properties.Settings.Default["FtpUpload"])
             {
                 tag.Status            = IsoEntryStatus.UploadQueue;
                 tag.ID.ContainerID    = e.ContainerId;
                 embeddedControl.Value = 0;
                 item.SubItems[6].Text = "Queued for upload.";
                 this.ftpCheck.Enabled = true;
             }
             else
             {
                 tag.Status            = IsoEntryStatus.Completed;
                 embeddedControl.Value = 100;
                 item.SubItems[6].Text = e.Message + ((e.Error != null) ? (". Error: " + e.Error.Message) : "");
                 FlashWindow(base.Handle, false);
             }
             this.jobCheck.Enabled = true;
             item.Tag       = tag;
             item.ForeColor = Color.Green;
             break;
         }
     }
 }
예제 #2
0
 protected virtual void OnCompleted(Iso2GodCompletedArgs e)
 {
     if (this.Completed != null)
     {
         this.Completed(this, e);
     }
 }
예제 #3
0
 private void i2g_Completed(object sender, Iso2GodCompletedArgs e)
 {
     foreach (ListViewItem item in this.listView1.Items)
     {
         IsoEntry tag = (IsoEntry) item.Tag;
         if (tag.Status == IsoEntryStatus.InProgress)
         {
             ProgressBar embeddedControl = (ProgressBar) this.listView1.GetEmbeddedControl(5, item.Index);
             if ((bool) Chilano.Iso2God.Properties.Settings.Default["FtpUpload"])
             {
                 tag.Status = IsoEntryStatus.UploadQueue;
                 tag.ID.ContainerID = e.ContainerId;
                 embeddedControl.Value = 0;
                 item.SubItems[6].Text = "Queued for upload.";
                 this.ftpCheck.Enabled = true;
             }
             else
             {
                 tag.Status = IsoEntryStatus.Completed;
                 embeddedControl.Value = 100;
                 item.SubItems[6].Text = e.Message + ((e.Error != null) ? (". Error: " + e.Error.Message) : "");
                 FlashWindow(base.Handle, false);
             }
             this.jobCheck.Enabled = true;
             item.Tag = tag;
             item.ForeColor = Color.Green;
             break;
         }
     }
 }
예제 #4
0
 protected virtual void OnCompleted(Iso2GodCompletedArgs e)
 {
     if (this.Completed != null)
     {
         this.Completed(this, e);
     }
 }