private void Form1_Load(object sender, System.EventArgs e)
        {
            PreferencesBL objPreferencesBL = new PreferencesBL();

            objPreferencesBL.SetColorBL();
            objPreferencesBL.SetLimitBL();

            PopulateGridViewStock();
            ControlStock();
        }
        private void ButtonApplyChanges_Click(object sender, EventArgs e)
        {
            try
            {
                PreferencesBO.Limit       = Convert.ToInt32(TextBoxLimit.Text);
                PreferencesBO.EmptyColor  = ComboBoxEmptyColor.Text;
                PreferencesBO.NormalColor = ComboBoxNormalColor.Text;
                PreferencesBO.LowColor    = ComboBoxLowColor.Text;

                PreferencesBL objPreferencesBL = new PreferencesBL();
                objPreferencesBL.ChangeColorBL();
                objPreferencesBL.ChangeLimitBL();

                MessageBox.Show("Tercihleriniz onaylanmıştır");

                objPreferencesBL.SetColorBL();
                objPreferencesBL.SetLimitBL();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }