private void cmdNewResin_Click(object sender, EventArgs e)
        {
            frmProfileName frm = new frmProfileName();

            frm.Text = "New Resin Profile";
            if (frm.ShowDialog() == DialogResult.OK)
            {
                //create a new resin profile
                string res = m_config.AddNewResin(frm.ProfileName);
                if (res != "OK")
                {
                    MessageBox.Show(res, "Error");
                    return;
                }
                UpdateResinList();
                SetResinValues();
                //comboResin.Items.Add(frm.ProfileName);
                //comboResin.SelectedIndex = comboResin.Items.Count - 1;
            }
        }
        private void cmdNewResin_Click(object sender, EventArgs e)
        {
            frmProfileName frm = new frmProfileName();

            frm.Text = ((DesignMode) ? "NewResinProfile" :UVDLPApp.Instance().resman.GetString("NewResinProfile", UVDLPApp.Instance().cul));
            if (frm.ShowDialog() == DialogResult.OK)
            {
                //create a new resin profile
                string res = m_config.AddNewResin(frm.ProfileName);
                if (res != "OK")
                {
                    MessageBox.Show(res, ((DesignMode) ? "Error" :UVDLPApp.Instance().resman.GetString("Error", UVDLPApp.Instance().cul)));
                    return;
                }
                UpdateResinList();
                SetResinValues();
                //comboResin.Items.Add(frm.ProfileName);
                //comboResin.SelectedIndex = comboResin.Items.Count - 1;
            }
        }