Exemple #1
0
        private EnumControl CreateEnumControl(EnumElement type)
        {
            var control = new EnumControl();

            control.DataContext = type;

            BindBlockControl(control);

            CreateEnumItems(control, type.Items);
            type.Items.CollectionChanged += (o, e) =>
            {
                var oldItems = e.OldItems ?? type.Items.PopClearedItems();
                if (oldItems != null)
                {
                    foreach (EnumItemElement oldItem in oldItems)
                    {
                        var property = control.Items.First(i => i.DataContext == oldItem);
                        control.Items.Remove(property);
                    }
                }
                if (e.NewItems != null)
                {
                    CreateEnumItems(control, e.NewItems);
                }
            };

            return(control);
        }
Exemple #2
0
    private void BindEnum()
    {
        EnumControl.GetEnumDescriptions <Constants.CurrencyType>(ddlCurrency);
        ddlCurrency.Items.Insert(0, "[ Select Currency ]");
        ddlCurrency.Items.RemoveAt(1);

        EnumControl.GetEnumDescriptions <Constants.YesNo>(ddlUIDTracking);
        ddlUIDTracking.Items.Insert(0, "[ UID ]");
        ddlUIDTracking.Items.RemoveAt(1);
        EnumControl.GetEnumDescriptions <Constants.YesNo>(ddlProductfeedAvailable);
        ddlProductfeedAvailable.Items.Insert(0, "[ Feed Product ]");
        ddlProductfeedAvailable.Items.RemoveAt(1);
        EnumControl.GetEnumDescriptions <Constants.YesNo>(ddlDeepLinkEnabled);
        ddlDeepLinkEnabled.Items.Insert(0, "[ Deeplinking ]");
        ddlDeepLinkEnabled.Items.RemoveAt(1);
        EnumControl.GetEnumDescriptions <Constants.PayoutType>(ddlPayoutType);
        ddlPayoutType.Items.Insert(0, "[ Payout Type ]");
        ddlPayoutType.Items.RemoveAt(1);
        EnumControl.GetEnumDescriptions <Constants.PriceType>(ddlPriceType);
        ddlPriceType.Items.Insert(0, "[ Price Type ]");
        ddlPriceType.Items.RemoveAt(1);
        EnumControl.GetEnumDescriptions <Constants.Status>(ddlStatus);
        ddlStatus.Items.Insert(0, "[ Status ]");
        ddlStatus.Items.RemoveAt(1);
    }
Exemple #3
0
 private void BindDDL()
 {
     EnumControl.GetEnumDescriptions <Constants.API_URL_Type>(ddlAPIType);
     EnumControl.GetEnumDescriptions <Constants.ApiScheduleType>(ddlApiScheduleType);
     ddlRunTime.DataSource = DateTimeAgo.GetTimeIntervals();
     ddlRunTime.DataBind();
 }
Exemple #4
0
 private void BindEnum()
 {
     EnumControl.GetEnumDescriptions <Constants.Device>(ddlDevice);
     ddlDevice.Items.Insert(0, "[ Select Device ]");
     ddlDevice.Items.RemoveAt(1);
     EnumControl.GetEnumDescriptions <Constants.MerchantDeepLinkType>(ddlLinkFor);
 }
Exemple #5
0
 public Control(EnumControl type, float duration, string vfx = "", UnityAction OnStart = null, UnityAction OnFinish = null)
 {
     this.type     = type;
     this.duration = duration;
     this.vfx      = vfx;
     this.OnStart  = OnStart;
     this.OnFinish = OnFinish;
 }
Exemple #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         EnumControl.GetEnumDescriptions <EnumConstants.ItemType>(ddlItemType, false);
         ddlItemType.Items.Insert(0, new ListItem(" [ Select ] ", "0"));
         BindGroup();
         BindSubgrp();
     }
 }
Exemple #7
0
    private void BindEnum()
    {
        EnumControl.GetEnumDescriptions <Constants.CategoryType>(ddlCategoryType);
        ddlCategoryType.Items.Insert(0, "[ Category Type ]");
        ddlCategoryType.Items.RemoveAt(1);

        EnumControl.GetEnumDescriptions <Constants.MerchantLinkType>(ddlMerchantLinkType);
        ddlMerchantLinkType.Items.Insert(0, "[ Merchant Link ]");
        ddlMerchantLinkType.Items.RemoveAt(1);
    }
Exemple #8
0
        private void BindItems()
        {
            EnumControl.GetEnumDescriptions <EnumConstants.ItemType>(ddlItemType, false);
            ddlItemType.Items.Insert(0, new ListItem(" [ Select ] ", "0"));

            var userID = Common.LoggedInUserID();

            lvItems.DataSource = unitOfwork.GroupRepository.All().OrderBy(o => o.GroupCode).ToList();
            lvItems.DataBind();
        }
Exemple #9
0
    private void BindEnum()
    {
        EnumControl.GetEnumDescriptions <Constants.BannerType>(ddlBanner);
        ddlBanner.Items.Insert(0, "[ Banner Type ]");
        ddlBanner.Items.RemoveAt(1);

        EnumControl.GetEnumDescriptions <Constants.BannerLocation>(ddlBannerLocation);
        ddlBannerLocation.Items.Insert(0, "[ Banner Placing ]");
        ddlBannerLocation.Items.RemoveAt(1);
    }
Exemple #10
0
        public void Done(Object _enumControl, params object[] _params)
        {
            EnumControl enumControl = (EnumControl)_enumControl;

            if (enumControl == EnumControl.Common || enumControl == curEnumControl)
            {
                if (curControl != null)
                {
                    curControl.Done(_params);
                }
            }
        }
Exemple #11
0
        private void CreateEnumItems(EnumControl control, IEnumerable newItems)
        {
            foreach (EnumItemElement newItem in newItems)
            {
                var item = new EnumItem();
                item.DataContext = newItem;

                SetBinding(item, EnumItem.ItemNameProperty, "Name");
                SetBinding(item, EnumItem.LabelProperty, "Label");
                //SetBinding(item, EnumItem.ValueProperty, "Value");

                control.Items.Add(item);
            }
        }
Exemple #12
0
        public async Task <Result> ToDo(EnumControl enumControl, params object[] _params)
        {
            if (Lock)
            {
                Result result = new Result();
                return(result);
            }
            Lock = true;
            try
            {
                Signer.Ins.eventHandler  = null;
                Signer.Ins.eventHandler += Done;
                curEnumControl           = enumControl;
                curControl = dic[enumControl];
                var result = await curControl.ToDo(_params);

                Lock = false;
                return(result);
            }
            catch (Exception e)
            {
                throw new NotImplementedException(e.Message);
            }
        }
Exemple #13
0
 private void BindApi()
 {
     EnumControl.GetEnumDescriptions <Constants.NameOfMerchants>(blMenu);
 }
Exemple #14
0
        public static void GenerateControls(FlowLayoutPanel panel, Block block)
        {
            //Suspend
            panel.SuspendLayout();

            //Loop
            foreach (Field field in block.Fields)
            {
                //Prepare
                Control control = null;

                //Handle
                switch (field.Type)
                {
                case FieldType.FieldExplanation: control = new ExplanationControl((ExplanationField)field); break;

                case FieldType.FieldBlock: control = new BlockControl((BlockField)field); break;

                case FieldType.FieldStruct: control = new StructControl((StructField)field); break;

                case FieldType.FieldString:
                case FieldType.FieldLongString:
                    control = new StringControl(field);
                    break;

                case FieldType.FieldTagReference:
                    control = new TagReferenceControl(field);
                    break;

                case FieldType.FieldStringId:
                case FieldType.FieldOldStringId:
                    control = new StringIdControl(field);
                    break;

                case FieldType.FieldCharInteger:
                case FieldType.FieldShortInteger:
                case FieldType.FieldLongInteger:
                case FieldType.FieldAngle:
                case FieldType.FieldTag:
                case FieldType.FieldReal:
                case FieldType.FieldRealFraction:
                    control = new ValueControl(field);
                    break;

                case FieldType.FieldCharEnum:
                case FieldType.FieldEnum:
                case FieldType.FieldLongEnum:
                    control = new EnumControl(field);
                    break;

                case FieldType.FieldLongFlags:
                    control = new FlagsControl()
                    {
                        Field        = field,
                        Title        = field.Name,
                        Information  = field.Information,
                        Options      = ((LongFlagsField)field).Options.Select(o => o.Name).ToArray(),
                        Details      = field.Details,
                        Value        = field.Value,
                        ValueChanged = FlagsControl_ValueChanged
                    };
                    break;

                case FieldType.FieldWordFlags:
                    control = new FlagsControl()
                    {
                        Field        = field,
                        Title        = field.Name,
                        Information  = field.Information,
                        Options      = ((WordFlagsField)field).Options.Select(o => o.Name).ToArray(),
                        Details      = field.Details,
                        Value        = field.Value,
                        ValueChanged = FlagsControl_ValueChanged
                    };
                    break;

                case FieldType.FieldByteFlags:
                    control = new FlagsControl()
                    {
                        Field        = field,
                        Title        = field.Name,
                        Information  = field.Information,
                        Options      = ((ByteFlagsField)field).Options.Select(o => o.Name).ToArray(),
                        Details      = field.Details,
                        Value        = field.Value,
                        ValueChanged = FlagsControl_ValueChanged
                    };
                    break;

                case FieldType.FieldShortBounds:
                    control = new RangeControl()
                    {
                        Field      = field,
                        Title      = field.Name,
                        RangeValue = new string[] { ((ShortBounds)field.Value).Min.ToString(), ((ShortBounds)field.Value).Max.ToString() }
                    };
                    break;

                case FieldType.FieldAngleBounds:
                case FieldType.FieldRealBounds:
                case FieldType.FieldRealFractionBounds:
                    control = new RangeControl()
                    {
                        Field      = field,
                        Title      = field.Name,
                        RangeValue = new string[] { ((FloatBounds)field.Value).Min.ToString(), ((FloatBounds)field.Value).Max.ToString() }
                    };
                    break;

                case FieldType.FieldPoint2D:
                    control = new TwoTupleControl()
                    {
                        LabelA     = "x",
                        LabelB     = "y",
                        Field      = field,
                        Title      = field.Name,
                        TupleValue = new string[] { ((Point2)field.Value).X.ToString(), ((Point2)field.Value).Y.ToString() }
                    };
                    break;

                case FieldType.FieldRealPoint2D:
                    control = new TwoTupleControl()
                    {
                        LabelA     = "x",
                        LabelB     = "y",
                        Field      = field,
                        Title      = field.Name,
                        TupleValue = new string[] { ((Point2F)field.Value).X.ToString(), ((Point2F)field.Value).Y.ToString() }
                    };
                    break;

                case FieldType.FieldRealPoint3D:
                    control = new ThreeTupleControl()
                    {
                        LabelA     = "x",
                        LabelB     = "y",
                        LabelC     = "z",
                        Field      = field,
                        Title      = field.Name,
                        TupleValue = new string[] { ((Point3F)field.Value).X.ToString(), ((Point3F)field.Value).Y.ToString(), ((Point3F)field.Value).Z.ToString() }
                    };
                    break;

                case FieldType.FieldRealVector2D:
                    control = new TwoTupleControl()
                    {
                        LabelA     = "i",
                        LabelB     = "j",
                        Field      = field,
                        Title      = field.Name,
                        TupleValue = new string[] { ((Vector2)field.Value).I.ToString(), ((Vector2)field.Value).J.ToString() }
                    };
                    break;

                case FieldType.FieldRealVector3D:
                    control = new ThreeTupleControl()
                    {
                        LabelA     = "i",
                        LabelB     = "j",
                        LabelC     = "k",
                        Field      = field,
                        Title      = field.Name,
                        TupleValue = new string[] { ((Vector3)field.Value).I.ToString(), ((Vector3)field.Value).J.ToString(), ((Vector3)field.Value).K.ToString() }
                    };
                    break;


                case FieldType.FieldRectangle2D:
                    control = new FourTupleControl()
                    {
                        LabelA     = "t",
                        LabelB     = "l",
                        LabelC     = "r",
                        LabelD     = "b",
                        Field      = field,
                        Title      = field.Name,
                        TupleValue = new string[] { ((Rectangle2)field.Value).Top.ToString(), ((Rectangle2)field.Value).Left.ToString(),
                                                    ((Rectangle2)field.Value).Right.ToString(), ((Rectangle2)field.Value).Bottom.ToString() }
                    };
                    break;

                case FieldType.FieldRgbColor:
                    control = new ThreeTupleControl()
                    {
                        LabelA = "r",
                        LabelB = "g",
                        LabelC = "b",
                        Field  = field,
                        Title  = field.Name,
                    };
                    break;

                case FieldType.FieldArgbColor:
                    control = new FourTupleControl()
                    {
                        LabelA = "a",
                        LabelB = "r",
                        LabelC = "g",
                        LabelD = "b",
                        Field  = field,
                        Title  = field.Name,
                    };
                    break;

                case FieldType.FieldRealRgbColor:
                    control = new ThreeTupleControl()
                    {
                        LabelA = "r",
                        LabelB = "g",
                        LabelC = "b",
                        Field  = field,
                        Title  = field.Name,
                    };
                    break;

                case FieldType.FieldRealArgbColor:
                    control = new FourTupleControl()
                    {
                        LabelA = "a",
                        LabelB = "r",
                        LabelC = "g",
                        LabelD = "b",
                        Field  = field,
                        Title  = field.Name,
                    };
                    break;

                case FieldType.FieldRealHsvColor:
                    control = new ThreeTupleControl()
                    {
                        LabelA = "h",
                        LabelB = "s",
                        LabelC = "v",
                        Field  = field,
                        Title  = field.Name,
                    };
                    break;

                case FieldType.FieldRealAhsvColor:
                    control = new FourTupleControl()
                    {
                        LabelA = "a",
                        LabelB = "h",
                        LabelC = "s",
                        LabelD = "v",
                        Field  = field,
                        Title  = field.Name,
                    };
                    break;

                case FieldType.FieldQuaternion:
                    control = new FourTupleControl()
                    {
                        LabelA     = "w",
                        LabelB     = "i",
                        LabelC     = "j",
                        LabelD     = "k",
                        Field      = field,
                        Title      = field.Name,
                        TupleValue = new string[] { ((Quaternion)field.Value).W.ToString(), ((Quaternion)field.Value).I.ToString(),
                                                    ((Quaternion)field.Value).J.ToString(), ((Quaternion)field.Value).K.ToString() }
                    };
                    break;

                case FieldType.FieldEulerAngles2D:
                    control = new TwoTupleControl()
                    {
                        LabelA     = "i",
                        LabelB     = "j",
                        Field      = field,
                        Title      = field.Name,
                        TupleValue = new string[] { ((Vector2)field.Value).I.ToString(), ((Vector2)field.Value).J.ToString() }
                    };
                    break;

                case FieldType.FieldEulerAngles3D:
                    control = new ThreeTupleControl()
                    {
                        LabelA     = "i",
                        LabelB     = "j",
                        LabelC     = "k",
                        Field      = field,
                        Title      = field.Name,
                        TupleValue = new string[] { ((Vector3)field.Value).I.ToString(), ((Vector3)field.Value).J.ToString(), ((Vector3)field.Value).K.ToString() }
                    };
                    break;

                case FieldType.FieldRealPlane2D:
                    control = new ThreeTupleControl()
                    {
                        LabelA     = "i",
                        LabelB     = "j",
                        LabelC     = "d",
                        Field      = field,
                        Title      = field.Name,
                        TupleValue = new string[] { ((Vector3)field.Value).I.ToString(), ((Vector3)field.Value).J.ToString(), ((Vector3)field.Value).K.ToString() }
                    };
                    break;

                case FieldType.FieldRealPlane3D:
                    control = new FourTupleControl()
                    {
                        LabelA     = "i",
                        LabelB     = "j",
                        LabelC     = "k",
                        LabelD     = "d",
                        Field      = field,
                        Title      = field.Name,
                        TupleValue = new string[] { ((Vector4)field.Value).I.ToString(), ((Vector4)field.Value).J.ToString(), ((Vector4)field.Value).K.ToString(), ((Vector4)field.Value).W.ToString() }
                    };
                    break;


                default: control = new GuerillaControl()
                {
                        Visible = false
                }; break;
                }

                //Check
                if (control != null)
                {
                    panel.Controls.Add(control);
                }
            }

            //Resume
            panel.ResumeLayout();
        }
Exemple #15
0
 private void BindApi()
 {
     EnumControl.GetEnumDescriptions <Constants.APITypeURL>(ddlAdv_Type);
 }
Exemple #16
0
 /// <summary>
 ///     Required method for Designer support - do not modify
 ///     the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.tProps        = new System.Windows.Forms.TreeView();
     this.tClasses      = new System.Windows.Forms.TreeView();
     this.cmbFilter     = new System.Windows.Forms.ComboBox();
     this.chkAllClasses = new System.Windows.Forms.CheckBox();
     this.chkAllProps   = new System.Windows.Forms.CheckBox();
     this.bFind         = new System.Windows.Forms.Button();
     this.cmbSearch     = new System.Windows.Forms.ComboBox();
     this.grpProp       = new System.Windows.Forms.GroupBox();
     this.cEnum         = new TheBox.Controls.EnumControl();
     this.cPoint3D      = new TheBox.Controls.Point3DControl();
     this.cDateTime     = new TheBox.Controls.DateTimeControl();
     this.cTimeSpan     = new TheBox.Controls.TimeSpanControl();
     this.labMsg        = new System.Windows.Forms.Label();
     this.cBoolean      = new TheBox.Controls.BooleanControl();
     this.txGet         = new System.Windows.Forms.TextBox();
     this.txSet         = new System.Windows.Forms.TextBox();
     this.panel1        = new System.Windows.Forms.Panel();
     this.splitter      = new System.Windows.Forms.Splitter();
     this.grpProp.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // tProps
     //
     this.tProps.AllowDrop          = true;
     this.tProps.Dock               = System.Windows.Forms.DockStyle.Fill;
     this.tProps.HideSelection      = false;
     this.tProps.ImageIndex         = -1;
     this.tProps.Location           = new System.Drawing.Point(0, 0);
     this.tProps.Name               = "tProps";
     this.tProps.SelectedImageIndex = -1;
     this.tProps.ShowLines          = false;
     this.tProps.ShowPlusMinus      = false;
     this.tProps.ShowRootLines      = false;
     this.tProps.Size               = new System.Drawing.Size(276, 140);
     this.tProps.Sorted             = true;
     this.tProps.TabIndex           = 0;
     this.tProps.MouseDown         += new System.Windows.Forms.MouseEventHandler(this.tClasses_MouseDown);
     this.tProps.AfterSelect       += new System.Windows.Forms.TreeViewEventHandler(this.tProps_AfterSelect);
     //
     // tClasses
     //
     this.tClasses.AllowDrop          = true;
     this.tClasses.Dock               = System.Windows.Forms.DockStyle.Left;
     this.tClasses.HideSelection      = false;
     this.tClasses.ImageIndex         = -1;
     this.tClasses.Indent             = 15;
     this.tClasses.Location           = new System.Drawing.Point(0, 0);
     this.tClasses.Name               = "tClasses";
     this.tClasses.SelectedImageIndex = -1;
     this.tClasses.Size               = new System.Drawing.Size(160, 140);
     this.tClasses.Sorted             = true;
     this.tClasses.TabIndex           = 1;
     this.tClasses.MouseDown         += new System.Windows.Forms.MouseEventHandler(this.tClasses_MouseDown);
     this.tClasses.AfterSelect       += new System.Windows.Forms.TreeViewEventHandler(this.tClasses_AfterSelect);
     //
     // cmbFilter
     //
     this.cmbFilter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbFilter.Items.AddRange(new object[] { "Administrator", "Seer", "GameMaster", "Councelor" });
     this.cmbFilter.Location              = new System.Drawing.Point(4, 28);
     this.cmbFilter.Name                  = "cmbFilter";
     this.cmbFilter.Size                  = new System.Drawing.Size(92, 21);
     this.cmbFilter.TabIndex              = 2;
     this.cmbFilter.SelectedIndexChanged += new System.EventHandler(this.cmbFilter_SelectedIndexChanged);
     //
     // chkAllClasses
     //
     this.chkAllClasses.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.chkAllClasses.Location        = new System.Drawing.Point(4, 52);
     this.chkAllClasses.Name            = "chkAllClasses";
     this.chkAllClasses.Size            = new System.Drawing.Size(96, 20);
     this.chkAllClasses.TabIndex        = 3;
     this.chkAllClasses.Text            = "Props.AllClasses";
     this.chkAllClasses.CheckedChanged += new System.EventHandler(this.chkAllClasses_CheckedChanged);
     //
     // chkAllProps
     //
     this.chkAllProps.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.chkAllProps.Location        = new System.Drawing.Point(4, 72);
     this.chkAllProps.Name            = "chkAllProps";
     this.chkAllProps.Size            = new System.Drawing.Size(96, 20);
     this.chkAllProps.TabIndex        = 4;
     this.chkAllProps.Text            = "Props.AllProps";
     this.chkAllProps.CheckedChanged += new System.EventHandler(this.chkAllProps_CheckedChanged);
     //
     // bFind
     //
     this.bFind.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.bFind.Location  = new System.Drawing.Point(16, 116);
     this.bFind.Name      = "bFind";
     this.bFind.Size      = new System.Drawing.Size(68, 23);
     this.bFind.TabIndex  = 6;
     this.bFind.Text      = "Common.Find";
     this.bFind.Click    += new System.EventHandler(this.bFind_Click);
     //
     // cmbSearch
     //
     this.cmbSearch.Location = new System.Drawing.Point(4, 92);
     this.cmbSearch.Name     = "cmbSearch";
     this.cmbSearch.Size     = new System.Drawing.Size(92, 21);
     this.cmbSearch.TabIndex = 7;
     this.cmbSearch.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cmbSearch_KeyDown);
     //
     // grpProp
     //
     this.grpProp.Controls.Add(this.cEnum);
     this.grpProp.Controls.Add(this.cPoint3D);
     this.grpProp.Controls.Add(this.cDateTime);
     this.grpProp.Controls.Add(this.cTimeSpan);
     this.grpProp.Controls.Add(this.labMsg);
     this.grpProp.Controls.Add(this.cBoolean);
     this.grpProp.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.grpProp.Location  = new System.Drawing.Point(380, 4);
     this.grpProp.Name      = "grpProp";
     this.grpProp.Size      = new System.Drawing.Size(112, 136);
     this.grpProp.TabIndex  = 8;
     this.grpProp.TabStop   = false;
     //
     // cEnum
     //
     this.cEnum.Location = new System.Drawing.Point(4, 16);
     this.cEnum.Name     = "cEnum";
     this.cEnum.Size     = new System.Drawing.Size(104, 116);
     this.cEnum.TabIndex = 5;
     this.cEnum.Visible  = false;
     //
     // cPoint3D
     //
     this.cPoint3D.Location = new System.Drawing.Point(4, 16);
     this.cPoint3D.Name     = "cPoint3D";
     this.cPoint3D.Size     = new System.Drawing.Size(104, 116);
     this.cPoint3D.TabIndex = 4;
     this.cPoint3D.Visible  = false;
     //
     // cDateTime
     //
     this.cDateTime.Location = new System.Drawing.Point(4, 16);
     this.cDateTime.Name     = "cDateTime";
     this.cDateTime.Size     = new System.Drawing.Size(104, 116);
     this.cDateTime.TabIndex = 3;
     this.cDateTime.Visible  = false;
     //
     // cTimeSpan
     //
     this.cTimeSpan.Location = new System.Drawing.Point(4, 16);
     this.cTimeSpan.Name     = "cTimeSpan";
     this.cTimeSpan.Size     = new System.Drawing.Size(104, 116);
     this.cTimeSpan.TabIndex = 0;
     this.cTimeSpan.Visible  = false;
     //
     // labMsg
     //
     this.labMsg.Location = new System.Drawing.Point(4, 16);
     this.labMsg.Name     = "labMsg";
     this.labMsg.Size     = new System.Drawing.Size(104, 116);
     this.labMsg.TabIndex = 1;
     this.labMsg.Text     = "label1";
     this.labMsg.Visible  = false;
     //
     // cBoolean
     //
     this.cBoolean.Location = new System.Drawing.Point(4, 16);
     this.cBoolean.Name     = "cBoolean";
     this.cBoolean.Size     = new System.Drawing.Size(104, 116);
     this.cBoolean.TabIndex = 2;
     this.cBoolean.Visible  = false;
     //
     // txGet
     //
     this.txGet.BackColor = System.Drawing.Color.White;
     this.txGet.ForeColor = System.Drawing.Color.White;
     this.txGet.Location  = new System.Drawing.Point(4, 4);
     this.txGet.Name      = "txGet";
     this.txGet.ReadOnly  = true;
     this.txGet.Size      = new System.Drawing.Size(44, 20);
     this.txGet.TabIndex  = 9;
     this.txGet.Text      = "Props.Get";
     this.txGet.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // txSet
     //
     this.txSet.BackColor = System.Drawing.Color.White;
     this.txSet.ForeColor = System.Drawing.Color.White;
     this.txSet.Location  = new System.Drawing.Point(52, 4);
     this.txSet.Name      = "txSet";
     this.txSet.ReadOnly  = true;
     this.txSet.Size      = new System.Drawing.Size(44, 20);
     this.txSet.TabIndex  = 10;
     this.txSet.Text      = "Props.Set";
     this.txSet.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.tProps);
     this.panel1.Controls.Add(this.splitter);
     this.panel1.Controls.Add(this.tClasses);
     this.panel1.Location = new System.Drawing.Point(100, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(276, 140);
     this.panel1.TabIndex = 11;
     //
     // splitter
     //
     this.splitter.BorderStyle    = System.Windows.Forms.BorderStyle.Fixed3D;
     this.splitter.Location       = new System.Drawing.Point(160, 0);
     this.splitter.Name           = "splitter";
     this.splitter.Size           = new System.Drawing.Size(3, 140);
     this.splitter.TabIndex       = 2;
     this.splitter.TabStop        = false;
     this.splitter.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(this.splitter_SplitterMoved);
     //
     // Props
     //
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.txSet);
     this.Controls.Add(this.txGet);
     this.Controls.Add(this.grpProp);
     this.Controls.Add(this.cmbSearch);
     this.Controls.Add(this.bFind);
     this.Controls.Add(this.chkAllProps);
     this.Controls.Add(this.chkAllClasses);
     this.Controls.Add(this.cmbFilter);
     this.Name  = "Props";
     this.Size  = new System.Drawing.Size(496, 142);
     this.Load += new System.EventHandler(this.Props_Load);
     this.grpProp.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #17
0
 private void BindMerchant()
 {
     EnumControl.GetEnumDescriptions <Constants.NameOfMerchants>(ddlMerchantName);
 }
 private void BindApi()
 {
     EnumControl.GetEnumDescriptions <Constants.MailFormatContentType>(ddlTemplateType);
 }
Exemple #19
0
 private void BindDDL()
 {
     EnumControl.GetEnumDescriptions <Constants.NotificationType>(ddlNotificationType);
 }
Exemple #20
0
 private void BindApi()
 {
     EnumControl.GetEnumDescriptions <Constants.FeatureTypeOffer>(ddlOfferType);
 }
Exemple #21
0
    private void BindApi()
    {
        //EnumControl.GetEnumDescriptions<Constants.NameOfMerchants>(ddlApiList);

        EnumControl.GetEnumDescriptions <Constants.APITypeURL>(rdbApiTypeURL);
    }
Exemple #22
0
        protected override void Start()
        {
            this.AddLabelControl("BlendingOptionsLabel").SetLabelStyle(EditorStyles.boldLabel);
            _blendMode = this.AddEnumControl <BlendMode>("_Mode");
            _colorMode = this.AddEnumControl <ColorMode>("_ColorMode");
            this.AddSpaceControl();

            this.AddLabelControl("MainOptionsLabel").SetLabelStyle(EditorStyles.boldLabel);
            _flipbook = this.AddKeywordToggleControl("_REQUIRE_UV2");
            this.AddToggleControl("_Cull", 0, 2);

            _zWriteOffOptions     = this.AddControlContainer();
            _softParticles        = _zWriteOffOptions.AddToggleListControl("_SoftParticlesEnabled");
            _softParticleNearFade = _softParticles.AddPropertyControl("_SoftParticlesNearFadeDistance");
            _softParticleFarFade  = _softParticles.AddPropertyControl("_SoftParticlesFarFadeDistance");
            _cameraFading         = _zWriteOffOptions.AddToggleListControl("_CameraFadingEnabled");
            _cameraNearFade       = _cameraFading.AddPropertyControl("_CameraNearFadeDistance");
            _cameraFarFade        = _cameraFading.AddPropertyControl("_CameraFarFadeDistance");

            _dissolve = this.AddToggleListControl("_DissolveEnabled");
            _dissolve.AddTextureControl("_DissolveTex");
            _dissolve.AddPropertyControl("_DCutoff");
            _dissolve.AddPropertyControl("_DissolveScale");

            _vertexMod = this.AddToggleListControl("_VertexMod");
            _vertexMod.AddTextureControl("_NoiseTex");
            _vertexMod.AddPropertyControl("_Amplitude");
            _vertexMod.AddVectorControl("_VUVScroll", true, true, false, false).Alias("VertexUVScroll");
            _vertexMod.AddVectorControl("_VUVScroll", false, false, true, true).Alias("VertexUVScale");

            _rim = this.AddToggleListControl("_RimEn");
            _rim.AddPropertyControl("_RimVal");
            _rim.AddColorControl("_RimColor");

            _distorsion = this.AddToggleListControl("_UVDistEnable");
            _distorsion.AddTextureControl("_UVDisTex");
            _distorsion.AddVectorControl("_UVDisSpeed", true, true, false, false).Alias("UVScrollSpeed");
            _distorsion.AddVectorControl("_UVDisSpeed", false, false, true, true).Alias("UVScrollScale");
            this.AddSpaceControl();

            this.AddLabelControl("MapsOptionsLabel").SetLabelStyle(EditorStyles.boldLabel);
            _albedoControl = this.AddTextureControl("_MainTex", "_Color").SetHasHDRColor(true);
            this.AddVectorControl("_UVScroll", true, true, false, false);
            this.AddSpaceControl();

            _albedo2 = this.AddToggleListControl("_MainTex2Enabled");
            _albedo2.AddTextureControl("_MainTex2", "_Color2").SetHasHDRColor(true);
            _albedo2.AddEnumControl <VRLBlend>("_MainTex2Blend");
            _albedo2.AddVectorControl("_UVScroll2", true, true, false, false).Alias("Albedo2ScrollSpeed");
            _albedo2.AddVectorControl("_UVScroll2", false, false, true, true).Alias("Albedo2ScrollScale");
            this.AddSpaceControl();

            _emission        = this.AddKeywordToggleListControl("_EMISSION");
            _emissionControl = _emission.AddTextureControl("_EmissionMap", "_EmissionColor").SetHasHDRColor(true);
            this.AddSpaceControl();

            _mainTileAndOffset = this.AddTilingAndOffsetControl("_MainTex");
            this.AddSpaceControl();

            _streamsControl = this.AddVertexStreamsControl("VertexStreams")
                              .AddVertexStream(ParticleSystemVertexStream.Position)
                              .AddVertexStream(ParticleSystemVertexStream.Color)
                              .AddVertexStream(ParticleSystemVertexStream.UV);
        }
Exemple #23
0
 private void BindEnum()
 {
     EnumControl.GetEnumDescriptions <Constants.MailFormatContentType>(ddlTemplateType);
     ddlTemplateType.Items.Insert(0, "Mail Content");
     ddlTemplateType.Items.RemoveAt(1);
 }