Beispiel #1
0
        private static async void PetNotesExpandCollapse_Click(object sender, EventArgs e)
        {
            Button btn             = (Button)sender;
            var    ButtonNameSplit = btn.Name.Split('_');

            UpdateNoteStatusToActive(ButtonNameSplit[1], btn.Text);
            await SharedControlManager.ClearAllControls();

            if (SharedControlManager.panelControl.Count == 0)
            {
                await SharedControlManager.LoadAllControls();
                await FocusOnSelectedButton(ButtonNameSplit[1]);
            }
        }
Beispiel #2
0
 public static async Task ResizeTextboxes(int newWidth)
 {
     SharedControlManager._formWidth = newWidth;
     SharedControlManager.LoadAllControls();
 }