//--- 程序主入口 public MainWindow() { InitializeComponent(); visualEffectAnimation = new VisualEffectAnimation(); virtualPeronality = new VirtualPersonality(ref virtualPersonalityCarrier, ref textBubbleCarrier, ref word); virtualPeronality.BindBackground(ref virtualImage); virtualPeronality.SetSpeakFrequency(100); clock = new Clock(ref clockCarrier); clock.BindBackground(ref clockImage); alarm = new Alarm(ref alarmCarrier, ref alarmListCarrier, ref musicName); alarm.BindBackground(ref alarmImage); alarm.BindActivatedCarrier(ref alarmActivatedCarrier); miniNote = new Note(ref noteCarrier, ref noteText); miniNote.BindBackground(ref noteImage); miniNote.SetDatabaseTable("mininote"); miniNote.LoadData(); bigNote = new Note(ref bignoteCarrier, ref bignoteText); bigNote.SetInvisible(); bigNote.BindBackground(ref noteImage); bigNote.SetDatabaseTable("bignote"); bigNote.LoadData(); this.ShowInTaskbar = false; }