Esempio n. 1
0
        protected override void Insert()
        {
            HPS.BLL.LaderTypeBLL.BLLLaderType_TFactory LaderTypeFactory = new HPS.BLL.LaderTypeBLL.BLLLaderType_TFactory();
            try
            {
                Properties.Settings Setting = new HPS.Properties.Settings();
                if (SaloonID_intComboBox.SelectedIndex != -1)
                {
                    Setting.SaloonID_int          = (Int32)Hepsa.Core.Common.PersentationController.GetEntityValue(SaloonID_intComboBox.SelectedValue, TypeCode.Int32);
                    Setting.SaloonIDComboBoxIndex = (Int32)Hepsa.Core.Common.PersentationController.GetEntityValue(SaloonID_intComboBox.SelectedIndex, TypeCode.Int32);
                    Setting.Save();
                }
                else
                {
                    Setting.SaloonID_int          = 0;
                    Setting.SaloonIDComboBoxIndex = 0;
                    Setting.Save();
                }


                this.ClearForm(this);
            }
            catch (Exception ex)
            {
                LaderTypeFactory.RollBackProc();
                throw ex;
            }
        }
Esempio n. 2
0
        private void PrinterSelectionButton_Click(object sender, EventArgs e)
        {
            PrintDialog dlg = new PrintDialog();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                Properties.Settings s = new HPS.Properties.Settings();
                s.PrinterName = dlg.PrinterSettings.PrinterName;
                s.Save();
            }
        }