コード例 #1
0
 private void cleanBuffer()
 {
     this.music.disconnectFromservver();
     this.music.Dispose();
     this.music.music_player.WindowCLosedstop();
     this.weather.Dispose();
     this.alarm.Dispose();
     this.music   = null;
     this.weather = null;
     this.alarm   = null;
 }
コード例 #2
0
 public Home()
 {
     splash();
     logorReg();
     InitializeComponent();
     weather      = new Weather();
     music        = new Music_and_Chatting(user_now);
     alarm        = new AlarmPage(user_now);
     act_list     = new ActivityList(user_now);
     email_f      = new GmailSender(user_now);
     act_settings = new Account_Settings(user_now);
     //user_now = new PersonalActivityReferences.LibraryStorage.UserStorage();
     panel3.BackColor     = Color.FromArgb(180, Color.DeepSkyBlue);
     panel6.BackColor     = Color.FromArgb(180, Color.LightPink);
     panel8.BackColor     = Color.FromArgb(180, Color.Orange);
     panel13.BackColor    = Color.FromArgb(180, Color.LimeGreen);
     panel14.BackColor    = Color.FromArgb(180, Color.Navy);
     this.label11.Text    = user_now.getOnlineUserInformation()[0];
     this.timer1.Interval = 1000;
     this.timer1.Enabled  = true;
 }