private void miSwitchFolder_Click(object sender, EventArgs e) { int num1 = StockDB.NextFolderId(this.FolderId); if (num1 != 0) { this.FolderId = num1; } }
private void miGotoFavorite_Click(object sender, EventArgs e) { if (this.FolderId == StockDB.CurrentFavoriteId) { this.FolderId = StockDB.NextFolderId(this.FolderId); StockDB.CurrentFavoriteId = this.FolderId; } else { this.FolderId = StockDB.CurrentFavoriteId; } }