Beispiel #1
0
        public InterventionsView()
        {
            InitializeComponent();
            this.CustomizeInterventionsView();

            orderService = new OrderService();
            userService  = new UserService();
            atmService   = new AtmService();


            ///Init Blank report
            ///
            ///
            this.rVReports.LocalReport.DataSources.Clear();
            rVReports.Reset();
            rVReports.LocalReport.ReportPath = "Reports/BlankReport.rdlc";
            var allAtmsDataSource = new AtmService();
            var allAtms           = allAtmsDataSource.GetAllAtmsList();

            Microsoft.Reporting.WinForms.ReportDataSource rprtDTSource = new Microsoft.Reporting.WinForms.ReportDataSource();
            rprtDTSource.Name  = "DataSet1";
            rprtDTSource.Value = this.AtmModelBindingSource;
            this.rVReports.LocalReport.DataSources.Add(rprtDTSource);
            this.AtmModelBindingSource.DataSource = allAtms;
            this.rVReports.RefreshReport();
        }
Beispiel #2
0
        public InterventionsView()
        {
            InitializeComponent();
            // Define the border style of the form to a dialog box.
            this.FormBorderStyle = FormBorderStyle.FixedDialog;

            // Set the MaximizeBox to false to remove the maximize box.
            this.MaximizeBox = false;
            this.Width       = 1354;
            this.Height      = 787;

            // Set the MinimizeBox to false to remove the minimize box.
            this.MinimizeBox = false;

            // Set the start position of the form to the center of the screen.
            this.StartPosition = FormStartPosition.CenterScreen;
            this.WindowState   = FormWindowState.Normal;

            orderService = new OrderService();
            atmService   = new AtmService();
        }
 public HomeController(IAtmService atmService)
 {
     _atmService = atmService;
 }
Beispiel #4
0
 public AtmController(IAtmService atmService)
 {
     _atmService = atmService;
 }
Beispiel #5
0
 public AtmController(IAtmService service)
 {
     _service = service;
 }