void Buttons_Click(object sender, EventArgs e)
{
ToolStripButton button = (ToolStripButton)sender;
string name = button.Name;
if (name == "tsbtnSelectAll")
{
if (currentSlotType == SlotTypes.Open)
bannedEntryIndicators.Clear();
else if (currentSlotType == SlotTypes.OpenFilter)
bannedEntryFilterIndicators.Clear();
else if (currentSlotType == SlotTypes.Close)
bannedExitIndicators.Clear();
else if (currentSlotType == SlotTypes.CloseFilter)
bannedExitFilterIndicators.Clear();
ArrangeIndicatorsSlots();
SetStatusButton();
}
else if (name == "tsbtnSelectNone")
{
if (currentSlotType == SlotTypes.Open)
{
bannedEntryIndicators.Clear();
bannedEntryIndicators.AddRange(Indicator_Store.OpenPointIndicators.GetRange(0, Indicator_Store.OpenPointIndicators.Count));
}
else if (currentSlotType == SlotTypes.OpenFilter){
bannedEntryFilterIndicators.Clear();
bannedEntryFilterIndicators.AddRange(Indicator_Store.OpenFilterIndicators.GetRange(0, Indicator_Store.OpenFilterIndicators.Count));
}
else if (currentSlotType == SlotTypes.Close)
{
bannedExitIndicators.Clear();
bannedExitIndicators.AddRange(Indicator_Store.ClosePointIndicators.GetRange(0, Indicator_Store.ClosePointIndicators.Count));
}
else if (currentSlotType == SlotTypes.CloseFilter)
{
bannedExitFilterIndicators.Clear();
bannedExitFilterIndicators.AddRange(Indicator_Store.CloseFilterIndicators.GetRange(0, Indicator_Store.CloseFilterIndicators.Count));
}
ArrangeIndicatorsSlots();
SetStatusButton();
}
else if (name == "tsbtnStatus")
{
ShowStatus();
}
}