Пример #1
0
        public PrivatePackManager()
        {
            // Material Skin properties
            MaterialSkinManager.AddFormToManage(this);
            MaterialSkinManager.Theme       = MaterialSkinManager.Themes.DARK;
            MaterialSkinManager.ColorScheme = new ColorScheme(Primary.Grey700, Primary.Grey800, Primary.Grey500, Accent.Lime200, TextShade.WHITE);

            InitializeComponent();
            windowIO = new WindowIO(this);
        }
Пример #2
0
        public DelayServerStart()
        {
            // Material Skin properties
            MaterialSkinManager.AddFormToManage(this);
            MaterialSkinManager.Theme       = MaterialSkinManager.Themes.DARK;
            MaterialSkinManager.ColorScheme = new ColorScheme(Primary.Red400, Primary.Red900, Primary.Red500, Accent.Lime200, TextShade.WHITE);

            InitializeComponent();

            windowIO = new WindowIO(this);
            this.countdown.Interval = 1000;
            this.countdown.Tick    += Countdown_Tick;
        }
Пример #3
0
        public About(string Title, string Version)
        {
            // Material Skin properties
            MaterialSkinManager.AddFormToManage(this);
            MaterialSkinManager.Theme       = MaterialSkinManager.Themes.DARK;
            MaterialSkinManager.ColorScheme = new ColorScheme(Primary.Grey700, Primary.Grey800, Primary.Grey500, Accent.Lime200, TextShade.WHITE);

            InitializeComponent();

            windowIO = new WindowIO(this);

            lbl_Title.Text   = Title;
            lbl_Version.Text = "version " + Version;
        }
Пример #4
0
        public MessageBox()
        {
            // Material Skin animations
            animationManager = new AnimationManager
            {
                Increment     = 0.03,
                AnimationType = AnimationType.Linear
            };

            animationManager.OnAnimationProgress += sender => Invalidate();
            Invalidated += MessageBox_Invalidated;

            InitializeComponent();
            windowIO = new WindowIO(this);

            this.Message.Font = this.customFont.getFont(Properties.Fonts.ClearSans_Light, 9F, FontStyle.Regular);
        }
Пример #5
0
        public BuildRepo(CheckedListBox addonsList, Label progressText, Windows7ProgressBar progressFile, TextBox buildLog, WindowIO windowIO, Button buildBtn, CheckBox checkBtn)
        {
            this.repoReader = new RepoReader();

            this.addonsList   = addonsList;
            this.progressText = progressText;
            this.progressFile = progressFile;
            this.buildLog     = buildLog;
            this.windowIO     = windowIO;
            this.buildBtn     = buildBtn;
            this.checkBtn     = checkBtn;

            this.builder.DoWork                    += Builder_DoWork;
            this.builder.RunWorkerCompleted        += Builder_RunWorkerCompleted;
            this.builder.WorkerSupportsCancellation = true;

            this.progressStatusText("Waiting for orders");
        }
Пример #6
0
        public Help()
        {
            // Material Skin properties
            MaterialSkinManager.AddFormToManage(this);
            MaterialSkinManager.Theme       = MaterialSkinManager.Themes.DARK;
            MaterialSkinManager.ColorScheme = new ColorScheme(Primary.Grey700, Primary.Grey800, Primary.Grey500, Accent.Lime200, TextShade.WHITE);

            // Material Skin animations
            animationManager = new AnimationManager
            {
                Increment     = 0.03,
                AnimationType = AnimationType.EaseOut
            };

            animationManager.OnAnimationProgress += sender => Invalidate();
            Invalidated += Help_Invalidated;

            InitializeComponent();

            windowIO = new WindowIO(this);
        }
Пример #7
0
        public AddonManager()
        {
            // Material Skin properties
            MaterialSkinManager.AddFormToManage(this);
            MaterialSkinManager.Theme       = MaterialSkinManager.Themes.DARK;
            MaterialSkinManager.ColorScheme = new ColorScheme(Primary.Grey700, Primary.Grey800, Primary.Grey500, Accent.Lime200, TextShade.WHITE);

            InitializeComponent();

            aLooker     = new AddonsLooker();
            windowIO    = new WindowIO(this);
            repoBuilder = new BuildRepo(chbl_repoContent, lbl_buildStatus, prgb_repoBuild, buildLog, windowIO, btn_buildRepo, chb_checkAll);

            if (Properties.Settings.Default.RepoFolder != string.Empty)
            {
                txtb_repoLocation.ForeColor = Color.FromArgb(64, 64, 64); txtb_repoLocation.Text = Properties.Settings.Default.RepoFolder; GetAddons();
            }
            else
            {
                txtb_repoLocation.ForeColor = Color.DarkGray; txtb_repoLocation.Text = "Set directory ->";
            }
        }