Пример #1
0
        public DiaSem(SemForm p, string lable)
        {
            this.parent = p;
            InitializeComponent();
            int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE);

            style |= NativeWinAPI.WS_EX_COMPOSITED;
            NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style);

            lDiaSem.Text = lable;
            SetColor(Properties.Settings.Default.Color);
        }
        public ScoreStatistics(SemForm p, string id)
        {
            try
            {
                data         = new ListSem();
                CONNECT      = new Connect();
                this.UserID  = id;
                this.parent2 = p;
                InitializeComponent();

                data.Read(UserID);
                SetColor(Properties.Settings.Default.Color);
                parent = "semform";

                CreateChartOfSemesters();
                //var canvas = new Bunifu.DataViz.Canvas();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Đã xảy ra lỗi, vui lòng liên hệ đội ngũ phát triển!");
                ReportError rp = new ReportError(this, ex);
                rp.Show();
            }
        }