Exemple #1
0
        private void _ReadyForUpdate(UpdateThread.SchemaInfoEventArgs e)
        {
            _UpdateThread.Cancel   = false;
            MyCancelButton.Enabled = true;
            MyCancelButton.Visible = false;
            updatebutton.Enabled   = true;
            schemacombobox.Enabled = true;

            _SetUpdateButtonVisible(e);
        }
Exemple #2
0
 private void _SetUpdateButtonVisible(UpdateThread.SchemaInfoEventArgs e)
 {
     //if( e.CurrentSchemaVersion == e.MinimumSchemaVersion ||
     //    ( e.LatestSchemaVersion.CycleIteration == e.CurrentSchemaVersion.CycleIteration &&
     //      e.LatestSchemaVersion.ReleaseIdentifier == e.CurrentSchemaVersion.ReleaseIdentifier &&
     //      e.LatestSchemaVersion.ReleaseIteration > e.CurrentSchemaVersion.ReleaseIteration ) )
     //{
     //    updatebutton.Visible = true;
     //}
     //else
     //{
     updatebutton.Visible = true;
     //}
 }
Exemple #3
0
        private void _InitSchemaInfo(UpdateThread.SchemaInfoEventArgs e)
        {
            if ((null != e.MinimumSchemaVersion) && (null != e.CurrentSchemaVersion) && (null != e.LatestSchemaVersion))
            {
                minimumversion.Text        = e.MinimumSchemaVersion.ToString();
                currentschemaversion.Text  = e.CurrentSchemaVersion.ToString();
                updatetoschemaversion.Text = e.LatestSchemaVersion.ToString();
            }

            _SetUpdateButtonVisible(e);

            historygrid.DataSource = e.UpdateHistoryTable;
            historygrid.Columns["version"].DisplayIndex    = 0;
            historygrid.Columns["version"].Width           = 50;
            historygrid.Columns["updatedate"].DisplayIndex = 1;
            historygrid.Columns["updatedate"].Width        = 120;
            historygrid.Columns["log"].DisplayIndex        = 2;
            historygrid.Columns["log"].Width = 200;
        }
Exemple #4
0
 void _UpdateThread_OnUpdateDone(UpdateThread.SchemaInfoEventArgs e)
 {
     updatebutton.BeginInvoke(new ReadyForUpdateHandler(_ReadyForUpdate), new object[] { e });
 }
Exemple #5
0
 void _UpdateThread_OnGetSchemaInfo(UpdateThread.SchemaInfoEventArgs e)
 {
     historygrid.BeginInvoke(new InitSchemaInfoHandler(_InitSchemaInfo), new object[] { e });
 }