Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
            frmConfiguration frmConfiguration = new frmConfiguration();

            frmConfiguration.Show();
        }
Beispiel #2
0
        private void LinkServer_Click(object sender, EventArgs e)
        {
            frmConfiguration formConfiguration = new frmConfiguration();

            formConfiguration.Show();
            this.Hide();
        }
Beispiel #3
0
        private void configuraciónToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmConfiguration frmWork = new frmConfiguration()
            {
                MdiParent = this
            };

            frmWork.strNameMenu = "configuraciónToolStripMenuItem";
            configuraciónToolStripMenuItem.Enabled    = false;
            controlDeEntradaToolStripMenuItem.Enabled = false;
            enrolamientoToolStripMenuItem.Enabled     = false;
            frmWork.Show();
        }
Beispiel #4
0
        private void btnGenerateAccessKey_Click(object sender, EventArgs e)
        {
            frmConfiguration frmConfiguration = new frmConfiguration();
            XmlDocument      xDoc             = new XmlDocument();
            string           sourceFilePath   = string.Format("{0}{1}{2}{3}{4}{5}{6}", Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), System.IO.Path.DirectorySeparatorChar, "bLoyal", System.IO.Path.DirectorySeparatorChar, "Dinerware Integration", System.IO.Path.DirectorySeparatorChar, "DinerwareConfigurationFile.xml");

            xDoc.Load(@"" + sourceFilePath);
            string accessKey = GetAccessKey();

            if (!string.IsNullOrEmpty(accessKey))
            {
                xDoc.DocumentElement.SelectSingleNode("ACCESS_KEY").InnerText = accessKey;
            }
            //xDoc.Save(@"C:\Dinerware Configuration File\DinerwareConfigurationFile.xml");
            this.Hide();
            frmConfiguration.Show();
        }
Beispiel #5
0
        private void connectionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmConfiguration frm = new frmConfiguration();

            LoadForm(frm);
        }
Beispiel #6
0
        private void btnConfig_Click(object sender, EventArgs e)
        {
            frmConfiguration frm = new frmConfiguration();

            frm.ShowDialog();
        }
    public override void ButtonPressed(object parentForm, Dinerware.User currentUser)
    {
        frmConfiguration frmConfiguration = new frmConfiguration();

        frmConfiguration.ShowDialog();
    }