private void initializeProgram() { Base.Program.GlobalEvents uiMethods = new Base.Program.GlobalEvents(this); btnMin.Click += uiMethods.btnMin_Click; btnClose.Click += uiMethods.btnClose_Click; paneTitleBar.MouseDown += uiMethods.frm_MouseDown; paneTitleBar.MouseMove += uiMethods.frm_MouseMove; }
private void initializeProgram() { cleanFields(); cmbSubjects.SelectedIndex = 3; Base.Program.GlobalEvents uiMethods = new Base.Program.GlobalEvents(this); btnMin.Click += uiMethods.btnMin_Click; btnClose.Click += uiMethods.btnClose_Click; paneTitleBar.MouseDown += uiMethods.frm_MouseDown; paneTitleBar.MouseMove += uiMethods.frm_MouseMove; }