public Form1()
        {
            InitializeComponent();

            if (System.IO.File.Exists("config.txt"))
            {
                string[] lines = System.IO.File.ReadAllLines("config.txt");
                if (lines.Length == 0)
                {
                    MessageBox.Show("Configuration file config.txt is empty");
                    this.Enabled = false;
                }
                else
                {
                    connString = lines[0];
                }
            }
            else
            {
                MessageBox.Show("Configuration file doesn't exist");
                this.Enabled = false;
            }

            ConnToDB.ConnectionString = connString;
            materijaliSt                     = new MaterijaliStorage();
            vrstaObradeSt                    = new VrstaObradeStorage();
            tipObradeSt                      = new TipObradeStorage();
            oblikPlociceSt                   = new ObliciPlocicaStorage();
            kvalitetObradeSt                 = new KvalitetObradeStorage();
            dodaciSt                         = new DodaciStorage();
            pripremaciSt                     = new PripremciStorage();
            kvalitetiRPlSt                   = new KvalitetiReznihPlocicaStorage();
            prepRezimiSt                     = new PrepRezimiStorage();
            drzaciSt                         = new DrzaciAlataStorage();
            masineSt                         = new MasineDataStorage();
            preporukeISOPSt                  = new PreporukeISOPStorage();
            gradacijeObradeSt                = new GradacijeObradaStorage();
            interpolacijaBrzina              = new InterpolacijaBrzina();
            filterPlocica                    = new FilterReznihPlocica();
            listaPlocica                     = new List <ReznaPlocica>();
            graphDrawBrzinaProizvodnost      = new GraphDrawing();
            graphDrawPostojanostProizvodnost = new GraphDrawing();
            graphDrawBrzinaPostojanost       = new GraphDrawing();
            preporukeZaPostojanost           = new PreporukeZaPostojanostAlataStorage();
            slikeZaFormuSt                   = new SlikeZaFormuStorage();
            listaTacaka                      = new List <PointCoordinates>();
            rezimi                     = new RezimiObrade();
            plocica                    = new ReznaPlocica();
            izracunatiRezimi           = new IzracunatiRezimi();
            izracunatiPrepRezimi       = new IzracunatiPreporuceniRezimi();
            preporuceniRezim           = new PreporuceniRezim();
            granicnaVrednostDubine     = new GranicnaVrednostDubneRezanja();
            racunanjeParametaraRezanja = new RacunanjeParametaraRezanja();

            graphDrawBrzinaProizvodnost.SetNamesOfAxisAndLabels("Brzina rezanja v (m/min)", "Proizvodnost Q (cm³/min)", "v", "Q", brzinaProizvodnostChart);
            graphDrawPostojanostProizvodnost.SetNamesOfAxisAndLabels("Postojanost alata T (min)", "Proizvodnost Q (cm³/min)", "T", "Q", postojanostProizvodnostChart);
            graphDrawBrzinaPostojanost.SetNamesOfAxisAndLabels("Brzina rezanja v (m/min)", "Postojanost alata T (min)", "v", "T", brzinaPostojanostChart);

            maxSerijeCheckBox.Checked         = true;
            preporuceneSerijeCheckBox.Checked = true;
            minSerijeCheckBox.Checked         = true;
            ukljanjanjeLabelaCheckBox.Checked = true;

            fillComboBoxAndSetToDropDownList(materialComBox, materijaliSt.ListOfDictElements);
            fillComboBoxAndSetToDropDownList(vrstaObradeComboBox, vrstaObradeSt.ListOfDictElements);
            fillComboBoxAndSetToDropDownList(klasaKvalitetaComboBox, kvalitetObradeSt.ListOfDictElements);



            granicnaVrednostDubine.ListaGradacijaObrade = gradacijeObradeSt.ListaGradacija;
        }