Ready lab 5 with formatting... everything seems to be in order
This commit is contained in:
parent
65f140055c
commit
5e0834fb83
@ -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,
|
||||
|
@ -71,7 +71,6 @@ namespace ProjectElectricLocomotive.Generics
|
||||
{
|
||||
get
|
||||
{
|
||||
// TODO Продумать логику получения набора
|
||||
if (_locomotivesStorage.ContainsKey(ind))
|
||||
{
|
||||
return _locomotivesStorage[ind];
|
||||
|
Loading…
Reference in New Issue
Block a user