Example #1
0
        public MainWindow()
        {
            InitializeComponent();

            this.Text += $" - v{Constants.Version} - For C4 v{Constants.TargetDirectorVersion}";

            MainTabControl.TabPages.Clear();

            Director        = new Director(this);
            Director.Parent = AddTab("Director");
            Director.Dock   = DockStyle.Fill;

            Backup        = new Backup(this);
            Backup.Parent = AddTab("Backup");
            Backup.Dock   = DockStyle.Fill;

            Composer        = new Composer(this);
            Composer.Parent = AddTab("Composer");
            Composer.Dock   = DockStyle.Fill;

            DirectorPatch        = new DirectorPatch(this);
            DirectorPatch.Parent = AddTab("Director Patch");
            DirectorPatch.Dock   = DockStyle.Fill;

            Restore        = new Restore(this);
            Restore.Parent = AddTab("Restore");
            Restore.Dock   = DockStyle.Fill;

            MainTabControl.SelectedTab = MainTabControl.TabPages[0];

            CenterToScreen();

            Load += OnLoaded;
        }
Example #2
0
        public MainWindow()
        {
            InitializeComponent();

            if (!System.IO.Directory.Exists("Certs"))
            {
                System.IO.Directory.CreateDirectory("Certs");
            }

            System.IO.File.WriteAllBytes("Certs/openssl.cfg", Resources.openssl);

            this.Text += $" - v{Constants.Version} - For C4 v{Constants.TargetDirectorVersion}";

            TabControl.TabPages.Clear();

            Director = new Director(this);

            Certificates = new Certificates(this);
            TabControl.TabPages.Add("Certificates");
            Certificates.Parent = TabControl.TabPages[0];
            Certificates.Dock   = DockStyle.Fill;

            Composer = new Composer(this);
            TabControl.TabPages.Add("Composer");
            Composer.Parent = TabControl.TabPages[1];
            Composer.Dock   = DockStyle.Fill;

            DirectorPatch = new DirectorPatch(this);
            TabControl.TabPages.Add("Director");
            DirectorPatch.Parent = TabControl.TabPages[2];
            DirectorPatch.Dock   = DockStyle.Fill;

            CenterToScreen();

            Load += OnLoaded;
        }