/// <summary> /// 生成函数 /// </summary> public Form1() { InitializeComponent(); sgworld = new SGWorld65(); sgworld.OnFrame+=sgworld_OnFrame; timer1.Enabled = true; }
private DateTime wavemovestarttime; //脉冲波束运动用的 #endregion Fields #region Constructors /// <summary> /// 静态构造函数 /// </summary> static SARSYS() { SARsyslist = new ArrayList(); sgworld = new SGWorld65(); SARSYS.sarsysnumchanged += SARSYS_sarsysnumchanged; SARSYS.objshallenddemo+=SARSYS_objshallenddemo; SARSYS.Propertybeedit+=SARSYS_Propertybeedit; }
private void trackTime_ValueChanged(object sender, EventArgs e) { double t = (double)(trackTime.Value - trackTime.Minimum) / (trackTime.Maximum - trackTime.Minimum); int t2 = (int)((eTime.DayOfYear - sTime.DayOfYear) * t); DateTime dt = sTime.AddDays(t2); trackTime.KeyTips = dt.ToString(); Console.WriteLine(dt.ToString()); var sgworld = new SGWorld65(); sgworld.DateTime.Current = dt; trackTime.ShowToolTip(); }