Ready lab 5 with formatting... everything seems to be in order

This commit is contained in:
ekallin 2023-11-14 00:43:34 +04:00
parent 65f140055c
commit 5e0834fb83
2 changed files with 2 additions and 10 deletions

View File

@ -29,7 +29,7 @@ namespace ProjectElectricLocomotive
{
InitializeComponent();
//panelPastelRed.MouseDown += PanelColor_MouseDown;
panelPastelRed.MouseDown += PanelColor_MouseDown;
panelPastelPink.MouseDown += PanelColor_MouseDown;
panelPastelOrange.MouseDown += PanelColor_MouseDown;
panelPastelYellow.MouseDown += PanelColor_MouseDown;
@ -38,12 +38,6 @@ namespace ProjectElectricLocomotive
panelPastelLilac.MouseDown += PanelColor_MouseDown;
panelPastelViolet.MouseDown += PanelColor_MouseDown;
/*ButtonOk.Click += delegate
{
EventAddLoco?.Invoke(_loco);
Close();
};*/
buttonCancel.Click += (sender, e) => Close();
}
@ -138,8 +132,7 @@ namespace ProjectElectricLocomotive
}
// НЕ УВЕРЕНА, ЧТО ВЕРНО
// НЕ УВЕРЕНА, ЧТО ВЕРНО, драгдроп для цветов
private void PanelColor_MouseDown(object sender, MouseEventArgs e)
{
(sender as Panel)?.DoDragDrop((sender as Panel)?.BackColor,

View File

@ -71,7 +71,6 @@ namespace ProjectElectricLocomotive.Generics
{
get
{
// TODO Продумать логику получения набора
if (_locomotivesStorage.ContainsKey(ind))
{
return _locomotivesStorage[ind];