Ejemplo n.º 1
0
        private void bSettings_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmSettings frm = new frmSettings();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                Properties.Settings.Default.ShopName  = frm.ShopName;
                Properties.Settings.Default.Address   = frm.Address;
                Properties.Settings.Default.Phone     = frm.PhoneNo;
                Properties.Settings.Default.Email     = frm.Email;
                Properties.Settings.Default.Website   = frm.Website;
                Properties.Settings.Default.ShortName = frm.ShortName;
                Properties.Settings.Default.Save();
            }
        }
Ejemplo n.º 2
0
 public frmLogin(frmSettings MenuForma)
 {
     InitializeComponent();
     this.MenuForma = MenuForma;
     txtusername.Focus();
 }