예제 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            fillResizeLists();
            formOriginalSize = this.Size;
            loadingScreen    = new LoadingScreen();
            loadingScreen.Show();

            loadingScreen.setLoadingLabel("Getting file paths");
            string executingFolder = System.IO.Path.GetDirectoryName(Application.ExecutablePath);

            ProjectIceCreamPath = System.IO.Path.Combine(executingFolder, "ProjectIceCream.xlsx");
            TemplatePath        = System.IO.Path.Combine(executingFolder, "data\\Template.xlsx");
            loadingScreen.setLoadingLabel("Loading Template.xlsx");
            print = new Print(TemplatePath);

            Console.WriteLine(print.GetType().ToString());

            Icon icon = Icon.ExtractAssociatedIcon(System.IO.Path.Combine(executingFolder, "Proj_IceCream.ico"));

            this.Icon = icon;

            printButton.Enabled   = false;
            previewButton.Enabled = false;

            loadingScreen.setLoadingLabel("Loading JsonFiles");
            ex           = new JsonDriver(ProjectIceCreamPath);
            selectedData = new SelectedData();
            loadingScreen.setLoadingLabel("Loading ice cream data");
            LoadIceCreamData();
            loadingScreen.setLoadingLabel("Getting clients");
            LoadClients();
            loadingScreen.setLoadingLabel("Starting cars");
            LoadCars();
            loadingScreen.setLoadingLabel("Notifiyng sellers");
            LoadSelers();

            this.Visible = true;
            loadingScreen.Close();
        }
예제 #2
0
 public void setSelectedData(SelectedData value)
 {
     SelectedData = value;
     printInitialise();
     counter++;
 }