Ejemplo n.º 1
0
 public WaitingCircleGlyph(BehaviorService service, XWaitingCircle control, Adorner adorner)
     : base(new WaitingCircleBehavior())
 {
     _bsService  = service;
     _waitCircle = control;
     _adorner    = adorner;
 }
Ejemplo n.º 2
0
        private void OnActivateCircle(object sender, System.EventArgs e)
        {
            XWaitingCircle wc = Control as XWaitingCircle;

            GetPropertyByName("Activate").SetValue(wc, !wc.Activate);
            //if (wc != null) wc.Activate = !wc.Activate;
        }
Ejemplo n.º 3
0
        private void OnAntialias(object sender, EventArgs e)
        {
            XWaitingCircle wc = (XWaitingCircle)_iss.PrimarySelection;

            TypeDescriptor.GetProperties(wc)["Antialias"].SetValue(wc, !wc.Antialias);
            _dvAntialias.Checked = wc.Antialias;
            foreach (IComponent comp in _iss.GetSelectedComponents())
            {
                if (comp != wc)
                {
                    TypeDescriptor.GetProperties(comp)["Antialias"].SetValue(comp, wc.Antialias);
                }
            }
        }
Ejemplo n.º 4
0
        private void OnShowDesigner(object sender, System.EventArgs e)
        {
            XWaitingCircleDesignForm wcdf = new XWaitingCircleDesignForm();
            XWaitingCircle           wc   = Control as XWaitingCircle;

            if (wc != null)
            {
                wcdf.waitingCircle1.Activate       = wc.Activate;
                wcdf.waitingCircle1.Speed          = wc.Speed;
                wcdf.waitingCircle1.ColockWise     = wc.ColockWise;
                wcdf.waitingCircle1.NumberOfSpokes = wc.NumberOfSpokes;
            }
            if (wcdf.ShowDialog() == DialogResult.OK)
            {
                GetPropertyByName("Activate").SetValue(Control, wcdf.waitingCircle1.Activate);
                GetPropertyByName("Speed").SetValue(Control, wcdf.waitingCircle1.Speed);
                GetPropertyByName("ColockWise").SetValue(Control, wcdf.waitingCircle1.ColockWise);
                GetPropertyByName("NumberOfSpokes").SetValue(Control, wcdf.waitingCircle1.NumberOfSpokes);
            }
        }
Ejemplo n.º 5
0
 public WaitingCircleActionList(IComponent comp)
     : base(comp)
 {
     _wc = (XWaitingCircle)comp;
 }
Ejemplo n.º 6
0
 public WaitingCircleGlyph(BehaviorService service, XWaitingCircle control, Adorner adorner)
     : base(new WaitingCircleBehavior())
 {
     _bsService = service;
     _waitCircle = control;
     _adorner = adorner;
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1 = new System.Windows.Forms.Label();
     this.btnOK = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.btnHelp = new System.Windows.Forms.Button();
     this.label2 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.trackBar1 = new System.Windows.Forms.TrackBar();
     this.checkBox1 = new System.Windows.Forms.CheckBox();
     this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
     this.label4 = new System.Windows.Forms.Label();
     this.checkBox2 = new System.Windows.Forms.CheckBox();
     this.waitingCircle1 = new Excalibur.Controls.XWaitingCircle();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label1.Location = new System.Drawing.Point(7, 108);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(316, 2);
     this.label1.TabIndex = 0;
     //
     // btnOK
     //
     this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnOK.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.btnOK.Location = new System.Drawing.Point(164, 118);
     this.btnOK.Name = "btnOK";
     this.btnOK.Size = new System.Drawing.Size(74, 22);
     this.btnOK.TabIndex = 1;
     this.btnOK.Text = "OK(&O)";
     this.btnOK.UseVisualStyleBackColor = true;
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnCancel.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.btnCancel.Location = new System.Drawing.Point(244, 118);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(74, 22);
     this.btnCancel.TabIndex = 1;
     this.btnCancel.Text = "Cancel(&C)";
     this.btnCancel.UseVisualStyleBackColor = true;
     //
     // btnHelp
     //
     this.btnHelp.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btnHelp.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.btnHelp.Location = new System.Drawing.Point(7, 118);
     this.btnHelp.Name = "btnHelp";
     this.btnHelp.Size = new System.Drawing.Size(74, 22);
     this.btnHelp.TabIndex = 1;
     this.btnHelp.Text = "Help(&H)";
     this.btnHelp.UseVisualStyleBackColor = true;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label2.Location = new System.Drawing.Point(7, 14);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(70, 17);
     this.label2.TabIndex = 3;
     this.label2.Text = "Preview(&P):";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label3.Location = new System.Drawing.Point(93, 14);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(63, 17);
     this.label3.TabIndex = 4;
     this.label3.Text = "Speed(&S):";
     //
     // trackBar1
     //
     this.trackBar1.AutoSize = false;
     this.trackBar1.Location = new System.Drawing.Point(161, 14);
     this.trackBar1.Minimum = 1;
     this.trackBar1.Name = "trackBar1";
     this.trackBar1.Size = new System.Drawing.Size(155, 19);
     this.trackBar1.TabIndex = 5;
     this.trackBar1.Value = 10;
     this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);
     //
     // checkBox1
     //
     this.checkBox1.AutoSize = true;
     this.checkBox1.Checked = true;
     this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.checkBox1.Location = new System.Drawing.Point(96, 84);
     this.checkBox1.Name = "checkBox1";
     this.checkBox1.Size = new System.Drawing.Size(100, 21);
     this.checkBox1.TabIndex = 6;
     this.checkBox1.Text = "Clockwise(&C)";
     this.checkBox1.UseVisualStyleBackColor = true;
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // numericUpDown1
     //
     this.numericUpDown1.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.numericUpDown1.Location = new System.Drawing.Point(164, 45);
     this.numericUpDown1.Maximum = new decimal(new int[] {
     50,
     0,
     0,
     0});
     this.numericUpDown1.Minimum = new decimal(new int[] {
     2,
     0,
     0,
     0});
     this.numericUpDown1.Name = "numericUpDown1";
     this.numericUpDown1.Size = new System.Drawing.Size(147, 23);
     this.numericUpDown1.TabIndex = 7;
     this.numericUpDown1.Value = new decimal(new int[] {
     12,
     0,
     0,
     0});
     this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label4.Location = new System.Drawing.Point(89, 47);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(72, 17);
     this.label4.TabIndex = 4;
     this.label4.Text = "Spokes(&N):";
     //
     // checkBox2
     //
     this.checkBox2.AutoSize = true;
     this.checkBox2.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.checkBox2.Location = new System.Drawing.Point(241, 84);
     this.checkBox2.Name = "checkBox2";
     this.checkBox2.Size = new System.Drawing.Size(77, 21);
     this.checkBox2.TabIndex = 6;
     this.checkBox2.Text = "Active(&A)";
     this.checkBox2.UseVisualStyleBackColor = true;
     this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
     //
     // waitingCircle1
     //
     this.waitingCircle1.EndCap = System.Drawing.Drawing2D.LineCap.Flat;
     this.waitingCircle1.HotSpokeColor = System.Drawing.Color.Black;
     this.waitingCircle1.InnerRadius = 7F;
     this.waitingCircle1.Location = new System.Drawing.Point(7, 45);
     this.waitingCircle1.Name = "waitingCircle1";
     this.waitingCircle1.NumberOfSpokes = 12;
     this.waitingCircle1.Size = new System.Drawing.Size(39, 38);
     this.waitingCircle1.SpokeColor = System.Drawing.Color.DarkGray;
     this.waitingCircle1.StartCap = System.Drawing.Drawing2D.LineCap.Flat;
     this.waitingCircle1.TabIndex = 2;
     this.waitingCircle1.Text = "waitingCircle1";
     this.waitingCircle1.Thickness = 3F;
     //
     // XWaitingCircleDesignForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(335, 151);
     this.Controls.Add(this.numericUpDown1);
     this.Controls.Add(this.checkBox2);
     this.Controls.Add(this.checkBox1);
     this.Controls.Add(this.trackBar1);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.waitingCircle1);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnHelp);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "XWaitingCircleDesignForm";
     this.Text = "Editor";
     this.Load += new System.EventHandler(this.WaitingCircleDesignForm_Load);
     ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 8
0
 public WaitingCircleActionList(IComponent comp)
     : base(comp)
 {
     _wc = (XWaitingCircle)comp;
 }