public MainView()
        {
            InitializeComponent();
            client_args = new List<ClientStoreArg>();
            SP_args = new List<SPStoreArg>();
            output = new TextBoxStreamWriter(this.tbOutput);
            sim = new StoreSimulation.SimModels.Simulation();
            simView = new LoggingView(sim, (System.IO.TextWriter)output);
            Timer.TimerTicked += new Timer.TimerTickedEventHandler(updateTimerLbl);

            this.init();

            //event handlers
            //Store.ServicePointOpened += new Store.ServicePointOpenedEventHandler(onServicePointCreatedHandler);
        }
        public void init()
        {
            cbSupStrats.Items.Clear();
            lbQueues.Items.Clear();
            tbOutput.Clear();
            Timer.Reset();
            Client.CUSTOMERID = 0;

            client_args = new List<ClientStoreArg>();
            SP_args = new List<SPStoreArg>();
            output = new TextBoxStreamWriter(this.tbOutput);
            sim = new StoreSimulation.SimModels.Simulation();
            simView.SetSim(sim);

            List<SupervisorStrategy> strats = this.sim.getStore().getSupervisor().getStrategies();
            foreach (SupervisorStrategy strat in strats)
            {
                this.cbSupStrats.Items.Add(strat.ToString());
            }
            this.cbSupStrats.SelectedIndex = 0;

            lbQueues.Items.Add("MainQueue_Queue");
            lbQueues.SelectedIndex = 0;
        }