private static void CloseLeave(object s, EventArgs e)
        {
            Control c = Asset.FindByName("Close").GetEntity();

            c.BackColor = Color.Black;
            c.ForeColor = Color.White;
        }
        private static void OutputFolderBrowserEnter(object s, EventArgs e)
        {
            Control c = Asset.FindByName("OFBrowser").GetEntity();

            c.BackColor = Color.AliceBlue;
            c.ForeColor = Color.Black;
        }
        private static void NextSelect(object s, EventArgs e)
        {
            string OF = Asset.FindByName("OF").GetEntity().Text;

            if (OF == "")
            {
                Utilities.Info("Output folder cannot be empty!");
            }
            else
            {
                bool AlreadyExists = false;
                if (Directory.Exists(OF))
                {
                    AlreadyExists = true;
                }
                Utilities.NewFolder(OF);
                if (Directory.Exists(OF))
                {
                    if (!AlreadyExists)
                    {
                        Directory.Delete(OF);
                    }
                    Database.OutputFolder = OF;
                    Scene.Hide("OutputFolder");
                    Selection.Draw();
                }
                else
                {
                    Utilities.Info("Selected output folder isn't a valid path!");
                }
            }
        }
        private static void OutputFolderBrowserLeave(object s, EventArgs e)
        {
            Control c = Asset.FindByName("OFBrowser").GetEntity();

            c.BackColor = Color.Black;
            c.ForeColor = Color.White;
        }
示例#5
0
 private static void NextInstallation(object s, EventArgs e)
 {
     if (((CheckBox)(Asset.FindByName("AcceptTerms").GetEntity())).CheckState == CheckState.Checked)
     {
         Scene.Hide("Copyright");
         Installation.Draw();
     }
 }
示例#6
0
        private static void BackSelection(object s, EventArgs e)
        {
            CheckBox c = (CheckBox)Asset.FindByName("AcceptTerms").GetEntity();

            c.CheckState = CheckState.Unchecked;
            Scene.Hide("Copyright");
            Selection.Draw();
        }
        private static void UpdateInstall()
        {
            Asset.FindByName("FileDownloading").GetEntity().Text = Database.DownloadFile + "...";
            Asset.FindByName("DownloadKB").GetEntity().Text      = Database.NetworkSize.ToString() + "kb / " + Database.NetworkExpectedSize.ToString() + "kb";
            Asset.FindByName("DownloadPercent").GetEntity().Text = Utilities.UpdateDownloadPercent().ToString() + "%";
            Control c = Asset.FindByName("DownloadBar").GetEntity();

            c.Size      = new Size(Utilities.UpdateDownloadBarSize(), 79);
            c.BackColor = Color.FromArgb(255, duh2, duh2 / 2, duh2 / 3 + duh + 5);
        }
示例#8
0
        internal static void Hide(string SceneName)
        {
            Scene s = Find(SceneName);

            if (s != null)
            {
                foreach (string assetname in s.LocalAssets)
                {
                    Asset.FindByName(assetname).GetEntity().Visible = false;
                }
            }
        }
        private static void TitleUp(object s, EventArgs e)
        {
            tt.Stop();
            Scene.Show(Database.ActualScene, false);
            duh  = 0;
            duh2 = 0;
            Database.Aura.BackColor = Color.Black;
            Control c = Asset.FindByName("Title").GetEntity();

            c.BackColor = Color.Black;
            c.ForeColor = Color.White;
        }
示例#10
0
        internal static void Show(string SceneName, bool AuraSizeUpdate = true)
        {
            Scene s = Find(SceneName);

            if (s != null)
            {
                foreach (string assetname in s.LocalAssets)
                {
                    Asset.FindByName(assetname).GetEntity().Visible = true;
                }
                if (AuraSizeUpdate)
                {
                    Database.Aura.MinimumSize = s.MainSize;
                    Database.Aura.Size        = s.MainSize;
                    Database.Aura.Location    = s.MainLocation;
                }
            }
        }
        private static void TitleMoving(object s, EventArgs e)
        {
            if (duh == 255)
            {
                duh = 0;
            }
            if (duh2 == 255)
            {
                duh2 = 0;
            }
            Asset c = Asset.FindByName("Title");

            c.UpdatePosition(Cursor);
            Cursor = Utilities.GetCursorPosition();
            c.GetEntity().BackColor = Color.FromArgb(255, duh, duh2, 0);
            c.GetEntity().ForeColor = Color.FromArgb(255, 0, duh2, duh);
            Database.Aura.BackColor = Color.FromArgb(255, duh, duh2, 0);
            duh++;
            duh2++;
        }
示例#12
0
 private static void NextCpy(object s, EventArgs e)
 {
     if (((CheckBox)(Asset.FindByName("Nerve").GetEntity())).CheckState == CheckState.Checked)
     {
         Database.Nerve = true;
     }
     if (((CheckBox)(Asset.FindByName("Iris").GetEntity())).CheckState == CheckState.Checked)
     {
         Database.Iris = true;
     }
     if (!Database.Nerve && !Database.Iris)
     {
         Utilities.Info("Please, select at least 1 package to install!");
     }
     else
     {
         Scene.Hide("Selection");
         Copyright.Draw();
     }
 }
 private static void OutputFolderBrowser(object s, EventArgs e)
 {
     Scene.Hide("OFBrowser");
     using (CommonOpenFileDialog ofd = new CommonOpenFileDialog())
     {
         ofd.AddToMostRecentlyUsedList = true;
         ofd.AllowPropertyEditing      = true;
         ofd.AllowNonFileSystemItems   = true;
         ofd.IsFolderPicker            = true;
         ofd.Multiselect      = false;
         ofd.RestoreDirectory = true;
         ofd.ShowHiddenItems  = true;
         ofd.ShowPlacesList   = true;
         ofd.Title            = "Select Aura Installation Output Folder...";
         if (ofd.ShowDialog() == CommonFileDialogResult.Ok)
         {
             Asset.FindByName("OF").GetEntity().Text = ofd.FileName;
         }
     }
     Scene.Show("OFBrowser");
 }
示例#14
0
 private static void FinishEnter(object s, EventArgs e)
 {
     Asset.FindByName("Finish").GetEntity().ForeColor = Color.Silver;
 }
示例#15
0
 private static void FinishLeave(object s, EventArgs e)
 {
     Asset.FindByName("Finish").GetEntity().ForeColor = Color.White;
 }
示例#16
0
 private static void NextCpyLeave(object s, EventArgs e)
 {
     Asset.FindByName("NextCpy").GetEntity().ForeColor = Color.White;
 }
示例#17
0
 private static void NextCpyEnter(object s, EventArgs e)
 {
     Asset.FindByName("NextCpy").GetEntity().ForeColor = Color.Blue;
 }
示例#18
0
 private static void BackOFLeave(object s, EventArgs e)
 {
     Asset.FindByName("BackOF").GetEntity().ForeColor = Color.White;
 }
示例#19
0
 private static void RetryEnter(object s, EventArgs e)
 {
     Asset.FindByName("Retry").GetEntity().ForeColor = Color.Red;
 }
 private static void NextToOutputFolderLeave(object s, EventArgs e)
 {
     Asset.FindByName("NextOutputFolder").GetEntity().ForeColor = Color.White;
 }
示例#21
0
 private static void SelectionLeave(object s, EventArgs e)
 {
     Asset.FindByName("RSelection").GetEntity().ForeColor = Color.White;
 }
示例#22
0
 private static void SelectionEnter(object s, EventArgs e)
 {
     Asset.FindByName("RSelection").GetEntity().ForeColor = Color.Blue;
 }
 private static void AuraOpacity(object s, EventArgs e)
 {
     if (Database.Aura.Opacity < 1)
     {
         if (duh == 255)
         {
             duh = 0;
         }
         if (duh2 == 24)
         {
             duh2 = 0;
         }
         Database.Aura.Opacity += 0.001;
         Asset.FindByName("SplashScreen_1").GetEntity().ForeColor = Color.FromArgb(0, 0, duh, duh2);
         duh++;
         duh2++;
     }
     else
     {
         t.Stop();
         duh         = 0;
         duh2        = 0;
         tt          = new Timer();
         tt.Interval = 4;
         tt.Tick    += TitleMoving;
         Scene.Hide("SplashScreen");
         Label l = new Label();
         l.Size       = new Size(300, 20);
         l.Location   = new Point(5, 5);
         l.ForeColor  = Color.White;
         l.BackColor  = Color.Black;
         l.Font       = new Font(FontFamily.GenericSerif, 15, FontStyle.Bold | FontStyle.Italic);
         l.TextAlign  = ContentAlignment.MiddleLeft;
         l.Text       = "AURA";
         l.MouseDown += TitleDown;
         l.MouseUp   += TitleUp;
         Asset la = new Asset(l, "Title", true);
         Label ll = new Label();
         ll.Size        = new Size(20, 20);
         ll.Location    = new Point(480, 0);
         ll.Font        = new Font(ll.Font, FontStyle.Bold);
         ll.ForeColor   = Color.White;
         ll.BackColor   = Color.Black;
         ll.TextAlign   = ContentAlignment.MiddleCenter;
         ll.Text        = "X";
         ll.MouseEnter += CloseEnter;
         ll.MouseLeave += CloseLeave;
         ll.Click      += Close;
         Asset lla = new Asset(ll, "Close");
         Scene ss  = new Scene("Welcome");
         Label lll = new Label();
         lll.Size      = new Size(450, 25);
         lll.Location  = new Point(25, 135);
         lll.ForeColor = Color.White;
         lll.BackColor = Color.Black;
         lll.Font      = new Font(FontFamily.GenericSerif, 13, FontStyle.Bold | FontStyle.Italic);
         lll.TextAlign = ContentAlignment.MiddleCenter;
         lll.Text      = "Welcome to Aura, bringed to you by Iris Technologies";
         Asset llla = new Asset(lll, "WMsg");
         ss.AddAsset("WMsg");
         Label llll = new Label();
         llll.Size        = new Size(100, 25);
         llll.Location    = new Point(200, 220);
         llll.ForeColor   = Color.White;
         llll.BackColor   = Color.Black;
         llll.Font        = new Font(FontFamily.GenericSansSerif, 12, FontStyle.Bold);
         llll.TextAlign   = ContentAlignment.MiddleCenter;
         llll.Text        = "Next";
         llll.MouseEnter += NextToOutputFolderEnter;
         llll.MouseLeave += NextToOutputFolderLeave;
         llll.Click      += NextToOutputFolder;
         Asset lllla = new Asset(llll, "NextOutputFolder");
         ss.AddAsset("NextOutputFolder");
         Scene.Register(ss);
         Database.Aura.MinimumSize = new Size(500, 300);
         Database.Aura.Size        = new Size(500, 300);
         Utilities.CenterForm();
     }
 }
示例#24
0
 private static void BackOFEnter(object s, EventArgs e)
 {
     Asset.FindByName("BackOF").GetEntity().ForeColor = Color.Red;
 }