using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Sarand.Win.Forms.Utils; using Sarand.PatientMgr.Win.Forms.Base; using Sarand.PatientMgr.App.Forms; using Sarand.PatientMgr.Win.Forms.App; using Sarand.PatientMgr.Win.Forms.Config; namespace Sarand.PatientMgr.App.Panels { //======================================================================= public partial class SpmPanel_ScheduleControl : SpmPanel { //------------------------------------------------------------------- // Configuration. public new class Config : SpmPanel.Config { } //------------------------------------------------------------------- // Data members. private Config config = null; //------------------------------------------------------------------- // Construction. public SpmPanel_ScheduleControl () { InitializeComponent(); } protected override void Dispose (bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } //------------------------------------------------------------------- // Properties. public SaPatientMgrForm MainForm { get; set; } //------------------------------------------------------------------- // I n i t i a l i s a t i o n //------------------------------------------------------------------- protected override void OnCreateControl () { base.OnCreateControl(); if (this.IsDesignerHosted()) return; SetControlActivity(); } //------------------------------------------------------------------- // C o n t r o l A c t i v i t y //------------------------------------------------------------------- protected override void SetControlActivity () { SetControlsReadOnly(); } protected override void SetControlsReadOnly () { } //------------------------------------------------------------------- // P a n e l E v e n t s //------------------------------------------------------------------- private void buttonConfig_Click (object sender, EventArgs e) { SpmForm_Config.Config formConfig = new SpmForm_Config.Config(); using (SpmForm_Config form = new SpmForm_Config(formConfig)) { if (form.ShowDialog() == DialogResult.OK) { // ToDo Refresh schedule view. } } } private void buttonExit_Click (object sender, EventArgs e) { MainForm.Close(); } //------------------------------------------------------------------- } //======================================================================= }