@@ -11,11 +11,11 @@ namespace Intersect.Editor.Forms.Editors;
1111public partial class FrmTime : Form
1212{
1313
14- private TimeBase mBackupTime ;
14+ private DaylightCycleDescriptor mBackupTime ;
1515
1616 private Bitmap mTileBackbuffer ;
1717
18- private TimeBase mYTime ;
18+ private DaylightCycleDescriptor mYTime ;
1919
2020 public FrmTime ( )
2121 {
@@ -45,32 +45,32 @@ private void InitLocalization()
4545 btnCancel . Text = Strings . TimeEditor . cancel ;
4646 }
4747
48- public void InitEditor ( TimeBase time )
48+ public void InitEditor ( DaylightCycleDescriptor time )
4949 {
5050 //Create a backup in case we want to revert
5151 mYTime = time ;
52- mBackupTime = new TimeBase ( ) ;
52+ mBackupTime = new DaylightCycleDescriptor ( ) ;
5353 mBackupTime . LoadFromJson ( time . GetInstanceJson ( ) ) ;
5454
5555 mTileBackbuffer = new Bitmap ( pnlColor . Width , pnlColor . Height ) ;
56- UpdateList ( TimeBase . GetTimeInterval ( cmbIntervals . SelectedIndex ) ) ;
56+ UpdateList ( DaylightCycleDescriptor . GetTimeInterval ( cmbIntervals . SelectedIndex ) ) ;
5757 typeof ( Panel ) . InvokeMember (
5858 "DoubleBuffered" , BindingFlags . SetProperty | BindingFlags . Instance | BindingFlags . NonPublic , null ,
5959 pnlColor , new object [ ] { true }
6060 ) ;
6161
6262 chkSync . Checked = mYTime . SyncTime ;
6363 txtTimeRate . Text = mYTime . Rate . ToString ( ) ;
64- cmbIntervals . SelectedIndex = TimeBase . GetIntervalIndex ( mYTime . RangeInterval ) ;
64+ cmbIntervals . SelectedIndex = DaylightCycleDescriptor . GetIntervalIndex ( mYTime . RangeInterval ) ;
6565 UpdateList ( mYTime . RangeInterval ) ;
6666 txtTimeRate . Enabled = ! mYTime . SyncTime ;
6767 }
6868
6969 private void cmbIntervals_SelectedIndexChanged ( object sender , EventArgs e )
7070 {
71- if ( mYTime . RangeInterval != TimeBase . GetTimeInterval ( cmbIntervals . SelectedIndex ) )
71+ if ( mYTime . RangeInterval != DaylightCycleDescriptor . GetTimeInterval ( cmbIntervals . SelectedIndex ) )
7272 {
73- mYTime . RangeInterval = TimeBase . GetTimeInterval ( cmbIntervals . SelectedIndex ) ;
73+ mYTime . RangeInterval = DaylightCycleDescriptor . GetTimeInterval ( cmbIntervals . SelectedIndex ) ;
7474 UpdateList ( mYTime . RangeInterval ) ;
7575 mYTime . ResetColors ( ) ;
7676 grpRangeOptions . Hide ( ) ;
0 commit comments