Exemplo n.º 1
0
        public GoogleIntegratedCalendarControl(ref GoogleCalendarSynchronizer.GoogleCalendarSynchronizer calendarSynchronizer)
        {
            InitializeComponent();

            CultureInfo culture = new CultureInfo(GlobalSettings.LanguagePrefix);

            Thread.CurrentThread.CurrentCulture   = culture;
            Thread.CurrentThread.CurrentUICulture = culture;

            //Monthview colors
            monthView.MonthTitleColor            = monthView.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC");
            monthView.ArrowsColor                = CalendarColorTable.FromHex("#77A1D3");
            monthView.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52");
            monthView.DaySelectedTextColor       = monthView.ForeColor;

            DateTime now = DateTime.Now;

            calendar.ViewStart = new DateTime(now.Year, now.Month, now.Day, 0, 0, 0);
            calendar.ViewEnd   = new DateTime(now.Year, now.Month, now.Day, 23, 59, 59);
            findEventUserControl.SetPickedDateLabel(calendar.ViewStart, calendar.ViewEnd);

            ezkoController = GlobalSettings.EzkoController;
            visitUserControl.SetCalendarControl(this);
            visitUserControl.SetEzkoController(ezkoController);

            //findEventUserControl.SetEzkoController(ezkoController);
            findEventUserControl.SetVisitUserControl(visitUserControl);
            findEventUserControl.SetCalendarControl(this);
            findEventUserControl.UpdateControl();

            InitializeControl();
            calendarSynchronizer = this.calendarSynchronizer;
        }
        public SchedulingCalendar(string schedulerID, SchedulerMain schedulerMain)
        {
            InitializeComponent();
            monthView1.MonthTitleColor            = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC");
            monthView1.ArrowsColor                = CalendarColorTable.FromHex("#77A1D3");
            monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52");
            monthView1.DaySelectedTextColor       = monthView1.ForeColor;
            this.MdiParent     = schedulerMain;
            this.schedulerMain = schedulerMain ?? new SchedulerMain("123");
            this.WindowState   = FormWindowState.Maximized;

            DataTable providersForScheduler = schedulersBelongingToProviderTableAdapter.GetDataBySchedulerID(schedulerID);

            ProviderComboBox.DisplayMember = "ProviderName";
            ProviderComboBox.ValueMember   = "ProviderID";

            ProviderComboBox.DataSource = providersForScheduler;
            panel2.Hide();
            CancelButton1.Hide();
            calendar1.Location = new Point(213, 75);
            calendar1.Dock     = DockStyle.Bottom;
            panel1.Dock        = DockStyle.Top;


            calendar1.SetViewRange(DateTime.Today, DateTime.Today.Add(new TimeSpan(7, 0, 0, 0)));

            this.MdiParent   = schedulerMain;
            this.WindowState = FormWindowState.Maximized;
            Type             = "Scheduler";
        }
Exemplo n.º 3
0
 public CalendarHome()
 {
     InitializeComponent();
     monthView1.MonthTitleColor            = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC");
     monthView1.ArrowsColor                = CalendarColorTable.FromHex("#77A1D3");
     monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52");
     monthView1.DaySelectedTextColor       = monthView1.ForeColor;
 }
        public DemoForm()
        {
            InitializeComponent();

            //Monthview colors
            monthView1.MonthTitleColor            = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#979797"); //左邊日期上方條 的顏色
            monthView1.ArrowsColor                = CalendarColorTable.FromHex("#ffffff");                                      //左邊 左右選單的顏色
            monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#e1ff9e");                                      //左邊日歷選日期時候的顏色
            monthView1.DaySelectedTextColor       = monthView1.ForeColor;
        }
        public ConfigureSchedule(SimpleSchedulerData data)
        {
            InitializeComponent();

            monthView1.MonthTitleColor            = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC");
            monthView1.ArrowsColor                = CalendarColorTable.FromHex("#77A1D3");
            monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52");
            monthView1.DaySelectedTextColor       = monthView1.ForeColor;


            _data = data;
        }
Exemplo n.º 6
0
        public DemoForm()
        {
            InitializeComponent();

            //Monthview colors
            if (this.calendar1.RendererMode == RendererModes.Professional)
            {
                monthView1.MonthTitleTextColor        = Color.Navy;
                monthView1.MonthTitleColor            = CalendarColorTable.FromHex("#C2DAFC");
                monthView1.ArrowsColor                = CalendarColorTable.FromHex("#77A1D3");
                monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52");
                monthView1.DaySelectedTextColor       = monthView1.ForeColor;
            }
        }
Exemplo n.º 7
0
        public MindMateCalendar(TaskPlugin taskPlugin)
        {
            InitializeComponent();

            this.taskPlugin = taskPlugin;

            //Monthview colors
            monthView1.MonthTitleColor            = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC");
            monthView1.ArrowsColor                = CalendarColorTable.FromHex("#77A1D3");
            monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52");
            monthView1.DaySelectedTextColor       = monthView1.ForeColor;

            BuildContextMenu();
        }
Exemplo n.º 8
0
        public ScheduleModule()
        {
            InitializeComponent();
            //Loading and placing moved to LoadItems Event
            loadEvents();
            PlaceItems();

            //Monthview colors
            monthView1.MonthTitleColor = CalendarColorTable.FromHex("#262626");
            //monthView1.ForeColor = Color.Wheat;
            //monthView1.ArrowsColor = CalendarColorTable.FromHex("#77A1D3");
            //monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52");
            monthView1.DaySelectedTextColor = monthView1.ForeColor;

            calendar1.BackColor = Color.Black;
        }
Exemplo n.º 9
0
        public DemoForm()
        {
            InitializeComponent();
            monthView1.Font = new Font("Segoe UI", 8, FontStyle.Regular, GraphicsUnit.Point, 0);

            //monthView1.Font = new Font("Segoe UI", 8);

            //Monthview colors
            monthView1.MonthTitleColor            = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC");
            monthView1.ArrowsColor                = CalendarColorTable.FromHex("#77A1D3");
            monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52");
            monthView1.DaySelectedTextColor       = monthView1.ForeColor;

            //monthView1.Font = new Font("Segoe UI", 8);
            Shown += DemoForm_Shown;
        }
Exemplo n.º 10
0
 public Form1()
 {
     InitializeComponent();
     monthView1.MonthTitleColor            = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC");
     monthView1.ArrowsColor                = CalendarColorTable.FromHex("#77A1D3");
     monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52");
     monthView1.DaySelectedTextColor       = monthView1.ForeColor;
     TimeIntervalComboBox.DataSource       = new[]
     {
         MonthViewSelection.Manual,
         MonthViewSelection.Day,
         MonthViewSelection.Week,
         MonthViewSelection.Month
     };
     TimeIntervalComboBox.SelectedItem = MonthViewSelection.Week;
 }
        public SchedulingCalendar(int patientID, ProviderMain providerMain, PatientHomePage patientHome)
        {
            InitializeComponent();
            monthView1.MonthTitleColor            = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC");
            monthView1.ArrowsColor                = CalendarColorTable.FromHex("#77A1D3");
            monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52");
            monthView1.DaySelectedTextColor       = monthView1.ForeColor;
            this.MdiParent     = providerMain;
            this.thisPatientID = patientID;
            this.WindowState   = FormWindowState.Maximized;
            ProviderComboBox.Hide();
            SelectProviderLabel.Hide();
            this.thisProviderID = providerMain.GetProviderID();
            panel1.Hide();
            this.patientHome = patientHome;

            Type = "Provider";
        }
Exemplo n.º 12
0
        //private GoogleCalendarSynchronizer.GoogleCalendarSynchronizer calendarSynchronizer;
        public AmbulantionUserControl(GoogleCalendarSynchronizer.GoogleCalendarSynchronizer calendarSynchronizer)
        {
            InitializeComponent();

            monthView.MonthTitleColor            = monthView.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC");
            monthView.ArrowsColor                = CalendarColorTable.FromHex("#77A1D3");
            monthView.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52");
            monthView.DaySelectedTextColor       = monthView.ForeColor;
            DateTime now = DateTime.Now;

            monthView.EventsDurationByDate = new Dictionary <DateTime, int>();

            ezkoController = GlobalSettings.EzkoController;

            visitUserControl.SetEzkoController(ezkoController);
            visitUserControl.SetAmbulantionControl(this);
            visitUserControl.SetCalendarSynchronizer(calendarSynchronizer);

            filterEventUserControl.SetEzkoController(ezkoController);
            filterEventUserControl.SetAmbulantionContorlPanel(this);
            filterEventUserControl.SetTitleLabel(monthView.SelectionStart, monthView.SelectionEnd);
        }
        public SchedulingCalendar(string providerID, ProviderMain providerMain)
        {
            InitializeComponent();
            this.thisProviderID = providerID;
            this.MdiParent      = providerMain;

            providerIDList.Add(thisProviderID);

            //Monthview colors
            monthView1.MonthTitleColor            = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC");
            monthView1.ArrowsColor                = CalendarColorTable.FromHex("#77A1D3");
            monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52");
            monthView1.DaySelectedTextColor       = monthView1.ForeColor;

            //Initialize only double clicking for physicians
            this.calendar1.ItemDoubleClick += new System.Windows.Forms.Calendar.Calendar.CalendarItemEventHandler(this.calendar1_ItemDoubleClick);

            this.providerMain = providerMain ?? new ProviderMain(thisProviderID, thisProviderID);

            ProviderComboBox.Hide();
            SelectProviderLabel.Hide();

            panel1.Hide();

            calendar1.Location = new Point(213, 0);
            calendar1.Dock     = DockStyle.Top;


            calendar1.SetViewRange(DateTime.Today, DateTime.Today.Add(new TimeSpan(7, 0, 0, 0)));

            this.MdiParent   = providerMain;
            this.WindowState = FormWindowState.Maximized;
            Type             = "Provider";

            CancelButton2.Hide();
        }