public ScoreStatistics(MainForm p, string id, string name) { try { data = new ListSem(); CONNECT = new Connect(); this.UserID = id; this.parent1 = p; this.sNameOfSem = name; InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); data.Read(UserID); SetColor(Properties.Settings.Default.Color); CreateChart(); parent = "mainform"; //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(); } }
public Documents(MainForm parent, List <string> data) { this.parent = parent; imgList = new ImageList(); InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); listView1.SmallImageList = imgList; if (data.Count > 5) { sLessonInfo = new string[5]; //tbxSemNaML.Text 0 //cbxDIWML.Text 1 //tbxSubNaML.Text 2 //tbxSubIDML.Text 3 //cbxTimeOrderM.Text 4 for (int i = 0; i < data.Count - 1; i++) { this.sLessonInfo[i] = data[i]; } this.sUserID = data[5]; } this.listView1.View = View.Details; SetColor(Properties.Settings.Default.Color); }
public DeadlineStatistic(MainForm parent, string ID_User) { try { Connection = new Connect(); this.parent = parent; this.ID_User = ID_User; TimeCondition = " AND DATEDIFF(DAY, DATESUBMIT, GETDATE()) <= 30"; UpdateTimeCondition(); InitializeComponent(); SetColor(Properties.Settings.Default.Color); chartStatistic.Titles.Add("THỐNG KÊ DEADLINE THEO MÔN HỌC"); DeadlineStatisticBySubject(Queries[0], "Số lượng deadline"); DeadlineStatisticBySubject(Queries[1], "Số deadline đã hoàn thành"); DeadlineStatisticBySubject(Queries[2], "Số deadline chưa hoàn thành"); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); bExit.BackColor = Color.Transparent; } 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(); } }
public SemForm(MainForm p, string id) { try { data = new ListSem(); CONNECT = new Connect(); this.UserID = id; 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); data.Read(UserID); data.ShowSemToGridView(dtgvSem); lSum.Text = "Số tín chỉ: " + data.SumOfCre.ToString(); lAver.Text = "Điểm TB: " + data.Average.ToString(); bMod.Visible = bDel.Visible = false; data.SEMESTERS.Clear(); SetColor(Properties.Settings.Default.Color); } catch (Exception err) { MessageBox.Show("Đã xảy ra lỗi, vui lòng liên hệ đội ngũ phát triển!"); ReportError rp = new ReportError(this, err); rp.Show(); } }
public AddLessonForm() { InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); }
public ScoreStatistics() { InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); }
public Signup() { m_aeroEnabled = false; InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); }
public LoginForm() { InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); SetColor(Properties.Settings.Default.Color); }
public ReportError(Exception e) { this.e = e; InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); SetColor(Properties.Settings.Default.Color); }
public Menu(Instellingen user) { InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); this.BackgroundImage = Properties.Resources.achtergrond; userInstellingen = user; ster.Text = userInstellingen.sterPunten.ToString(); }
public Notifi() { this.Opacity = 0.0; this.StartPosition = FormStartPosition.Manual; InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); SetColor(Properties.Settings.Default.Color); }
public AddDeadline(MainForm parent) { this.parent = parent; InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); SetColor(Properties.Settings.Default.Color); }
public StartForm() { InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); panelCenter(); playMusic(); }
public void Graphicload() { int style = NativeWinAPI.GetWindowLong(Company_add.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(Company_add.Handle, NativeWinAPI.GWL_EXSTYLE, style); int style1 = NativeWinAPI.GetWindowLong(Company_tab.Handle, NativeWinAPI.GWL_EXSTYLE); style1 |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(Company_tab.Handle, NativeWinAPI.GWL_EXSTYLE, style); }
public GameScreen() { RestHelper.GetServerIp(); Sg.LoginForm.Hide(); InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); button1.FlatAppearance.MouseOverBackColor = button1.BackColor; button1.FlatAppearance.MouseDownBackColor = button1.BackColor; lblOne.ForeColor = Sg.SelectedColor; updateUi(); Sg.ix = new List <Iten>(); Sg.Reference.Child("Pool").AsObservable <Pool>().Subscribe(i => { if (i.Object != null) { Sg.ix = i.Object.Items; } else { Sg.ix = null; } }); Sg.Reference.Child("Gamedata1").AsObservable <Player>().Subscribe(play => { try { if (play.Object != null) { if (play.Object.IsPlaying) { Player = play.Object; } else { Player = null; } } else { Player = null; } } catch { } }); }
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 AboutUs(MainForm p) { InitializeComponent(); this.Size = new Size(810, 530); this.parent = p; SetColor(Properties.Settings.Default.Color); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); }
public ChangePass(MainForm form, string id, string pass) { InitializeComponent(); this.parent = form; this.sUserPass = pass; this.sID = id; int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); SetColor(Properties.Settings.Default.Color); }
public ChangeEmailForm(MainForm parent, string id) { InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); this.parent = parent; this.sID = id; GetEncodedPasswd(); SetColor(Properties.Settings.Default.Color); }
public AddLessonForm(MainForm parent, string ID, string semester) { this.parent = parent; this.sUserID = ID; InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); this.tbxSemNaAL.Text = semester; SetColor(Properties.Settings.Default.Color); }
public HFDesk() { if (!System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory + "config.ini")) { MessageBox.Show("Cant't find configuration file, please contact with administror!"); System.Environment.Exit(0); } DealINI._inipath = AppDomain.CurrentDomain.BaseDirectory + "config.ini"; if (GetLicenseFromFile()) { CheckLicense(_license); } //ReadIni(); #if !DEBUG if (MD5Handler.verifyMd5Hash(_license)) { _licensedPorduct = true; } //_licensedPorduct = true; #endif #if DEBUG _licensedPorduct = true; #endif /* * * * * if (!CheckServerAvailable(_server)) * { * MessageBox.Show("Cant't connect server, please contact with administror!"); * System.Environment.Exit(0); * } * */ InitializeComponent(); /* * this is avoid flicker */ int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); }
public NoteForm(MainForm parent, string userID) { InitializeComponent(); this.parent = parent; this.UserID = userID; this.oldName = ""; this.FormBorderStyle = FormBorderStyle.Sizable; this.btnSaveNote.BackColor = this.btnExitNote.BackColor = Color.Transparent; SetColor(Properties.Settings.Default.Color); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); }
public void Graphicload() { int style = NativeWinAPI.GetWindowLong(Total.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(Total.Handle, NativeWinAPI.GWL_EXSTYLE, style); int style1 = NativeWinAPI.GetWindowLong(panel1.Handle, NativeWinAPI.GWL_EXSTYLE); style1 |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(panel1.Handle, NativeWinAPI.GWL_EXSTYLE, style); int style2 = NativeWinAPI.GetWindowLong(panel2.Handle, NativeWinAPI.GWL_EXSTYLE); style2 |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(panel2.Handle, NativeWinAPI.GWL_EXSTYLE, style); }
public void Graphicload() { int style = NativeWinAPI.GetWindowLong(Top_panel.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(Top_panel.Handle, NativeWinAPI.GWL_EXSTYLE, style); int style1 = NativeWinAPI.GetWindowLong(Left_panel.Handle, NativeWinAPI.GWL_EXSTYLE); style1 |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(Left_panel.Handle, NativeWinAPI.GWL_EXSTYLE, style); int style2 = NativeWinAPI.GetWindowLong(Break_panel.Handle, NativeWinAPI.GWL_EXSTYLE); style2 |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(Break_panel.Handle, NativeWinAPI.GWL_EXSTYLE, style); int style3 = NativeWinAPI.GetWindowLong(panel5.Handle, NativeWinAPI.GWL_EXSTYLE); style3 |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(panel5.Handle, NativeWinAPI.GWL_EXSTYLE, style); }
public ModLessonForm(MainForm parent, List <string> data, string ID) { try { InitializeComponent(); int style = NativeWinAPI.GetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE); style |= NativeWinAPI.WS_EX_COMPOSITED; NativeWinAPI.SetWindowLong(this.Handle, NativeWinAPI.GWL_EXSTYLE, style); this.parent = parent; this.sUserID = ID; this.sOldInfo = new string[6]; if (data.Count > 4) { tbxSemNaML.Text = data[0]; cbxDIWML.Text = data[1]; tbxSubNaML.Text = data[2]; tbxSubIDML.Text = data[3]; cbxTimeOrderM.Text = data[4]; for (int i = 0; i < data.Count; i++) { this.sOldInfo[i] = data[i]; } this.sOldInfo[5] = this.sUserID; } SetColor(Properties.Settings.Default.Color); } 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(); } }