Esempio n. 1
0
        private void escolherCor(object sender, DayView vista)
        {
            Marcacao marca = new Marcacao();

            marca = marca.saberMarcacao(vista.SelectedAppointment.IdMarcacao);

            if (((ToolStripMenuItem)sender).Name.Equals("mItemAtrasado"))
            {
                marca.Cor = Color.Yellow.ToArgb();
                vista.SelectedAppointment.Color = Color.Yellow;
            }
            else if (((ToolStripMenuItem)sender).Name.Equals("mItemOK"))
            {
                marca.Cor = Color.Green.ToArgb();
                vista.SelectedAppointment.Color = Color.Green;
            }
            else if (((ToolStripMenuItem)sender).Name.Equals("mItemUrgencia"))
            {
                marca.Cor = Color.Red.ToArgb();
                vista.SelectedAppointment.Color = Color.Red;
            }
            else if (((ToolStripMenuItem)sender).Name.Equals("mItemChegou"))
            {
                marca.Cor = Color.Blue.ToArgb();
                vista.SelectedAppointment.Color = Color.Blue;
            }
            else if (((ToolStripMenuItem)sender).Name.Equals("mItemFaltou"))
            {
                marca.Cor = Color.Black.ToArgb();
                vista.SelectedAppointment.Color = Color.Black;
            }
            else
            {
                marca.Cor = Color.White.ToArgb();
                vista.SelectedAppointment.Color = Color.White;
            }
            marca.editarMarcacao(vista.SelectedAppointment.IdMarcacao, marca.IdCliente, marca.DataHoraInicio, marca.DataHoraFim, marca.IdTipoTratamento, marca.Observacoes, marca.Cor);
        }
Esempio n. 2
0
 public PinkRenderer(DayView dayview)
     : base(dayview)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     Calendar.DrawTool drawTool3 = new Calendar.DrawTool();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WeekReport));
     this.dayView       = new Calendar.DayView();
     this.backButton    = new System.Windows.Forms.Button();
     this.forwardButton = new System.Windows.Forms.Button();
     this.toolTip       = new System.Windows.Forms.ToolTip(this.components);
     this.monthCalendar = new System.Windows.Forms.MonthCalendar();
     this.curWeekButton = new System.Windows.Forms.Button();
     this.refreshButton = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // dayView
     //
     drawTool3.DayView                = this.dayView;
     this.dayView.ActiveTool          = drawTool3;
     this.dayView.AllowInplaceEditing = false;
     this.dayView.AllowNew            = false;
     this.dayView.Anchor              = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                               | System.Windows.Forms.AnchorStyles.Left)
                                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.dayView.DaysToShow         = 7;
     this.dayView.Font               = new System.Drawing.Font("Microsoft Sans Serif", 8F);
     this.dayView.HalfHourHeight     = 34;
     this.dayView.Location           = new System.Drawing.Point(186, 3);
     this.dayView.Name               = "dayView";
     this.dayView.SelectionEnd       = new System.DateTime(((long)(0)));
     this.dayView.SelectionStart     = new System.DateTime(((long)(0)));
     this.dayView.Size               = new System.Drawing.Size(190, 333);
     this.dayView.StartDate          = new System.DateTime(((long)(0)));
     this.dayView.TabIndex           = 0;
     this.dayView.WorkingHourEnd     = 23;
     this.dayView.WorkingHourStart   = 0;
     this.dayView.WorkingMinuteEnd   = 59;
     this.dayView.WorkingMinuteStart = 0;
     //
     // backButton
     //
     this.backButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.backButton.Image     = ((System.Drawing.Image)(resources.GetObject("backButton.Image")));
     this.backButton.Location  = new System.Drawing.Point(11, 20);
     this.backButton.Name      = "backButton";
     this.backButton.Size      = new System.Drawing.Size(24, 23);
     this.backButton.TabIndex  = 1;
     this.toolTip.SetToolTip(this.backButton, "Past week");
     this.backButton.Click += new System.EventHandler(this.backButton_Click);
     //
     // forwardButton
     //
     this.forwardButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.forwardButton.Image     = ((System.Drawing.Image)(resources.GetObject("forwardButton.Image")));
     this.forwardButton.Location  = new System.Drawing.Point(150, 20);
     this.forwardButton.Name      = "forwardButton";
     this.forwardButton.Size      = new System.Drawing.Size(24, 23);
     this.forwardButton.TabIndex  = 3;
     this.toolTip.SetToolTip(this.forwardButton, "Next week");
     this.forwardButton.Click += new System.EventHandler(this.forwardButton_Click);
     //
     // toolTip
     //
     this.toolTip.AutoPopDelay = 5000;
     this.toolTip.InitialDelay = 100;
     this.toolTip.ReshowDelay  = 50;
     //
     // monthCalendar
     //
     this.monthCalendar.Enabled         = false;
     this.monthCalendar.FirstDayOfWeek  = System.Windows.Forms.Day.Sunday;
     this.monthCalendar.Location        = new System.Drawing.Point(6, 17);
     this.monthCalendar.Name            = "monthCalendar";
     this.monthCalendar.ShowTodayCircle = false;
     this.monthCalendar.TabIndex        = 4;
     //
     // curWeekButton
     //
     this.curWeekButton.Location = new System.Drawing.Point(11, 184);
     this.curWeekButton.Name     = "curWeekButton";
     this.curWeekButton.Size     = new System.Drawing.Size(92, 23);
     this.curWeekButton.TabIndex = 5;
     this.curWeekButton.Text     = "Current Week";
     this.curWeekButton.UseVisualStyleBackColor = true;
     this.curWeekButton.Click += new System.EventHandler(this.curWeekButton_Click);
     //
     // refreshButton
     //
     this.refreshButton.Location = new System.Drawing.Point(11, 225);
     this.refreshButton.Name     = "refreshButton";
     this.refreshButton.Size     = new System.Drawing.Size(92, 23);
     this.refreshButton.TabIndex = 6;
     this.refreshButton.Text     = "Refresh Data";
     this.refreshButton.UseVisualStyleBackColor = true;
     this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
     //
     // WeekReport
     //
     this.Controls.Add(this.refreshButton);
     this.Controls.Add(this.curWeekButton);
     this.Controls.Add(this.forwardButton);
     this.Controls.Add(this.backButton);
     this.Controls.Add(this.dayView);
     this.Controls.Add(this.monthCalendar);
     this.Name = "WeekReport";
     this.Size = new System.Drawing.Size(384, 344);
     this.ResumeLayout(false);
 }
Esempio n. 4
0
 public Office11Renderer(DayView dayview)
     : base(dayview)
 {
 }
Esempio n. 5
0
 public AbstractRenderer(DayView dayview)
 {
     dayView = dayview;
 }
Esempio n. 6
0
 public Office11Renderer(DayView parent)
 {
     this.parent = parent;
 }
Esempio n. 7
0
 public GreyRenderer(DayView dayview)
     : base(dayview)
 {
 }
Esempio n. 8
0
 public GCCCrimsonRenderer(DayView parent)
 {
     this.parent = parent;
 }
Esempio n. 9
0
 public BlueRenderer(DayView dayview)
     : base(dayview)
 {
 }
Esempio n. 10
0
 public NightRenderer(DayView parent)
 {
     this.parent = parent;
 }
Esempio n. 11
0
 public RoundedRender(DayView dayview)
     : base(dayview)
 {
 }
Esempio n. 12
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     Calendar.DrawTool drawTool3 = new Calendar.DrawTool();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WeekReport));
     this.dayView = new Calendar.DayView();
     this.backButton = new System.Windows.Forms.Button();
     this.forwardButton = new System.Windows.Forms.Button();
     this.toolTip = new System.Windows.Forms.ToolTip(this.components);
     this.monthCalendar = new System.Windows.Forms.MonthCalendar();
     this.curWeekButton = new System.Windows.Forms.Button();
     this.refreshButton = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // dayView
     //
     drawTool3.DayView = this.dayView;
     this.dayView.ActiveTool = drawTool3;
     this.dayView.AllowInplaceEditing = false;
     this.dayView.AllowNew = false;
     this.dayView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.dayView.DaysToShow = 7;
     this.dayView.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
     this.dayView.HalfHourHeight = 34;
     this.dayView.Location = new System.Drawing.Point(186, 3);
     this.dayView.Name = "dayView";
     this.dayView.SelectionEnd = new System.DateTime(((long)(0)));
     this.dayView.SelectionStart = new System.DateTime(((long)(0)));
     this.dayView.Size = new System.Drawing.Size(190, 333);
     this.dayView.StartDate = new System.DateTime(((long)(0)));
     this.dayView.TabIndex = 0;
     this.dayView.WorkingHourEnd = 23;
     this.dayView.WorkingHourStart = 0;
     this.dayView.WorkingMinuteEnd = 59;
     this.dayView.WorkingMinuteStart = 0;
     //
     // backButton
     //
     this.backButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.backButton.Image = ((System.Drawing.Image)(resources.GetObject("backButton.Image")));
     this.backButton.Location = new System.Drawing.Point(11, 20);
     this.backButton.Name = "backButton";
     this.backButton.Size = new System.Drawing.Size(24, 23);
     this.backButton.TabIndex = 1;
     this.toolTip.SetToolTip(this.backButton, "Past week");
     this.backButton.Click += new System.EventHandler(this.backButton_Click);
     //
     // forwardButton
     //
     this.forwardButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
     this.forwardButton.Image = ((System.Drawing.Image)(resources.GetObject("forwardButton.Image")));
     this.forwardButton.Location = new System.Drawing.Point(150, 20);
     this.forwardButton.Name = "forwardButton";
     this.forwardButton.Size = new System.Drawing.Size(24, 23);
     this.forwardButton.TabIndex = 3;
     this.toolTip.SetToolTip(this.forwardButton, "Next week");
     this.forwardButton.Click += new System.EventHandler(this.forwardButton_Click);
     //
     // toolTip
     //
     this.toolTip.AutoPopDelay = 5000;
     this.toolTip.InitialDelay = 100;
     this.toolTip.ReshowDelay = 50;
     //
     // monthCalendar
     //
     this.monthCalendar.Enabled = false;
     this.monthCalendar.FirstDayOfWeek = System.Windows.Forms.Day.Sunday;
     this.monthCalendar.Location = new System.Drawing.Point(6, 17);
     this.monthCalendar.Name = "monthCalendar";
     this.monthCalendar.ShowTodayCircle = false;
     this.monthCalendar.TabIndex = 4;
     //
     // curWeekButton
     //
     this.curWeekButton.Location = new System.Drawing.Point(11, 184);
     this.curWeekButton.Name = "curWeekButton";
     this.curWeekButton.Size = new System.Drawing.Size(92, 23);
     this.curWeekButton.TabIndex = 5;
     this.curWeekButton.Text = "Current Week";
     this.curWeekButton.UseVisualStyleBackColor = true;
     this.curWeekButton.Click += new System.EventHandler(this.curWeekButton_Click);
     //
     // refreshButton
     //
     this.refreshButton.Location = new System.Drawing.Point(11, 225);
     this.refreshButton.Name = "refreshButton";
     this.refreshButton.Size = new System.Drawing.Size(92, 23);
     this.refreshButton.TabIndex = 6;
     this.refreshButton.Text = "Refresh Data";
     this.refreshButton.UseVisualStyleBackColor = true;
     this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
     //
     // WeekReport
     //
     this.Controls.Add(this.refreshButton);
     this.Controls.Add(this.curWeekButton);
     this.Controls.Add(this.forwardButton);
     this.Controls.Add(this.backButton);
     this.Controls.Add(this.dayView);
     this.Controls.Add(this.monthCalendar);
     this.Name = "WeekReport";
     this.Size = new System.Drawing.Size(384, 344);
     this.ResumeLayout(false);
 }