Ejemplo n.º 1
0
 private void btnBegin_Click(object sender, EventArgs e)
 {
     try
     {
         UpdateResources("*.dll");
         UpdateResources("*.exe");
         Debug.WriteLine(com.FindClosestFromPallet(System.Drawing.Color.FromArgb(0, 0, 0, 128)).ToString());
         Desktop d = new Desktop();
         this.Hide();
         DialogResult result = d.ShowDialog();
         if (result == DialogResult.Cancel)
         {
             Debug.WriteLine("Closed");
             d = null;
             Taskbar.Show();
             Environment.Exit(Environment.ExitCode);
         }
         else if (result == DialogResult.OK)
         {
             this.Show();
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }
Ejemplo n.º 2
0
 public BIOS()
 {
     InitializeComponent();
     Taskbar.Hide();
 }