Пример #1
0
 public SaveDataForm(SaveDataProgress progress, string setingsKey)
 {
     InitializeComponent();
     saveDataFrame1.Progress  = progress;
     m_settingsKey            = setingsKey;
     chbDontShowAgain.Visible = pictureBox1.Visible = m_settingsKey != null;
 }
Пример #2
0
        private void ShowData()
        {
            var p = m_progress;

            if (p == null)
            {
                p = new SaveDataProgress();
            }
            labFinishedDeleted.Text       = p.FinishedDeleted.ToString();
            labFinishedInserted.Text      = p.FinishedInserted.ToString();
            labFinishedUpdatedRows.Text   = p.FinishedUpdatedRows.ToString();
            labFinishedUpdatedFields.Text = p.FinishedUpdatedFields.ToString();
            labAllDeleted.Text            = p.AllDeleted.ToString();
            labAllInserted.Text           = p.AllInserted.ToString();
            labAllUpdatedRows.Text        = p.AllUpdatedRows.ToString();
            labAllUpdatedFields.Text      = p.AllUpdatedFields.ToString();
            progressBar1.Maximum          = p.AllDeleted + p.AllInserted + p.AllUpdatedRows;
            progressBar1.Value            = p.FinishedDeleted + p.FinishedInserted + p.FinishedUpdatedRows;
            btnCancel.Enabled             = !p.IsFinished;

            m_pendingChanges = false;
        }
Пример #3
0
 void SaveDataFrame_Disposed(object sender, EventArgs e)
 {
     m_progress = null;
 }