• 大小: 362KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-06-17
  • 语言: C#
  • 标签: good  

资源简介

C#实现磁盘调度的四种算法,图形化界面显示(折线图),能动态显示画图过程(操作系统的课设)

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting;
namespace YLL100
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        Random GetRandom = new Random();
        
        Series series1;
        int sum = 0;
        bool flag = false;
        public int d = 0;
        Method method = new Method();
       
        private void CreateChart()
        {
            ChartArea chartArea = new ChartArea();
            chartArea.Name = “FirstArea“;

            chartArea.BackColor = Color.AliceBlue;                      //背景色
            chartArea.BackSecondaryColor = Color.White;                 //渐变背景色
            chartArea.BackGradientstyle = Gradientstyle.TopBottom;      //渐变方式
            chartArea.BackHatchstyle = ChartHatchstyle.None;            //背景阴影
            chartArea.BorderDashstyle = ChartDashstyle.NotSet;          //边框线样式
            chartArea.BorderWidth = 1;                                  //边框宽度
            chartArea.BorderColor = Color.Black;

           
            chartArea.AxisX.MajorGrid.Enabled = true;
            chartArea.AxisY.MajorGrid.Enabled = true;

            
            // Axis
            chartArea.AxisY.title = @“磁道“;
            chartArea.AxisY.LabelAutoFitMinFontSize = 5;
            chartArea.AxisY.LineWidth = 2;
            chartArea.AxisY.LineColor = Color.Black;
            chartArea.AxisY.Enabled = AxisEnabled.True;

            chartArea.AxisX.title = @“数据点“;
            chartArea.AxisX.IsLabelAutoFit = true;
            chartArea.AxisX.LabelAutoFitMinFontSize = 5;
            chartArea.AxisX.Labelstyle.Angle = -15;
           


            chartArea.AxisX.Labelstyle.IsEndLabelVisible = true;        //show the last label
            chartArea.AxisX.Interval = 10;         
            chartArea.AxisX.TextOrientation = TextOrientation.Auto;
            chartArea.AxisX.LineWidth = 2;
            chartArea.AxisX.LineColor = Color.Black;
            chartArea.AxisX.Enabled = AxisEnabled.True;
            chartArea.AxisX.Crossing = 0;
            
            chartArea.Position.Height = 90;
            chartArea.Position.Width = 90;
            chartArea.Position.X = 5;
            chartArea.Position.Y = 7;


            chartArea.CursorX.IsUserEnabled = true;
            chartArea.CursorX.IsUserSelectionEnabled = true;

            chartArea.AxisX.ScaleView.Zoomable = true;
            //将滚动内嵌到坐标轴中
            chartArea.AxisX.ScrollBar.IsPositionedInside = true;
            // 设置滚动条的大小
            chartArea.AxisX.ScrollBar.Size = 20;
            // 设置滚动条的按钮的风格,下面代码是将所有滚动条上的按钮都显示出来
            chartArea.AxisX.ScrollBar.Buttonstyle = ScrollBa

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-27 19:03  .vs\
     目录           0  2018-11-27 19:03  .vs\YLL100\
     目录           0  2018-11-27 19:03  .vs\YLL100\v15\
     文件       62464  2018-12-01 21:07  .vs\YLL100\v15\.suo
     目录           0  2018-11-27 19:03  .vs\YLL100\v15\Server\
     目录           0  2018-11-27 19:03  .vs\YLL100\v15\Server\sqlite3\
     文件           0  2018-11-25 14:33  .vs\YLL100\v15\Server\sqlite3\db.lock
     文件      659456  2018-11-29 22:29  .vs\YLL100\v15\Server\sqlite3\storage.ide
     文件       32768  2018-12-01 21:06  .vs\YLL100\v15\Server\sqlite3\storage.ide-shm
     文件     4140632  2018-11-30 15:52  .vs\YLL100\v15\Server\sqlite3\storage.ide-wal
     文件        1117  2018-11-25 14:33  YLL100.sln
     目录           0  2018-11-30 12:42  YLL100\
     文件         189  2018-11-25 14:32  YLL100\App.config
     目录           0  2018-11-27 19:03  YLL100\bin\
     目录           0  2018-11-27 19:03  YLL100\bin\Debug\
     文件       22528  2018-11-30 15:52  YLL100\bin\Debug\YLL100.exe
     文件         189  2018-11-25 14:32  YLL100\bin\Debug\YLL100.exe.config
     文件       48640  2018-11-30 15:52  YLL100\bin\Debug\YLL100.pdb
     文件       11512  2018-11-30 12:42  YLL100\Form1.cs
     文件       16756  2018-11-28 18:29  YLL100\Form1.Designer.cs
     文件        6179  2018-11-28 18:29  YLL100\Form1.resx
     文件       11942  2018-11-30 11:01  YLL100\Method.cs
     目录           0  2018-11-27 19:03  YLL100\obj\
     目录           0  2018-11-28 18:29  YLL100\obj\Debug\
     文件        1622  2018-11-25 20:34  YLL100\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7377  2018-11-27 09:53  YLL100\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件           0  2018-11-25 14:32  YLL100\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
     文件           0  2018-11-25 14:32  YLL100\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
     文件           0  2018-11-25 14:32  YLL100\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
     目录           0  2018-11-27 18:58  YLL100\obj\Debug\TempPE\
     文件          42  2018-11-27 19:29  YLL100\obj\Debug\YLL100.csproj.CoreCompileInputs.cache
............此处省略15个文件信息

评论

共有 条评论

相关资源