2using System.Collections.Generic;
8using System.Threading.Tasks;
34 InitializeComponent();
42 get {
return m_selectedGym; }
45 private void FormGyms_Load(
object sender, EventArgs e)
49 ListViewItem lvi =
new ListViewItem(igym.
Name);
52 lstItems.Items.Add(lvi);
56 private void timerUI_Tick(
object sender, EventArgs e)
58 if (lstItems.SelectedItems.Count == 0)
59 btnOpen.Enabled =
false;
61 btnOpen.Enabled =
true;
64 private void btnOpen_Click(
object sender, EventArgs e)
66 m_selectedGym = lstItems.SelectedItems[0].Tag as IXMyCaffeGym;
69 private void lstItems_MouseDoubleClick(
object sender, MouseEventArgs e)
71 ListViewHitTestInfo hti = lstItems.HitTest(e.Location);
75 m_selectedGym = hti.Item.Tag as IXMyCaffeGym;
76 DialogResult = DialogResult.OK;
The GymCollection contains the available Gyms.
The IXMyCaffeGym interface is used to interact with each Gym.
string Name
Returns the name of the gym.
The MyCaffe.gym namespace contains all classes related to the Gym's supported by MyCaffe.