//private void InitializeControlConfig() //{ // _textBoxWidth = this.Width; //} private async void btnAddNote_Click_1(object sender, EventArgs e) { PetNotesDataAdapter._groupControlID = Guid.NewGuid(); //Textbox SharedControlManager._formWidth = this.Width; await SharedControlManager.ClearAllControls(); await TextboxManager.DeactivatePreviousNotes(); await PetNotesDataAdapter.AddNewRecord(); if (SharedControlManager.panelControl.Count == 0) { await SharedControlManager.LoadAllControls(); await TextboxManager.FocusOnLastActiveTextbox(); } }
private async void Form1_SizeChanged(object sender, EventArgs e) { // PanelNotes.Size = new Size(this.Size.Width - 60, this.Size.Height); SharedControlManager.ResizePanel(this.Size.Width); //_textManager.ResizeWidthOfAllControls(PanelNotes.Controls, _textboxDefaultPrefixName, this.Size.Width); }