Ejemplo n.º 1
0
        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            SaveConfigure saveConfigure = new SaveConfigure();

            saveConfigure.hours        = (int)num_hours.Value;
            saveConfigure.minutes      = (int)num_minutes.Value;
            saveConfigure.seconds      = (int)num_seconds.Value;
            saveConfigure.hours_mail   = (int)nmr_hoursSendmail.Value;
            saveConfigure.minutes_mail = (int)nmr_minutesSendMail.Value;
            saveConfigure.seconds_mail = (int)nmr_secondSendmail.Value;


            try
            {
                SaveObject.Save_data(path + @"\Configure.ini", saveConfigure);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Save configure fail: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 private void PrintEmployeeCard_FormClosing(object sender, FormClosingEventArgs e)
 {
     SaveObject.Save_data(configureFolder + @"\Configure.ini", ConfigureLoad);
 }