示例#1
0
        //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();
            }
        }