PiBD-23_IvanovD.A._LabWork1_Simple #1
@ -1,8 +1,4 @@
|
||||
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Security.Policy;
|
||||
using System.Web;
|
||||
using Travel_Agency.Entities.Enums;
|
||||
|
||||
namespace Travel_Agency.Entities;
|
||||
|
@ -1,6 +1,5 @@
|
||||
|
||||
namespace Travel_Agency.Entities;
|
||||
|
||||
public class Contract
|
||||
{
|
||||
public int Id { get; private set; }
|
||||
@ -26,5 +25,4 @@ public class Contract
|
||||
Tours = tours
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
|
||||
namespace Travel_Agency.Entities;
|
||||
|
||||
public class Contract_Tour
|
||||
{
|
||||
public int Id { get; private set; }
|
||||
|
@ -1,6 +1,5 @@
|
||||
|
||||
namespace Travel_Agency.Entities;
|
||||
|
||||
public class Payment
|
||||
{
|
||||
public int Id { get; private set; }
|
||||
|
@ -1,6 +1,5 @@
|
||||
|
||||
namespace Travel_Agency.Entities;
|
||||
|
||||
public class Route
|
||||
{
|
||||
public int Id { get; private set; }
|
||||
|
@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Travel_Agency.Entities.Enums;
|
||||
|
||||
namespace Travel_Agency.Entities;
|
||||
@ -21,7 +17,6 @@ public class Tour
|
||||
Name = name,
|
||||
TypeOfTour = typeOfTour,
|
||||
Price = price
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
using Travel_Agency.Forms;
|
||||
using Unity;
|
||||
|
||||
@ -25,7 +25,6 @@ namespace Travel_Agency
|
||||
MessageBox.Show(ex.Message, "Îøèáêà ïðè çàãðóçêå",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void ToursToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@ -39,7 +38,6 @@ namespace Travel_Agency
|
||||
MessageBox.Show(ex.Message, "Îøèáêà ïðè çàãðóçêå",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void RoutesToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
|
@ -1,12 +1,4 @@
|
||||
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;
|
||||
|
||||
using Travel_Agency.Entities;
|
||||
using Travel_Agency.Entities.Enums;
|
||||
using Travel_Agency.Repositories;
|
||||
@ -53,7 +45,6 @@ namespace Travel_Agency.Forms
|
||||
ArgumentNullException(nameof(clientRepository));
|
||||
comboBoxPosition.DataSource =
|
||||
Enum.GetValues(typeof(PositionInSociety));
|
||||
|
||||
}
|
||||
|
||||
private void ButtonSave_Click(object sender, EventArgs e)
|
||||
@ -82,7 +73,6 @@ namespace Travel_Agency.Forms
|
||||
MessageBox.Show(ex.Message, "Ошибка при сохранении",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void ButtonCencel_Click(object sender, EventArgs e) => Close();
|
||||
|
@ -1,14 +1,5 @@
|
||||
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;
|
||||
|
||||
using Travel_Agency.Repositories;
|
||||
using Travel_Agency.Repositories.Implementations;
|
||||
using Unity;
|
||||
|
||||
namespace Travel_Agency.Forms
|
||||
|
@ -1,12 +1,4 @@
|
||||
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;
|
||||
|
||||
using Travel_Agency.Entities;
|
||||
using Travel_Agency.Repositories;
|
||||
|
||||
|
@ -1,14 +1,5 @@
|
||||
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;
|
||||
|
||||
using Travel_Agency.Repositories;
|
||||
using Travel_Agency.Repositories.Implementations;
|
||||
using Unity;
|
||||
|
||||
namespace Travel_Agency.Forms
|
||||
|
@ -1,12 +1,4 @@
|
||||
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;
|
||||
|
||||
using Travel_Agency.Entities;
|
||||
using Travel_Agency.Repositories;
|
||||
|
||||
@ -44,11 +36,8 @@ namespace Travel_Agency.Forms
|
||||
MessageBox.Show(ex.Message, "Ошибка при сохранении",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void ButtonCencel_Click(object sender, EventArgs e) => Close();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +1,4 @@
|
||||
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;
|
||||
|
||||
using Travel_Agency.Repositories;
|
||||
using Unity;
|
||||
|
||||
|
@ -1,15 +1,6 @@
|
||||
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;
|
||||
|
||||
using Travel_Agency.Entities;
|
||||
using Travel_Agency.Repositories;
|
||||
using Travel_Agency.Repositories.Implementations;
|
||||
|
||||
namespace Travel_Agency.Forms
|
||||
{
|
||||
|
@ -1,12 +1,4 @@
|
||||
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;
|
||||
|
||||
using Travel_Agency.Repositories;
|
||||
using Unity;
|
||||
|
||||
@ -110,6 +102,5 @@ namespace Travel_Agency.Forms
|
||||
Convert.ToInt32(dataGridView.SelectedRows[0].Cells["Id"].Value);
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,7 @@
|
||||
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;
|
||||
using Microsoft.VisualBasic.FileIO;
|
||||
|
||||
using Travel_Agency.Entities;
|
||||
using Travel_Agency.Entities.Enums;
|
||||
using Travel_Agency.Repositories;
|
||||
using Travel_Agency.Repositories.Implementations;
|
||||
|
||||
namespace Travel_Agency.Forms
|
||||
{
|
||||
|
@ -1,14 +1,5 @@
|
||||
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;
|
||||
|
||||
using Travel_Agency.Repositories;
|
||||
using Travel_Agency.Repositories.Implementations;
|
||||
using Unity;
|
||||
|
||||
namespace Travel_Agency.Forms
|
||||
|
Loading…
Reference in New Issue
Block a user