Stock chosingcombo implemented in also created registerwindow

This commit is contained in:
2021-01-18 21:48:24 +01:00
parent 2dd9eae9c3
commit a87f91b921
5 changed files with 223 additions and 4 deletions

View File

@ -0,0 +1,46 @@
using StockDomain;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RepositoryPattern
{
public partial class frmRegisterStock : Form
{
public Dictionary<string, DiTraderStockRow> Stocks { get; set; }
public frmRegisterStock()
{
InitializeComponent();
}
private void LoadStockCombo()
{
if (Stocks.Count() > 0)
{
foreach(var key in Stocks.Keys)
{
cmbStockChoser.Items.Add(key);
}
}
}
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
private void frmRegisterStock_Shown(object sender, EventArgs e)
{
LoadStockCombo();
}
}
}