комментарии
This commit is contained in:
parent
12aff45c51
commit
a77bd466ee
@ -122,7 +122,7 @@
|
|||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
this.numericUpDownWheelsNumber.ValueChanged += new System.EventHandler(this.numericUpDownWheelsNumber_ValueChanged);
|
this.numericUpDownWheelsNumber.ValueChanged += new System.EventHandler(this.NumericUpDownWheelsNumber_ValueChanged);
|
||||||
//
|
//
|
||||||
// buttonCancel
|
// buttonCancel
|
||||||
//
|
//
|
||||||
|
@ -172,7 +172,11 @@
|
|||||||
EventAddLocomotive?.Invoke(_locomotive);
|
EventAddLocomotive?.Invoke(_locomotive);
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Запоминаем объект от класса доп. прорисовки в переменную типа DataObject
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
private void LabelOrnament_MouseDown(object sender, MouseEventArgs e)
|
private void LabelOrnament_MouseDown(object sender, MouseEventArgs e)
|
||||||
{
|
{
|
||||||
IDrawningAdditionalElements selectedOrnament = new DrawningWheels();
|
IDrawningAdditionalElements selectedOrnament = new DrawningWheels();
|
||||||
@ -192,8 +196,12 @@
|
|||||||
dataObj.SetData(typeof(IDrawningAdditionalElements), selectedOrnament);
|
dataObj.SetData(typeof(IDrawningAdditionalElements), selectedOrnament);
|
||||||
(sender as Label).DoDragDrop(dataObj, DragDropEffects.Move | DragDropEffects.Copy);
|
(sender as Label).DoDragDrop(dataObj, DragDropEffects.Move | DragDropEffects.Copy);
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
private void numericUpDownWheelsNumber_ValueChanged(object sender, EventArgs e)
|
/// Автоматически обновляем количество колёс
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
private void NumericUpDownWheelsNumber_ValueChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (_locomotive != null)
|
if (_locomotive != null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user