private void HyForm_FormClosing(object sender, FormClosingEventArgs e) { //保存表格样式 WindDataManager.SaveGridViewLayout(gridView1, this.Name); //保存布局样式 WindDataManager.SaveControlLayout(layoutControl1, this.Name); }
private void btnSave_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; try { WindDataManager.SaveGridViewLayout(this.gridView1, this.Name); } catch (Exception ex) { UserMessages.ShowInfoBox(ex.Message); } finally { this.Cursor = Cursors.Default; } }
private void btnSaveLayout_Click(object sender, EventArgs e) { WindDataManager.SaveGridViewLayout(vW_AllAccountantSalaryGridview, this.Name); }