Example #1
0
 private void button_Calc_Click(object sender, EventArgs e)
 {
     if (this.dataGridView.Rows.Count <= 1)
     {
         return;
     }
     DataGridView_Operate.CalcGPA(this.dataGridView, this.textBox_Output);
     this.textBox_Output.Text += "-----Done-----" + Environment.NewLine;
 }
Example #2
0
 public MainForm()
 {
     AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
     InitializeComponent();
     EventHandle();
     DragHandle();
     list = new List <InfoVo>();
     DataGridView_Operate.Init(this.dataGridView);
     //MessageBox.Show(GPA_CALC.isNum(".51.6").ToString());
     //MessageBox.Show(GPA_CALC.Convert2GPA(92.5).ToString());
 }
Example #3
0
 private void tsb_data_import_Click(object sender, EventArgs e)
 {
     DataGridView_Operate.ImportExcel2DGV(this.dataGridView);
     //MessageBox.Show("导入成功");
 }
Example #4
0
 private void tsb_data_export_Click(object sender, EventArgs e)
 {
     DataGridView_Operate.ExportData2Excel(this.dataGridView);
 }
Example #5
0
 private void button2_Click(object sender, EventArgs e)
 {
     DataGridView_Operate.Remove(this.dataGridView);
 }