private void FormLoad(object sender, EventArgs e) { this.Resize += _Resize; Cursor.Current = Cursors.WaitCursor; messageText.Text = Messaging.textMessage; nickname.Validating += Valid.TextValidating; phone.Validating += Valid.TextValidating; password.Validating += Valid.TextValidating; gridView.DataSource = _dt; gridView.Columns[0].Width = 50; gridView.Columns[1].Width = 100; gridView.Columns[2].Width = 100; gridView.Columns[3].Width = 100; gridView.Columns[4].Width = 106; gridView.Columns[5].Width = 100; gridView.Columns[6].Width = 100; gridView.Columns[7].Width = 100; gridView.Columns[8].Width = 100; gridView.Columns[9].Width = 50; gridView.AllowUserToAddRows = false; gridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect; _form_resize._get_initial_size(); _form_resize._resize(); }
private void formLoad(object sender, EventArgs e) { this.Resize += _Resize; _dt = _repo.GetCustomers(); gridView.DataSource = _dt; gridView.Columns[0].Width = 50; gridView.Columns[1].Width = 100; gridView.Columns[2].Width = 100; gridView.Columns[3].Width = 100; gridView.Columns[4].Width = 106; gridView.Columns[5].Width = 100; gridView.Columns[6].Width = 100; gridView.Columns[7].Width = 100; gridView.Columns[8].Width = 100; gridView.Columns[9].Width = 50; gridView.AllowUserToAddRows = false; gridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect; _form_resize._get_initial_size(); _form_resize._resize(); }
public Meni(IExcelDoc excel) { InitializeComponent(); _excel = excel; gridView.ReadOnly = true; gridView.AllowUserToResizeColumns = false; gridView.AllowUserToResizeRows = false; _form_resize = new AutoSize(this); this.Resize += _form_resize.Resize; _form_resize._get_initial_size(); this.KeyUp += Valid._KeyUp; browse.Click += browse_Click; _print.Click += print_Click; _search.TextChanged += _pretraga_TextChanged; _open.Click += open_Click; this._open.Enabled = false; this._print.Enabled = false; this._search.Enabled = false; }