Beispiel #1
0
        public MainForm()
        {
            InitializeComponent();
            MaterialSkinManager materialSkinManager = MaterialSkinManager.Instance;

            materialSkinManager.AddFormToManage(this);
            Other.RefreshColorSceme();

            Directory.CreateDirectory(Environment.CurrentDirectory + "/config");
            Directory.CreateDirectory(Environment.CurrentDirectory + "/temp");
            RefreshUserData();
            Settings.ReadSettings();
            materialSingleLineTextField2.Text = Settings.maxMission.ToString();
            LowCache.Checked          = Settings.lowcache;
            APISelector.SelectedIndex = Settings.useapi;
            materialLabel2.BackColor  = Other.GetBackGroundColor();
            Tabs.Size = new Size(Tabs.Width, Tabs.Height + 30);
            materialCheckBox1.Checked   = Settings.usearia2c;
            materialCheckBox2.Checked   = Settings.downloaddanmaku;
            aria2cargu.Visible          = materialCheckBox1.Checked;
            aria2cargu.Text             = Settings.aria2cargument;
            materialFlatButton7.Visible = materialCheckBox1.Checked;
            if (Environment.OSVersion.Platform == PlatformID.Unix)
            {
                Tabs.Region             = new Region(new RectangleF(Tabs.Left, Tabs.Top, Tabs.Width, Tabs.Height));
                TabSelector.Location    = new System.Drawing.Point(0, 64);
                materialLabel2.Location = new Point(411, 80);
                materialLabel2.Size     = new Size(691, 25);
                videoList1.Size         = new Size(1200, 650);
                videoList1.Location     = new Point(-5, 70);
                panel3.Location         = new Point(0, 5);
            }
        }
Beispiel #2
0
        public IntereactionSelect(VideoClass.episode epin)
        {
            InitializeComponent();
            var materialSkinManager = MaterialSkinManager.Instance;

            materialSkinManager.AddFormToManage(this);
            Other.RefreshColorSceme();
            ep           = epin;
            aid          = ep.aid;
            cid          = ep.cid;
            graphversion = ep.interactionVersion;

            if (!ep.isinteractive)
            {
                Close();
                Dispose();
            }

            //获取互动视频的Cookie
            cookie = User.cookie;
            IntereactiveVideo v = new IntereactiveVideo();

            v.aid    = aid;
            v.cid    = cid;
            v.name   = "视频开始";
            v.nodeid = "1";
            videos.Add(v);
            LoadEdge();
        }
Beispiel #3
0
        public MainForm()
        {
            InitializeComponent();
            var materialSkinManager = MaterialSkinManager.Instance;

            materialSkinManager.AddFormToManage(this);
            Other.RefreshColorSceme();

            Directory.CreateDirectory(Environment.CurrentDirectory + "/config");
            Directory.CreateDirectory(Environment.CurrentDirectory + "/temp");
            RefreshUserData();
            Settings.ReadSettings();
            materialSingleLineTextField2.Text = Settings.maxMission.ToString();
            LowCache.Checked         = Settings.lowcache;
            useoutland.Checked       = Settings.outland;
            materialLabel2.BackColor = Other.GetBackGroundColor();
            Tabs.Size = new Size(Tabs.Width, Tabs.Height + 30);
            if (Environment.OSVersion.Platform == PlatformID.Unix)
            {
                this.Tabs.Region          = new Region(new RectangleF(this.Tabs.Left, this.Tabs.Top, this.Tabs.Width, this.Tabs.Height));
                this.TabSelector.Location = new System.Drawing.Point(0, 64);
                materialLabel2.Location   = new Point(411, 80);
                materialLabel2.Size       = new Size(691, 25);
                videoList1.Size           = new Size(1200, 650);
                videoList1.Location       = new Point(-5, 70);
                panel3.Location           = new Point(0, 5);
            }
        }
Beispiel #4
0
        public MainForm()
        {
            InitializeComponent();
            MaterialSkinManager materialSkinManager = MaterialSkinManager.Instance;

            materialSkinManager.AddFormToManage(this);
            Other.RefreshColorSceme();
            Initialize();
        }
Beispiel #5
0
 private void materialComboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (materialComboBox1.SelectedIndex == 0)
     {
         Settings.autodark = true;
         Other.RefreshColorSceme();
     }
     else
     {
         Settings.autodark = false;
         Settings.darkmode = materialComboBox1.SelectedIndex == 2 ? false : true;
         Other.RefreshColorSceme();
     }
 }
Beispiel #6
0
        public MainForm()
        {
            InitializeComponent();
            var materialSkinManager = MaterialSkinManager.Instance;

            materialSkinManager.AddFormToManage(this);
            Other.RefreshColorSceme();

            Directory.CreateDirectory(Environment.CurrentDirectory + "\\config");
            Directory.CreateDirectory(Environment.CurrentDirectory + "\\temp");
            RefreshUserData();
            Settings.ReadSettings();
            materialSingleLineTextField2.Text = Settings.maxMission.ToString();
            LowCache.Checked         = Settings.lowcache;
            useoutland.Checked       = Settings.outland;
            materialLabel2.BackColor = Other.GetBackGroundColor();
        }