Example #1
0
        private void Confirm_Click(object sender, EventArgs e)
        {
            string path = Path.Combine(Environment.CurrentDirectory, "Connection.txt");

            System.IO.File.WriteAllText(path, folderBrowser1.DirectoryPath);
            this.Hide();
            MetroForm1 f = new MetroForm1();

            f.Show();
        }
Example #2
0
 private void quickAppointmentToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (MetroForm1.isOpen == false)
     {
         ff           = new MetroForm1();
         ff.MdiParent = this;
         ff.Dock      = DockStyle.Fill;
         ff.Show();
     }
     else
     {
         ff.BringToFront();
     }
 }