This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using PortableClient.WebApi.Dal.Interfaces; | |
using RecordKeeper.Portable.Models; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
namespace PortableClient.WebApi.Dal.Services | |
{ | |
public class AlbumFormatService : IEntityService<AlbumFormat> | |
{ | |
private static readonly string API_PATH = "AlbumFormat"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlbumFormatService _service; | |
public frmMain() | |
{ | |
InitializeComponent(); | |
_service = new AlbumFormatService(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void cmdGetFormats_Click(object sender, EventArgs e) | |
{ | |
lbFormats.DataSource = (await _service.Get()).ToList(); | |
lbFormats.DisplayMember = "Description"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<clear/> | |
</rules> | |
</rewrite> | |
</system.webServer> | |
</configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If chkRailCar.Checked = True Then C1 = C1 & "Y" Else C1 = C1 & "N" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C1 &= IIf(chkRailCar.Checked, "Y", "N") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If Mid(C1, 40, 1) = "Y" Then | |
C1GridView1.Columns.ColumnByName("Age Allocated").Visible = True | |
Else | |
C1GridView1.Columns.ColumnByName("Age Allocated").Visible = False | |
End If |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C1GridView1.Columns.ColumnByName("Age Allocated").Visible = Mid(C1, 40, 1) = "Y" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Enum trafficLightEnum | |
Red | |
Yellow | |
Green | |
End Enum |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim lightState as trafficLightEnum | |
lightState = trafficLightEnum.Yellow | |
If lightState = trafficLightEnum.Red Then | |
Vehicle.Stop() | |
Else If lightState = trafficLightEnum.Green Then | |
Vehicle.Go() | |
Else If lightState = trafficLightEnum.Yellow Then | |
Vehicle.FloorIt() | |
End If |