public MainActivity()
 {
     InitializeComponent();
     PopulateListBox(checkedListBox1, configpath, "*config.ini");
     if (File.Exists(statefile))
     {
         Debug.WriteLine("State file " + statefile + " detected, reloading state.");
         runVPNInstallers runNext = new runVPNInstallers(install_list, statefile);
         runNext.Show();
         this.Opacity       = 0.0f;
         this.ShowInTaskbar = false;
     }
 }
Ejemplo n.º 2
0
        public void closeform(bool value)
        {
            if (InvokeRequired)
            {
                this.Invoke(new Action <bool>(closeform), new object[] { value });
                return;
            }

            if (value)
            {
                buttonWasClicked = true;
                MainActivity MainMenuForm = new MainActivity();
                MainMenuForm.Show();
                this.Close();
            }
            else
            {
                buttonWasClicked = true;
                runVPNInstallers runNext = new runVPNInstallers(pass_list, statefile);
                runNext.Show();
                this.Opacity       = 0.0f;
                this.ShowInTaskbar = false;
            }
        }