Exemple #1
0
 public static RepositoryItemTimeEdit GetCotPLLongTimeEdit()
 {
     RepositoryItemTimeEdit timeEdit = new RepositoryItemTimeEdit();
     timeEdit.Mask.EditMask = "HH:mm:ss";
     timeEdit.Mask.UseMaskAsDisplayFormat = true;
     return timeEdit;
 }
Exemple #2
0
        protected override RepositoryItem OnCreateRepositoryItem(Type objectType)
        {
            var edit = new RepositoryItemTimeEdit();

            WinFormPublic.AddClearButton(edit);
            return(edit);
        }
Exemple #3
0
 public void AddTimeEdit(string string_2, object object_0, bool bool_0)
 {
     this.repositoryItemTimeEdit_0 = new RepositoryItemTimeEdit();
     this.gridEditorCollection_0.Add(this.repositoryItemTimeEdit_0, string_2, object_0);
     this.repositoryItemTimeEdit_0.AutoHeight    = false;
     this.repositoryItemTimeEdit_0.BorderStyle   = BorderStyles.NoBorder;
     this.repositoryItemTimeEdit_0.Mask.EditMask = "T";
     this.repositoryItemTimeEdit_0.Mask.MaskType = MaskType.DateTime;
     this.repositoryItemTimeEdit_0.Name          = "repositoryItemTimeEdit";
 }
Exemple #4
0
        public static RepositoryItemTimeEdit CreateTreeTimeEdit(this TreeListColumn treeColumn)
        {
            RepositoryItemTimeEdit repositoryItem = new RepositoryItemTimeEdit
            {
                AutoHeight = false,
                EditMask   = "yyyy-MM-dd HH:mm:ss"
            };

            treeColumn.TreeList.RepositoryItems.Add(repositoryItem);
            treeColumn.ColumnEdit = repositoryItem;
            return(repositoryItem);
        }
Exemple #5
0
        /// <summary>
        /// 创建GridView的列编辑为TimeEdit
        /// </summary>
        /// <param name="gridColumn">GridColumn列对象</param>
        /// <returns></returns>
        public static RepositoryItemTimeEdit CreateTimeEdit(this GridColumn gridColumn)
        {
            RepositoryItemTimeEdit repositoryItem = new RepositoryItemTimeEdit
            {
                AutoHeight = false,
                EditMask   = "yyyy-MM-dd HH:mm:ss"
            };

            gridColumn.View.GridControl.RepositoryItems.Add(repositoryItem);
            gridColumn.ColumnEdit = repositoryItem;
            return(repositoryItem);
        }
Exemple #6
0
        protected RepositoryItem GetTimeOnlyEditor()
        {
            var editor = new RepositoryItemTimeEdit
            {
                AllowNullInput             = DefaultBoolean.False,
                EditValueChangedFiringMode = EditValueChangedFiringMode.Default,
            };

            editor.DisplayFormat.FormatString = _dateTimeFormatInfo.LongTimePattern;
            editor.Mask.EditMask = _dateTimeFormatInfo.LongTimePattern;
            editor.Mask.UseMaskAsDisplayFormat = true;

            return(editor);
        }
Exemple #7
0
 private void gvDetail_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
 {
     try
     {
         SysParameter Curr_Sys = bsDetail.Current as SysParameter;
         if (Curr_Sys == null)
         {
             return;
         }
         ParameterMode Curr_paraMode = ParameterModes.Where(p => p.ParameterCode.Equals(Curr_Sys.ParameterCode)).FirstOrDefault();
         if (Curr_paraMode == null)
         {
             return;
         }
         colParameterValue.ColumnEdit = null;
         if (Curr_paraMode.ExitType == 2)
         {
             string[] Items = Curr_paraMode.ChooseValues.Split(';');
             RepositoryItemComboBox cbxvalue = new RepositoryItemComboBox();
             cbxvalue.Appearance.Options.UseTextOptions         = true;
             cbxvalue.Appearance.TextOptions.HAlignment         = DevExpress.Utils.HorzAlignment.Center;
             cbxvalue.AppearanceDropDown.Options.UseTextOptions = true;
             cbxvalue.AppearanceDropDown.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
             cbxvalue.AutoHeight = false;
             cbxvalue.Items.AddRange(Items);
             cbxvalue.Name                = "cbxCarType";
             cbxvalue.TextEditStyle       = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
             colParameterValue.ColumnEdit = cbxvalue;
         }
         else if (Curr_paraMode.ExitType == 3)
         {
             RepositoryItemTimeEdit datevalue = new RepositoryItemTimeEdit();
             datevalue.TimeEditStyle = DevExpress.XtraEditors.Repository.TimeEditStyle.TouchUI;
             datevalue.Appearance.Options.UseTextOptions         = true;
             datevalue.Appearance.TextOptions.HAlignment         = DevExpress.Utils.HorzAlignment.Center;
             datevalue.AppearanceDropDown.Options.UseTextOptions = true;
             datevalue.AutoHeight         = false;
             datevalue.Name               = "deTime";
             colParameterValue.ColumnEdit = datevalue;
         }
     }
     catch (Exception ex)
     { MsgBox.ShowError(ex.Message); }
 }
        private void InitRowMenu(int handel, DataRow rowHandel)
        {
            barManager1.RepositoryItems.Clear();
            barManager1.Items.Clear();
            popupMenu1.ItemLinks.Clear();

            DataRow cr = gridViewDetail.GetDataRow(handel);

            var itemCopy = new BarButtonItem(barManager1, "Sao chép dòng này")
                               {
                                   Glyph = HelpImage.getImage2020("copy.png"),
                                   ItemShortcut = new BarShortcut(Shortcut.CtrlC)
                               }; //, -1, new BarShortcut(Shortcut.CtrlC));
            var itemCut = new BarButtonItem(barManager1, "Cắt dòng này")
                              {
                                  Glyph = HelpImage.getImage2020("cut.png"),
                                  ItemShortcut = new BarShortcut(Shortcut.CtrlX)
                              };
            var itemPaste = new BarButtonItem(barManager1, "Dán tại dòng này")
                                {
                                    Glyph = HelpImage.getImage2020("paste.png"),
                                    ItemShortcut = new BarShortcut(Shortcut.CtrlV)
                                };
            var itemDelete = new BarButtonItem(barManager1, "Xóa dòng này")
                                 {
                                     Glyph = HelpImage.getImage2020("delete.png"),
                                     ItemShortcut = new BarShortcut(Shortcut.CtrlDel)
                                 };
            var itemDeleteAll = new BarButtonItem(barManager1, "Xóa cả vệt giờ này")
                                    {
                                        Glyph = HelpImage.getImage2020("deleteall.png"),
                                        ItemShortcut = new BarShortcut(Shortcut.ShiftDel)
                                    };
            var itemCopyTo = new BarSubItem(barManager1, "Sao chép dòng này đến") { Glyph = HelpImage.getImage2020("copyto.png") };
            var itemMoveTo = new BarSubItem(barManager1, "Di chuyển dòng này đến") { Glyph = HelpImage.getImage2020("moveto.png") };
            var itemCopyAllTo = new BarSubItem(barManager1,
                                               "Sao chép cả vệt " +
                                               ((DateTime)cr[KE_HOACH_LPS_CT.GIO_PHAT_SONG]).ToString("HH:mm") + " đến")
                                    {
                                        Glyph = HelpImage.getImage2020("copyallto.png")

                                    };
            var itemMoveAllTo = new BarSubItem(barManager1,
                                               "Di chuyển cả vệt " +
                                               ((DateTime)cr[KE_HOACH_LPS_CT.GIO_PHAT_SONG]).ToString("HH:mm") + " đến")
                                    {
                                        Glyph = HelpImage.getImage2020("moveallto.png")

                                    };
            var itemOpen = new BarButtonItem(barManager1, "Mở chương trình")
            {
                Glyph = FWImageDic.VIEW_IMAGE20,
                ItemShortcut = new BarShortcut(Shortcut.CtrlO)
            };
            var itemRefresh = new BarButtonItem(barManager1, "Làm mới")
            {
                Glyph = HelpImage.getImage2020("Restore.png"),
                ItemShortcut = new BarShortcut(Shortcut.F5)
            };
            var itemCopyClipboard = new BarButtonItem(barManager1, "Sao chép dòng này đến Clipboard")
                                        {

                                            Glyph = HelpImage.getImage2020("clipboard.png"),
                                            ItemShortcut = new BarShortcut(Shortcut.CtrlShiftC)
                                        };
            var itemCopyVetClipboard = new BarButtonItem(barManager1, "Sao chép cả vệt " +
                                                                      ((DateTime) cr[KE_HOACH_LPS_CT.GIO_PHAT_SONG]).
                                                                          ToString("HH:mm") + " đến Clipboard")
                                           {
                                               Glyph = HelpImage.getImage2020("clipboard.png"),
                                               ItemShortcut = new BarShortcut(Shortcut.CtrlShiftV)
                                           };
            var itemCopyAllClipboard = new BarButtonItem(barManager1, "Sao chép cả lưới đến Clipboard")
            {
                Glyph = HelpImage.getImage2020("clipboard.png"),
                ItemShortcut = new BarShortcut(Shortcut.CtrlShiftA)
            };

            //, -1, new BarShortcut(Shortcut.CtrlC));

            var timeEdit = new RepositoryItemTimeEdit();
            timeEdit.Mask.EditMask = "HH:mm";
            timeEdit.Mask.UseMaskAsDisplayFormat = true;

            var timeItem = new BarEditItem(barManager1, timeEdit) { PaintStyle = BarItemPaintStyle.Standard };

            itemCopyAllTo.AddItem(timeItem);
            itemCopyTo.AddItem(timeItem);
            itemMoveAllTo.AddItem(timeItem);
            itemMoveTo.AddItem(timeItem);

            timeItem.Width = 60;

            timeItem.Edit.DoubleClick += delegate
                                             {

                                                 BarItemLink link = barManager1.ActiveEditItemLink;
                                                 object obj = barManager1.ActiveEditor.EditValue;
                                                 if (obj == null || !(obj is DateTime)) return;
                                                 DataRow r = gridViewDetail.GetDataRow(handel);
                                                 var time = (DateTime)obj;
                                                 time = new DateTime(1900, 1, 1, time.Hour, time.Minute, 0);
                                                 if (link.OwnerItem == itemCopyTo)
                                                 {
                                                     CutCopyTo(r, time, true);
                                                 }
                                                 else if (link.OwnerItem == itemMoveTo)
                                                 {
                                                     CutCopyTo(r, time, false);
                                                 }
                                                 else if (link.OwnerItem == itemCopyAllTo)
                                                 {
                                                     CutCopyAllTo((DateTime)r[KE_HOACH_LPS_CT.GIO_PHAT_SONG], time,
                                                                  true);
                                                 }
                                                 else if (link.OwnerItem == itemMoveAllTo)
                                                 {
                                                     CutCopyAllTo((DateTime)r[KE_HOACH_LPS_CT.GIO_PHAT_SONG], time,
                                                                  false);
                                                 }
                                                 popupMenu1.HidePopup();

                                             };
            timeItem.ItemDoubleClick += delegate(object sender, ItemClickEventArgs e)
                                            {
                                                DataRow r = gridViewDetail.GetDataRow(handel);
                                                object obj = barManager1.ActiveEditor.EditValue;
                                                if (obj == null || !(obj is DateTime)) return;
                                                var time = (DateTime)obj;
                                                time = new DateTime(1900, 1, 1, time.Hour, time.Minute, 0);
                                                if (e.Link.OwnerItem == itemCopyTo)
                                                {
                                                    CutCopyTo(r, time, true);
                                                }
                                                else if (e.Link.OwnerItem == itemMoveTo)
                                                {
                                                    CutCopyTo(r, time, false);
                                                }
                                                else if (e.Link.OwnerItem == itemCopyAllTo)
                                                {
                                                    CutCopyAllTo((DateTime)r[KE_HOACH_LPS_CT.GIO_PHAT_SONG], time, true);
                                                }
                                                else if (e.Link.OwnerItem == itemMoveAllTo)
                                                {
                                                    CutCopyAllTo((DateTime)r[KE_HOACH_LPS_CT.GIO_PHAT_SONG], time,
                                                                 false);
                                                }
                                                popupMenu1.HidePopup();
                                            };
            if (_dtGioPhat != null)
            {
                foreach (DataRow rTime in _dtGioPhat.Rows)
                {

                    if (rTime[KE_HOACH_LPS_CT.GIO_PHAT_SONG] is DBNull
                        || rTime[KE_HOACH_LPS_CT.GIO_PHAT_SONG].Equals(rowHandel[KE_HOACH_LPS_CT.GIO_PHAT_SONG]))
                        continue;
                    var time = (DateTime)rTime[KE_HOACH_LPS_CT.GIO_PHAT_SONG];
                    var item = new BarButtonItem(barManager1, time.ToString("HH:mm")) { PaintStyle = BarItemPaintStyle.Standard, Tag = time };
                    itemCopyAllTo.AddItem(item);
                    itemCopyTo.AddItem(item);
                    itemMoveAllTo.AddItem(item);
                    itemMoveTo.AddItem(item);
                    item.ItemClick += delegate(object sender, ItemClickEventArgs e)
                                          {
                                              DataRow r = gridViewDetail.GetDataRow(handel);
                                              if (e.Link.OwnerItem == itemCopyTo)
                                              {
                                                  CutCopyTo(r, time, true);
                                              }
                                              else if (e.Link.OwnerItem == itemMoveTo)
                                              {
                                                  CutCopyTo(r, time, false);
                                              }
                                              else if (e.Link.OwnerItem == itemCopyAllTo)
                                              {
                                                  CutCopyAllTo((DateTime)r[KE_HOACH_LPS_CT.GIO_PHAT_SONG], time, true);
                                              }
                                              else if (e.Link.OwnerItem == itemMoveAllTo)
                                              {
                                                  CutCopyAllTo((DateTime)r[KE_HOACH_LPS_CT.GIO_PHAT_SONG], time, false);
                                              }
                                          };

                }
            }
            // ReSharper disable ImplicitlyCapturedClosure
            itemCopy.ItemClick += (sender, e) =>
                                      {
                                          _rowCut = null;
                                          _rowCopy = gridViewDetail.GetDataRow(handel);
                                      };

            itemCut.ItemClick += (sender, args) =>
                                     {
                                         _rowCopy = null;
                                         _rowCut = gridViewDetail.GetDataRow(handel);
                                     };

            itemPaste.ItemClick += (sender, e) => Paste(handel);
            itemDelete.ItemClick += (sender, e) => DeleteRow(handel);
            itemDeleteAll.ItemClick += (sender, e) => DeleteVetGio(handel);
            itemRefresh.ItemClick += (sender, e) =>
                                         {
                                             gridViewDetail.RefreshData();
                                             gridViewDetail.UpdateGroupSummary();
                                         };
            itemOpen.ItemClick += (sender, e) =>
                                      {
                                          long ctID = HelpNumber.ParseInt64(cr[KE_HOACH_LPS_CT.CT_ID]);
                                          if (
                                              ChuongTrinhPermission.I._CheckPerChuongTrinh(RES_PERMISSION_TYPE.READ,
                                                                                           ctID) == false)
                                          {
                                              HelpMsgBox.ShowNotificationMessage(
                                                  "Bạn không được phép xem chương trình này!");
                                              return;
                                          }
                                          var frm = new FrmChuongTrinh(ctID, null);
                                          HelpProtocolForm.ShowModalDialog(this, frm);
                                      };
            itemCopyClipboard.ItemClick += (sender, e) =>
                                               {
                                                   gridViewDetail.BeginSelection();
                                                   gridViewDetail.ClearSelection();
                                                   gridViewDetail.SelectRow(handel);
                                                   gridViewDetail.EndSelection();
                                                   gridViewDetail.CopyToClipboard();
                                               };
            itemCopyAllClipboard.ItemClick += (sender, e) => CopyClipboard(null);

             itemCopyVetClipboard.ItemClick += (sender, e) => CopyClipboard((DateTime)cr[KE_HOACH_LPS_CT.GIO_PHAT_SONG]);

            // ReSharper restore ImplicitlyCapturedClosure
            if (IsAdd == null)
            {
                popupMenu1.ItemLinks.AddRange(new BarItem[]
                                                  {
                                                      itemOpen,itemCopyClipboard,itemCopyVetClipboard,itemCopyAllClipboard, itemRefresh
                                                  });
                popupMenu1.ItemLinks[1].BeginGroup = true;
                popupMenu1.ItemLinks[4].BeginGroup = true;
            }
            else
            {

                popupMenu1.ItemLinks.AddRange(new BarItem[]
                                                  {
                                                      itemCopy, itemCut, itemPaste, itemDelete, itemDeleteAll,
                                                      itemCopyTo,
                                                      itemMoveTo, itemCopyAllTo, itemMoveAllTo, itemOpen,itemCopyClipboard,itemCopyVetClipboard,itemCopyAllClipboard, itemRefresh
                                                  });
                popupMenu1.ItemLinks[5].BeginGroup = true;
                popupMenu1.ItemLinks[7].BeginGroup = true;
                popupMenu1.ItemLinks[9].BeginGroup = true;
                popupMenu1.ItemLinks[10].BeginGroup = true;
                popupMenu1.ItemLinks[13].BeginGroup = true;
            }

            itemPaste.Enabled = _rowCopy != null || _rowCut != null;
        }
Exemple #9
0
        public void ВыставитьТипСтолбца(СтолбецМетаструктуры СтолбецМетастуктуры, ОтчетнаяФормаДанных ОтчетнаяФорма)
        {
            RepositoryItem item = null;
            ОписаниеМножественнойСсылкиНаСправочник справочник;
            ОписаниеСсылкиНаСправочник справочник2;

            this.описаниеЯчейки = СтолбецМетастуктуры.ОписаниеТипаЯчейки;
            if (СтолбецМетастуктуры.Тип.IsSubclassOf(typeof(ОбщийЧисловойТип)))
            {
                Type   type          = СтолбецМетастуктуры.Тип;
                int    num           = 0;
                string str           = "";
                string displayFormat = "";
                if (type == typeof(ФинансовыйТип))
                {
                    num = 2;
                }
                else if (type == typeof(ЦелочисленныйТип))
                {
                    num = 0;
                }
                else if ((type == typeof(ЧисловойТип)) && ((this.описаниеЯчейки != null) && (this.описаниеЯчейки is ОписаниеЧисловогоТипа)))
                {
                    num = (this.описаниеЯчейки as ОписаниеЧисловогоТипа).Точность;
                }
                if (num == 0)
                {
                    str = "N00";
                }
                else
                {
                    str = "N" + num.ToString();
                }
                displayFormat                  = "{" + string.Format("0:{0}", str) + "}";
                this.СтрокаФорматирования      = str;
                base.SummaryItem.SummaryType   = SummaryItemType.Sum;
                base.SummaryItem.DisplayFormat = displayFormat;
                base.UnboundType               = UnboundColumnType.Decimal;
                едакторЧислаДинамическойТаблицы таблицы = new  едакторЧислаДинамическойТаблицы();
                таблицы.DisplayFormat.FormatString = displayFormat;
                if (base.View != null)
                {
                    base.View.GroupSummary.Add(new GridGroupSummaryItem(SummaryItemType.Sum, base.FieldName, this, displayFormat));
                }
                item = таблицы;
                goto Label_0679;
            }
            if (СтолбецМетастуктуры.Тип == typeof(ТипДатаВремя))
            {
                base.UnboundType = UnboundColumnType.DateTime;
                if (СтолбецМетастуктуры.ОписаниеТипаЯчейки is ОписаниеТипаДатаВремя)
                {
                    RepositoryItem        item2 = null;
                    ОписаниеТипаДатаВремя время = СтолбецМетастуктуры.ОписаниеТипаЯчейки as ОписаниеТипаДатаВремя;
                    if (время.едакторВремени)
                    {
                        item2 = new RepositoryItemTimeEdit();
                    }
                    else
                    {
                        item2 = new  едакторДатыДинамическойТаблицы();
                        if (!string.IsNullOrEmpty(время.ФорматОтображения))
                        {
                            (item2 as  едакторДатыДинамическойТаблицы).Mask.MaskType = MaskType.DateTime;
                            (item2 as  едакторДатыДинамическойТаблицы).Mask.EditMask = время.ФорматОтображения;
                            (item2 as  едакторДатыДинамическойТаблицы).Mask.UseMaskAsDisplayFormat = true;
                        }
                    }
                    item = item2;
                }
                else
                {
                    едакторДатыДинамическойТаблицы таблицы2 = new  едакторДатыДинамическойТаблицы();
                    item = таблицы2;
                }
                goto Label_0679;
            }
            if (СтолбецМетастуктуры.Тип == typeof(ТипИзображение))
            {
                base.UnboundType = UnboundColumnType.Object;
                RepositoryItemImageEdit edit = new RepositoryItemImageEdit();
                edit.NullText = string.Empty;
                edit.ShowIcon = true;
                edit.SizeMode = PictureSizeMode.Stretch;
                item          = edit;
                goto Label_0679;
            }
            if (СтолбецМетастуктуры.Тип == typeof(СтроковыйТип))
            {
                if ((this.описаниеЯчейки != null) && (this.описаниеЯчейки is ОписаниеСтроковогоТипаЯчейки))
                {
                    ОписаниеСтроковогоТипаЯчейки ячейки = this.описаниеЯчейки as ОписаниеСтроковогоТипаЯчейки;
                    if (!string.IsNullOrEmpty(ячейки.МаскаВвода))
                    {
                        ПолеВводаТекста текста = new ПолеВводаТекста();
                        текста.Mask.MaskType               = MaskType.RegEx;
                        текста.Mask.EditMask               = ячейки.МаскаВвода;
                        текста.Mask.ShowPlaceHolders       = true;
                        текста.Mask.UseMaskAsDisplayFormat = true;
                        текста.Mask.IgnoreMaskBlank        = false;
                        item = текста;
                    }
                    else if (ячейки.МногострочныйРедактор)
                    {
                        ВыпадающийТекст текст = new ВыпадающийТекст();
                        item = текст;
                    }
                    else
                    {
                        base.UnboundType = UnboundColumnType.String;
                    }
                }
                else
                {
                    base.UnboundType = UnboundColumnType.String;
                }
                goto Label_0679;
            }
            if (СтолбецМетастуктуры.Тип == typeof(ЛогическийТип))
            {
                this.ТипЭлементаДляВыбора = typeof(Учреждение);
                base.UnboundType          = UnboundColumnType.Boolean;
                едакторФлажокДинамическойТаблицы таблицы3 = new  едакторФлажокДинамическойТаблицы();
                item = таблицы3;
                goto Label_0679;
            }
            if ((СтолбецМетастуктуры.Тип != typeof(СсылкаНаСправочник)) && (СтолбецМетастуктуры.Тип != typeof(МножественнаяСсылкаНаСправочник)))
            {
                goto Label_0679;
            }
            ВыборИзСправочника справочника = new ВыборИзСправочника();

            if ((this.описаниеЯчейки != null) && ((this.описаниеЯчейки is ОписаниеСсылкиНаСправочник) || (this.описаниеЯчейки is ОписаниеМножественнойСсылкиНаСправочник)))
            {
                справочник  = null;
                справочник2 = null;
                string str3 = "";
                if (this.описаниеЯчейки is ОписаниеМножественнойСсылкиНаСправочник)
                {
                    справочник = this.описаниеЯчейки as ОписаниеМножественнойСсылкиНаСправочник;
                    str3       = справочник.КодСправочника;
                }
                else if (this.описаниеЯчейки is ОписаниеСсылкиНаСправочник)
                {
                    справочник2 = this.описаниеЯчейки as ОписаниеСсылкиНаСправочник;
                    str3        = справочник2.КодСправочника;
                }
                string str4 = str3.Trim().ToLower();
                if (str4 == null)
                {
                    goto Label_057D;
                }
                if (!(str4 == "учреждение"))
                {
                    if (str4 == "типучреждения")
                    {
                        this.ТипЭлементаДляВыбора = typeof(ТипУчреждения);
                        this.ИсточникДанных       = null;
                        goto Label_0643;
                    }
                    if (str4 == "видучреждения")
                    {
                        this.ТипЭлементаДляВыбора = typeof(ВидУчреждения);
                        this.ИсточникДанных       = null;
                        goto Label_0643;
                    }
                    goto Label_057D;
                }
                this.ТипЭлементаДляВыбора = typeof(Учреждение);
                this.ИсточникДанных       = null;
            }
            goto Label_0643;
Label_057D:
            this.ТипЭлементаДляВыбора = null;
            if (справочник != null)
            {
                ВыборЗаписейСправочника справочника2 = new ВыборЗаписейСправочника(ежимВыбораЭлементовСпискаВыбора.Множественный);
                справочника2.ОписаниеСсылки = справочник;
                if ((ОтчетнаяФорма != null) && (ОтчетнаяФорма.КомпонентОтчетногоПериода != null))
                {
                    справочника2.ДатаАктуальности = ОтчетнаяФорма.КомпонентОтчетногоПериода.ОтчетныйПериод.ДатаНачала;
                }
                this.ИсточникДанных = справочника2;
            }
            else if (справочник2 != null)
            {
                ВыборИзУниверсальногоСправочника справочника3 = new ВыборИзУниверсальногоСправочника();
                справочника3.ОписаниеСсылки = справочник2;
                if ((ОтчетнаяФорма != null) && (ОтчетнаяФорма.КомпонентОтчетногоПериода != null))
                {
                    справочника3.ДатаАктуальности = ОтчетнаяФорма.КомпонентОтчетногоПериода.ОтчетныйПериод.ДатаНачала;
                }
                this.ИсточникДанных = справочника3;
            }
Label_0643:
            base.UnboundType = UnboundColumnType.Object;
            base.SortMode    = ColumnSortMode.DisplayText;
            base.FilterMode  = ColumnFilterMode.DisplayText;
            base.OptionsColumn.AllowGroup = DefaultBoolean.True;
            base.OptionsColumn.AllowSort  = DefaultBoolean.True;
            item = справочника;
Label_0679:
            base.ColumnEdit = item;
        }
 private void InitializeComponent()
 {
     this.components = new Container();
     ComponentResourceManager manager = new ComponentResourceManager(typeof(DlgSupcomMapOptions));
     this.gpgMapSelectGrid = new GPGChatGrid();
     this.cardView1 = new CardView();
     this.colMapTitle = new GridColumn();
     this.colStatus = new GridColumn();
     this.riPriority = new RepositoryItemImageComboBox();
     this.ilThumbs = new ImageList(this.components);
     this.colMap = new GridColumn();
     this.riMap = new RepositoryItemPictureEdit();
     this.rimPictureEdit3 = new RepositoryItemPictureEdit();
     this.rimTextEdit = new RepositoryItemTextEdit();
     this.rimMemoEdit3 = new RepositoryItemMemoEdit();
     this.riPopup = new RepositoryItemPopupContainerEdit();
     this.repositoryItemTimeEdit1 = new RepositoryItemTimeEdit();
     this.repositoryItemTextEdit1 = new RepositoryItemTextEdit();
     this.riPictureStatus = new RepositoryItemPictureEdit();
     this.riButtonStatus = new RepositoryItemButtonEdit();
     this.riTextPriority = new RepositoryItemTextEdit();
     this.colTime = new GridColumn();
     this.colType = new GridColumn();
     this.colDescription = new GridColumn();
     this.colData = new GridColumn();
     this.rbAeon = new RadioButton();
     this.rbCybran = new RadioButton();
     this.rbUEF = new RadioButton();
     this.rbRandom = new RadioButton();
     this.lMapPrefs = new GPGLabel();
     this.gpgLabel1 = new GPGLabel();
     this.skinButtonCancel = new SkinButton();
     this.skinButtonSearch = new SkinButton();
     this.rbSeraphim = new RadioButton();
     ((ISupportInitialize) base.pbBottom).BeginInit();
     this.gpgMapSelectGrid.BeginInit();
     this.cardView1.BeginInit();
     this.riPriority.BeginInit();
     this.riMap.BeginInit();
     this.rimPictureEdit3.BeginInit();
     this.rimTextEdit.BeginInit();
     this.rimMemoEdit3.BeginInit();
     this.riPopup.BeginInit();
     this.repositoryItemTimeEdit1.BeginInit();
     this.repositoryItemTextEdit1.BeginInit();
     this.riPictureStatus.BeginInit();
     this.riButtonStatus.BeginInit();
     this.riTextPriority.BeginInit();
     base.SuspendLayout();
     base.pbBottom.Size = new Size(0x3c5, 0x39);
     base.ttDefault.SetSuperTip(base.pbBottom, null);
     base.ttDefault.DefaultController.AutoPopDelay = 0x3e8;
     base.ttDefault.DefaultController.ToolTipLocation = ToolTipLocation.RightTop;
     this.gpgMapSelectGrid.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     this.gpgMapSelectGrid.CustomizeStyle = false;
     this.gpgMapSelectGrid.EmbeddedNavigator.Name = "";
     this.gpgMapSelectGrid.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.gpgMapSelectGrid.IgnoreMouseWheel = false;
     this.gpgMapSelectGrid.Location = new Point(12, 0x55);
     this.gpgMapSelectGrid.LookAndFeel.SkinName = "Money Twins";
     this.gpgMapSelectGrid.LookAndFeel.Style = LookAndFeelStyle.Office2003;
     this.gpgMapSelectGrid.LookAndFeel.UseDefaultLookAndFeel = false;
     this.gpgMapSelectGrid.MainView = this.cardView1;
     this.gpgMapSelectGrid.Name = "gpgMapSelectGrid";
     this.gpgMapSelectGrid.RepositoryItems.AddRange(new RepositoryItem[] { this.rimPictureEdit3, this.rimTextEdit, this.rimMemoEdit3, this.riPopup, this.repositoryItemTimeEdit1, this.riPriority, this.riMap, this.repositoryItemTextEdit1, this.riPictureStatus, this.riButtonStatus, this.riTextPriority });
     this.gpgMapSelectGrid.ShowOnlyPredefinedDetails = true;
     this.gpgMapSelectGrid.Size = new Size(0x3e8, 0x12b);
     this.gpgMapSelectGrid.TabIndex = 0x1d;
     this.gpgMapSelectGrid.ViewCollection.AddRange(new BaseView[] { this.cardView1 });
     this.cardView1.Appearance.Card.BackColor = Color.Black;
     this.cardView1.Appearance.Card.ForeColor = Color.White;
     this.cardView1.Appearance.Card.Options.UseBackColor = true;
     this.cardView1.Appearance.Card.Options.UseForeColor = true;
     this.cardView1.Appearance.EmptySpace.BackColor = Color.Black;
     this.cardView1.Appearance.EmptySpace.Options.UseBackColor = true;
     this.cardView1.Appearance.FieldCaption.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.cardView1.Appearance.FieldCaption.ForeColor = Color.FromArgb(0x8f, 0xbd, 0xd1);
     this.cardView1.Appearance.FieldCaption.Options.UseFont = true;
     this.cardView1.Appearance.FieldCaption.Options.UseForeColor = true;
     this.cardView1.Appearance.FieldValue.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.cardView1.Appearance.FieldValue.ForeColor = Color.White;
     this.cardView1.Appearance.FieldValue.Options.UseFont = true;
     this.cardView1.Appearance.FieldValue.Options.UseForeColor = true;
     this.cardView1.Appearance.FilterCloseButton.BackColor = Color.FromArgb(0xd4, 0xd0, 200);
     this.cardView1.Appearance.FilterCloseButton.BackColor2 = Color.FromArgb(90, 90, 90);
     this.cardView1.Appearance.FilterCloseButton.BorderColor = Color.FromArgb(0xd4, 0xd0, 200);
     this.cardView1.Appearance.FilterCloseButton.ForeColor = Color.Black;
     this.cardView1.Appearance.FilterCloseButton.GradientMode = LinearGradientMode.ForwardDiagonal;
     this.cardView1.Appearance.FilterCloseButton.Options.UseBackColor = true;
     this.cardView1.Appearance.FilterCloseButton.Options.UseBorderColor = true;
     this.cardView1.Appearance.FilterCloseButton.Options.UseForeColor = true;
     this.cardView1.Appearance.FilterPanel.BackColor = Color.Black;
     this.cardView1.Appearance.FilterPanel.BackColor2 = Color.FromArgb(0xd4, 0xd0, 200);
     this.cardView1.Appearance.FilterPanel.ForeColor = Color.White;
     this.cardView1.Appearance.FilterPanel.GradientMode = LinearGradientMode.ForwardDiagonal;
     this.cardView1.Appearance.FilterPanel.Options.UseBackColor = true;
     this.cardView1.Appearance.FilterPanel.Options.UseForeColor = true;
     this.cardView1.Appearance.SeparatorLine.BackColor = Color.Black;
     this.cardView1.Appearance.SeparatorLine.Options.UseBackColor = true;
     this.cardView1.BorderStyle = BorderStyles.NoBorder;
     this.cardView1.Columns.AddRange(new GridColumn[] { this.colMapTitle, this.colStatus, this.colMap });
     this.cardView1.DetailHeight = 400;
     this.cardView1.FocusedCardTopFieldIndex = 0;
     this.cardView1.GridControl = this.gpgMapSelectGrid;
     this.cardView1.Name = "cardView1";
     this.cardView1.OptionsBehavior.AllowExpandCollapse = false;
     this.cardView1.OptionsBehavior.AutoPopulateColumns = false;
     this.cardView1.OptionsBehavior.FieldAutoHeight = true;
     this.cardView1.OptionsBehavior.Sizeable = false;
     this.cardView1.OptionsSelection.MultiSelect = true;
     this.cardView1.OptionsView.ShowCardCaption = false;
     this.cardView1.OptionsView.ShowFieldCaptions = false;
     this.cardView1.OptionsView.ShowQuickCustomizeButton = false;
     this.cardView1.VertScrollVisibility = ScrollVisibility.Auto;
     this.cardView1.CustomDrawCardField += new RowCellCustomDrawEventHandler(this.cardView1_CustomDrawCardField);
     this.cardView1.Click += new EventHandler(this.cardView1_Click);
     this.colMapTitle.AppearanceCell.BackColor = Color.FromArgb(0x1b, 0x2e, 0x4a);
     this.colMapTitle.AppearanceCell.BackColor2 = Color.FromArgb(12, 0x17, 0x29);
     this.colMapTitle.AppearanceCell.Font = new Font("Arial", 10f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.colMapTitle.AppearanceCell.ForeColor = Color.FromArgb(0x8f, 0xbd, 0xd1);
     this.colMapTitle.AppearanceCell.GradientMode = LinearGradientMode.ForwardDiagonal;
     this.colMapTitle.AppearanceCell.Options.UseBackColor = true;
     this.colMapTitle.AppearanceCell.Options.UseFont = true;
     this.colMapTitle.AppearanceCell.Options.UseForeColor = true;
     this.colMapTitle.AppearanceCell.Options.UseTextOptions = true;
     this.colMapTitle.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
     this.colMapTitle.AppearanceCell.TextOptions.Trimming = Trimming.None;
     this.colMapTitle.AppearanceCell.TextOptions.VAlignment = VertAlignment.Top;
     this.colMapTitle.AppearanceHeader.Font = new Font("Arial", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.colMapTitle.AppearanceHeader.Options.UseFont = true;
     this.colMapTitle.Caption = "Map Name";
     this.colMapTitle.FieldName = "Description";
     this.colMapTitle.Name = "colMapTitle";
     this.colMapTitle.OptionsColumn.AllowEdit = false;
     this.colMapTitle.Visible = true;
     this.colMapTitle.VisibleIndex = 0;
     this.colStatus.AppearanceCell.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.colStatus.AppearanceCell.Options.UseFont = true;
     this.colStatus.AppearanceCell.Options.UseTextOptions = true;
     this.colStatus.AppearanceCell.TextOptions.Trimming = Trimming.None;
     this.colStatus.AppearanceCell.TextOptions.VAlignment = VertAlignment.Center;
     this.colStatus.Caption = "Priority";
     this.colStatus.ColumnEdit = this.riPriority;
     this.colStatus.FieldName = "Priority";
     this.colStatus.Name = "colStatus";
     this.colStatus.OptionsColumn.AllowEdit = false;
     this.colStatus.OptionsColumn.AllowFocus = false;
     this.colStatus.OptionsColumn.ReadOnly = true;
     this.colStatus.ShowButtonMode = ShowButtonModeEnum.ShowOnlyInEditor;
     this.colStatus.Visible = true;
     this.colStatus.VisibleIndex = 1;
     this.riPriority.AllowNullInput = DefaultBoolean.True;
     this.riPriority.Appearance.BackColor = Color.Black;
     this.riPriority.Appearance.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.riPriority.Appearance.ForeColor = Color.White;
     this.riPriority.Appearance.Options.UseBackColor = true;
     this.riPriority.Appearance.Options.UseFont = true;
     this.riPriority.Appearance.Options.UseForeColor = true;
     this.riPriority.AppearanceDropDown.BackColor = Color.Black;
     this.riPriority.AppearanceDropDown.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.riPriority.AppearanceDropDown.ForeColor = Color.White;
     this.riPriority.AppearanceDropDown.Options.UseBackColor = true;
     this.riPriority.AppearanceDropDown.Options.UseFont = true;
     this.riPriority.AppearanceDropDown.Options.UseForeColor = true;
     this.riPriority.AutoHeight = false;
     this.riPriority.DropDownRows = 3;
     this.riPriority.HideSelection = false;
     this.riPriority.Items.AddRange(new ImageComboBoxItem[] { new ImageComboBoxItem("<LOC>Neutral", null, 0), new ImageComboBoxItem("<LOC>Thumbs Up", true, 1), new ImageComboBoxItem("<LOC>Thumbs Down", false, 2) });
     this.riPriority.LargeImages = this.ilThumbs;
     this.riPriority.Name = "riPriority";
     this.riPriority.Validating += new CancelEventHandler(this.riPriority_Validating);
     this.ilThumbs.ImageStream = (ImageListStreamer) manager.GetObject("ilThumbs.ImageStream");
     this.ilThumbs.TransparentColor = Color.Transparent;
     this.ilThumbs.Images.SetKeyName(0, "neutral.png");
     this.ilThumbs.Images.SetKeyName(1, "thumbsup.png");
     this.ilThumbs.Images.SetKeyName(2, "thumbsdown.png");
     this.colMap.Caption = "Image";
     this.colMap.ColumnEdit = this.riMap;
     this.colMap.FieldName = "Thumbnail";
     this.colMap.Name = "colMap";
     this.colMap.OptionsColumn.AllowEdit = false;
     this.colMap.Visible = true;
     this.colMap.VisibleIndex = 2;
     this.riMap.CustomHeight = 200;
     this.riMap.Name = "riMap";
     this.riMap.SizeMode = PictureSizeMode.Stretch;
     this.rimPictureEdit3.Name = "rimPictureEdit3";
     this.rimPictureEdit3.PictureAlignment = ContentAlignment.TopCenter;
     this.rimTextEdit.AutoHeight = false;
     this.rimTextEdit.Name = "rimTextEdit";
     this.rimMemoEdit3.MaxLength = 500;
     this.rimMemoEdit3.Name = "rimMemoEdit3";
     this.riPopup.AutoHeight = false;
     this.riPopup.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
     this.riPopup.Name = "riPopup";
     this.repositoryItemTimeEdit1.AutoHeight = false;
     this.repositoryItemTimeEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton() });
     this.repositoryItemTimeEdit1.Name = "repositoryItemTimeEdit1";
     this.repositoryItemTextEdit1.Appearance.Font = new Font("Arial", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.repositoryItemTextEdit1.Appearance.Options.UseFont = true;
     this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1";
     this.riPictureStatus.Name = "riPictureStatus";
     this.riPictureStatus.PictureAlignment = ContentAlignment.MiddleLeft;
     this.riPictureStatus.ReadOnly = true;
     this.riPictureStatus.Click += new EventHandler(this.riTextPriority_Click);
     this.riButtonStatus.AllowFocused = false;
     this.riButtonStatus.AllowNullInput = DefaultBoolean.True;
     this.riButtonStatus.AutoHeight = false;
     this.riButtonStatus.Name = "riButtonStatus";
     this.riButtonStatus.ReadOnly = true;
     this.riButtonStatus.TextEditStyle = TextEditStyles.DisableTextEditor;
     this.riButtonStatus.Click += new EventHandler(this.riTextPriority_Click);
     this.riButtonStatus.ButtonClick += new ButtonPressedEventHandler(this.riButtonStatus_ButtonClick);
     this.riTextPriority.AutoHeight = false;
     this.riTextPriority.Name = "riTextPriority";
     this.riTextPriority.ReadOnly = true;
     this.riTextPriority.Click += new EventHandler(this.riTextPriority_Click);
     this.colTime.Caption = "Time";
     this.colTime.ColumnEdit = this.repositoryItemTimeEdit1;
     this.colTime.FieldName = "DateTime";
     this.colTime.Name = "colTime";
     this.colTime.OptionsColumn.AllowEdit = false;
     this.colTime.Visible = true;
     this.colTime.VisibleIndex = 0;
     this.colType.Caption = "Type";
     this.colType.FieldName = "LogType";
     this.colType.Name = "colType";
     this.colType.OptionsColumn.AllowEdit = false;
     this.colType.Visible = true;
     this.colType.VisibleIndex = 1;
     this.colDescription.Caption = "Description";
     this.colDescription.FieldName = "Description";
     this.colDescription.Name = "colDescription";
     this.colDescription.OptionsColumn.AllowEdit = false;
     this.colDescription.Visible = true;
     this.colDescription.VisibleIndex = 2;
     this.colData.Caption = "Data";
     this.colData.ColumnEdit = this.riPopup;
     this.colData.FieldName = "Data";
     this.colData.Name = "colData";
     this.colData.Visible = true;
     this.colData.VisibleIndex = 3;
     this.rbAeon.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
     this.rbAeon.CheckAlign = ContentAlignment.BottomCenter;
     this.rbAeon.FlatStyle = FlatStyle.Flat;
     this.rbAeon.Image = Resources.aeon1;
     this.rbAeon.ImageAlign = ContentAlignment.TopCenter;
     this.rbAeon.Location = new Point(12, 0x1a7);
     this.rbAeon.Name = "rbAeon";
     this.rbAeon.Size = new Size(0xc6, 0xf5);
     base.ttDefault.SetSuperTip(this.rbAeon, null);
     this.rbAeon.TabIndex = 0x25;
     this.rbAeon.Text = "Aeon";
     this.rbAeon.TextAlign = ContentAlignment.BottomCenter;
     this.rbAeon.TextImageRelation = TextImageRelation.TextAboveImage;
     this.rbAeon.UseVisualStyleBackColor = true;
     this.rbAeon.Paint += new PaintEventHandler(this.rbRandom_Paint);
     this.rbAeon.CheckedChanged += new EventHandler(this.rbAeon_CheckedChanged);
     this.rbCybran.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
     this.rbCybran.CheckAlign = ContentAlignment.BottomCenter;
     this.rbCybran.FlatStyle = FlatStyle.Flat;
     this.rbCybran.Image = Resources.cybran1;
     this.rbCybran.ImageAlign = ContentAlignment.TopCenter;
     this.rbCybran.Location = new Point(0xd0, 0x1a7);
     this.rbCybran.Name = "rbCybran";
     this.rbCybran.Size = new Size(0xc6, 0xf5);
     base.ttDefault.SetSuperTip(this.rbCybran, null);
     this.rbCybran.TabIndex = 0x26;
     this.rbCybran.Text = "Cybran";
     this.rbCybran.TextAlign = ContentAlignment.BottomCenter;
     this.rbCybran.TextImageRelation = TextImageRelation.TextAboveImage;
     this.rbCybran.UseVisualStyleBackColor = true;
     this.rbCybran.Paint += new PaintEventHandler(this.rbRandom_Paint);
     this.rbCybran.CheckedChanged += new EventHandler(this.rbAeon_CheckedChanged);
     this.rbUEF.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
     this.rbUEF.CheckAlign = ContentAlignment.BottomCenter;
     this.rbUEF.FlatStyle = FlatStyle.Flat;
     this.rbUEF.Image = Resources.uef1;
     this.rbUEF.ImageAlign = ContentAlignment.TopCenter;
     this.rbUEF.Location = new Point(410, 0x1a7);
     this.rbUEF.Name = "rbUEF";
     this.rbUEF.Size = new Size(0xc6, 0xf5);
     base.ttDefault.SetSuperTip(this.rbUEF, null);
     this.rbUEF.TabIndex = 0x27;
     this.rbUEF.Text = "UEF";
     this.rbUEF.TextAlign = ContentAlignment.BottomCenter;
     this.rbUEF.TextImageRelation = TextImageRelation.TextAboveImage;
     this.rbUEF.UseVisualStyleBackColor = true;
     this.rbUEF.Paint += new PaintEventHandler(this.rbRandom_Paint);
     this.rbUEF.CheckedChanged += new EventHandler(this.rbAeon_CheckedChanged);
     this.rbRandom.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
     this.rbRandom.BackColor = Color.Black;
     this.rbRandom.CheckAlign = ContentAlignment.BottomCenter;
     this.rbRandom.Checked = true;
     this.rbRandom.FlatStyle = FlatStyle.Flat;
     this.rbRandom.Image = Resources.random1;
     this.rbRandom.ImageAlign = ContentAlignment.TopCenter;
     this.rbRandom.Location = new Point(0x329, 0x1a7);
     this.rbRandom.Name = "rbRandom";
     this.rbRandom.Size = new Size(0xc6, 0xf5);
     base.ttDefault.SetSuperTip(this.rbRandom, null);
     this.rbRandom.TabIndex = 40;
     this.rbRandom.TabStop = true;
     this.rbRandom.Text = "<LOC>Random";
     this.rbRandom.TextAlign = ContentAlignment.BottomCenter;
     this.rbRandom.TextImageRelation = TextImageRelation.TextAboveImage;
     this.rbRandom.UseVisualStyleBackColor = false;
     this.rbRandom.Paint += new PaintEventHandler(this.rbRandom_Paint);
     this.rbRandom.CheckedChanged += new EventHandler(this.rbAeon_CheckedChanged);
     this.lMapPrefs.AutoGrowDirection = GrowDirections.None;
     this.lMapPrefs.AutoSize = true;
     this.lMapPrefs.AutoStyle = true;
     this.lMapPrefs.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.lMapPrefs.ForeColor = Color.White;
     this.lMapPrefs.IgnoreMouseWheel = false;
     this.lMapPrefs.IsStyled = false;
     this.lMapPrefs.Location = new Point(0x15, 0x3e);
     this.lMapPrefs.Name = "lMapPrefs";
     this.lMapPrefs.Size = new Size(0x263, 0x10);
     base.ttDefault.SetSuperTip(this.lMapPrefs, null);
     this.lMapPrefs.TabIndex = 0x29;
     this.lMapPrefs.Text = "<LOC>Step 1: Select your map preferences -- you may have only one thumbs up and one thumbs down.";
     this.lMapPrefs.TextStyle = TextStyles.Default;
     this.gpgLabel1.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
     this.gpgLabel1.AutoGrowDirection = GrowDirections.None;
     this.gpgLabel1.AutoSize = true;
     this.gpgLabel1.AutoStyle = true;
     this.gpgLabel1.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.gpgLabel1.ForeColor = Color.White;
     this.gpgLabel1.IgnoreMouseWheel = false;
     this.gpgLabel1.IsStyled = false;
     this.gpgLabel1.Location = new Point(12, 0x189);
     this.gpgLabel1.Name = "gpgLabel1";
     this.gpgLabel1.Size = new Size(0xcc, 0x10);
     base.ttDefault.SetSuperTip(this.gpgLabel1, null);
     this.gpgLabel1.TabIndex = 0x2a;
     this.gpgLabel1.Text = "<LOC>Step 2: Select your faction";
     this.gpgLabel1.TextStyle = TextStyles.Default;
     this.skinButtonCancel.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     this.skinButtonCancel.AutoStyle = true;
     this.skinButtonCancel.BackColor = Color.Black;
     this.skinButtonCancel.ButtonState = 0;
     this.skinButtonCancel.DialogResult = DialogResult.OK;
     this.skinButtonCancel.DisabledForecolor = Color.Gray;
     this.skinButtonCancel.DrawColor = Color.White;
     this.skinButtonCancel.DrawEdges = true;
     this.skinButtonCancel.FocusColor = Color.Yellow;
     this.skinButtonCancel.Font = new Font("Verdana", 8f, FontStyle.Bold);
     this.skinButtonCancel.ForeColor = Color.White;
     this.skinButtonCancel.HorizontalScalingMode = ScalingModes.Tile;
     this.skinButtonCancel.IsStyled = true;
     this.skinButtonCancel.Location = new Point(870, 0x2a2);
     this.skinButtonCancel.Name = "skinButtonCancel";
     this.skinButtonCancel.Size = new Size(0x61, 0x17);
     this.skinButtonCancel.SkinBasePath = @"Controls\Button\Round Edge";
     base.ttDefault.SetSuperTip(this.skinButtonCancel, null);
     this.skinButtonCancel.TabIndex = 0x2d;
     this.skinButtonCancel.TabStop = true;
     this.skinButtonCancel.Text = "<LOC>Cancel";
     this.skinButtonCancel.TextAlign = ContentAlignment.MiddleCenter;
     this.skinButtonCancel.TextPadding = new Padding(0);
     this.skinButtonCancel.Click += new EventHandler(this.skinButtonCancel_Click);
     this.skinButtonSearch.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     this.skinButtonSearch.AutoStyle = true;
     this.skinButtonSearch.BackColor = Color.Black;
     this.skinButtonSearch.ButtonState = 0;
     this.skinButtonSearch.DialogResult = DialogResult.OK;
     this.skinButtonSearch.DisabledForecolor = Color.Gray;
     this.skinButtonSearch.DrawColor = Color.White;
     this.skinButtonSearch.DrawEdges = true;
     this.skinButtonSearch.FocusColor = Color.Yellow;
     this.skinButtonSearch.Font = new Font("Verdana", 8f, FontStyle.Bold);
     this.skinButtonSearch.ForeColor = Color.White;
     this.skinButtonSearch.HorizontalScalingMode = ScalingModes.Tile;
     this.skinButtonSearch.IsStyled = true;
     this.skinButtonSearch.Location = new Point(0x2ff, 0x2a2);
     this.skinButtonSearch.Name = "skinButtonSearch";
     this.skinButtonSearch.Size = new Size(0x61, 0x17);
     this.skinButtonSearch.SkinBasePath = @"Controls\Button\Round Edge";
     base.ttDefault.SetSuperTip(this.skinButtonSearch, null);
     this.skinButtonSearch.TabIndex = 0x2e;
     this.skinButtonSearch.TabStop = true;
     this.skinButtonSearch.Text = "<LOC>Start Search";
     this.skinButtonSearch.TextAlign = ContentAlignment.MiddleCenter;
     this.skinButtonSearch.TextPadding = new Padding(0);
     this.skinButtonSearch.Click += new EventHandler(this.skinButton1_Click);
     this.rbSeraphim.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
     this.rbSeraphim.BackColor = Color.Black;
     this.rbSeraphim.CheckAlign = ContentAlignment.BottomCenter;
     this.rbSeraphim.FlatStyle = FlatStyle.Flat;
     this.rbSeraphim.Image = Resources.seraphim;
     this.rbSeraphim.ImageAlign = ContentAlignment.TopCenter;
     this.rbSeraphim.Location = new Point(610, 0x1a7);
     this.rbSeraphim.Name = "rbSeraphim";
     this.rbSeraphim.Size = new Size(0xc6, 0xf5);
     base.ttDefault.SetSuperTip(this.rbSeraphim, null);
     this.rbSeraphim.TabIndex = 0x2f;
     this.rbSeraphim.Text = "Seraphim";
     this.rbSeraphim.TextAlign = ContentAlignment.BottomCenter;
     this.rbSeraphim.TextImageRelation = TextImageRelation.TextAboveImage;
     this.rbSeraphim.UseVisualStyleBackColor = false;
     this.rbSeraphim.Paint += new PaintEventHandler(this.rbRandom_Paint);
     this.rbSeraphim.CheckedChanged += new EventHandler(this.rbSeraphim_CheckedChanged);
     base.AcceptButton = this.skinButtonSearch;
     base.AutoScaleMode = AutoScaleMode.None;
     base.CancelButton = this.skinButtonCancel;
     base.ClientSize = new Size(0x400, 740);
     base.Controls.Add(this.rbSeraphim);
     base.Controls.Add(this.skinButtonSearch);
     base.Controls.Add(this.skinButtonCancel);
     base.Controls.Add(this.gpgLabel1);
     base.Controls.Add(this.lMapPrefs);
     base.Controls.Add(this.rbRandom);
     base.Controls.Add(this.rbUEF);
     base.Controls.Add(this.rbCybran);
     base.Controls.Add(this.rbAeon);
     base.Controls.Add(this.gpgMapSelectGrid);
     this.Font = new Font("Verdana", 8f);
     base.Location = new Point(0, 0);
     this.MinimumSize = new Size(0x400, 740);
     base.Name = "DlgSupcomMapOptions";
     base.ttDefault.SetSuperTip(this, null);
     this.Text = "<LOC>Ranked Match Preferences";
     base.Controls.SetChildIndex(this.gpgMapSelectGrid, 0);
     base.Controls.SetChildIndex(this.rbAeon, 0);
     base.Controls.SetChildIndex(this.rbCybran, 0);
     base.Controls.SetChildIndex(this.rbUEF, 0);
     base.Controls.SetChildIndex(this.rbRandom, 0);
     base.Controls.SetChildIndex(this.lMapPrefs, 0);
     base.Controls.SetChildIndex(this.gpgLabel1, 0);
     base.Controls.SetChildIndex(this.skinButtonCancel, 0);
     base.Controls.SetChildIndex(this.skinButtonSearch, 0);
     base.Controls.SetChildIndex(this.rbSeraphim, 0);
     ((ISupportInitialize) base.pbBottom).EndInit();
     this.gpgMapSelectGrid.EndInit();
     this.cardView1.EndInit();
     this.riPriority.EndInit();
     this.riMap.EndInit();
     this.rimPictureEdit3.EndInit();
     this.rimTextEdit.EndInit();
     this.rimMemoEdit3.EndInit();
     this.riPopup.EndInit();
     this.repositoryItemTimeEdit1.EndInit();
     this.repositoryItemTextEdit1.EndInit();
     this.riPictureStatus.EndInit();
     this.riButtonStatus.EndInit();
     this.riTextPriority.EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Exemple #11
0
 private void InitializeComponent()
 {
     this.gpgPacketGrid = new GPGChatGrid();
     this.gvPacketGrid = new GridView();
     this.colSourceAddress = new GridColumn();
     this.colSourcePort = new GridColumn();
     this.colDestAddress = new GridColumn();
     this.colDestPort = new GridColumn();
     this.colData = new GridColumn();
     this.repositoryItemMemoEdit1 = new RepositoryItemMemoEdit();
     this.colTime = new GridColumn();
     this.repositoryItemTimeEdit1 = new RepositoryItemTimeEdit();
     this.colBytes = new GridColumn();
     this.colPacketType = new GridColumn();
     this.rimPictureEdit3 = new RepositoryItemPictureEdit();
     this.rimTextEdit = new RepositoryItemTextEdit();
     this.rimMemoEdit3 = new RepositoryItemMemoEdit();
     this.btnEnd = new GPGButton();
     this.btnBegin = new GPGButton();
     this.btnTestPacket = new GPGButton();
     this.gpgPacketGrid.BeginInit();
     this.gvPacketGrid.BeginInit();
     this.repositoryItemMemoEdit1.BeginInit();
     this.repositoryItemTimeEdit1.BeginInit();
     this.rimPictureEdit3.BeginInit();
     this.rimTextEdit.BeginInit();
     this.rimMemoEdit3.BeginInit();
     base.SuspendLayout();
     this.gpgPacketGrid.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     this.gpgPacketGrid.EmbeddedNavigator.Name = "";
     this.gpgPacketGrid.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.gpgPacketGrid.IgnoreMouseWheel = false;
     this.gpgPacketGrid.Location = new Point(12, 0x53);
     this.gpgPacketGrid.LookAndFeel.SkinName = "Money Twins";
     this.gpgPacketGrid.LookAndFeel.UseDefaultLookAndFeel = false;
     this.gpgPacketGrid.MainView = this.gvPacketGrid;
     this.gpgPacketGrid.Name = "gpgPacketGrid";
     this.gpgPacketGrid.RepositoryItems.AddRange(new RepositoryItem[] { this.rimPictureEdit3, this.rimTextEdit, this.rimMemoEdit3, this.repositoryItemMemoEdit1, this.repositoryItemTimeEdit1 });
     this.gpgPacketGrid.Size = new Size(0x32d, 350);
     this.gpgPacketGrid.TabIndex = 12;
     this.gpgPacketGrid.ViewCollection.AddRange(new BaseView[] { this.gvPacketGrid });
     this.gvPacketGrid.ActiveFilterString = "";
     this.gvPacketGrid.Appearance.ColumnFilterButton.BackColor = Color.Black;
     this.gvPacketGrid.Appearance.ColumnFilterButton.BackColor2 = Color.FromArgb(20, 20, 20);
     this.gvPacketGrid.Appearance.ColumnFilterButton.BorderColor = Color.Black;
     this.gvPacketGrid.Appearance.ColumnFilterButton.ForeColor = Color.Gray;
     this.gvPacketGrid.Appearance.ColumnFilterButton.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.ColumnFilterButton.Options.UseBorderColor = true;
     this.gvPacketGrid.Appearance.ColumnFilterButton.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.ColumnFilterButtonActive.BackColor = Color.FromArgb(20, 20, 20);
     this.gvPacketGrid.Appearance.ColumnFilterButtonActive.BackColor2 = Color.FromArgb(0x4e, 0x4e, 0x4e);
     this.gvPacketGrid.Appearance.ColumnFilterButtonActive.BorderColor = Color.FromArgb(20, 20, 20);
     this.gvPacketGrid.Appearance.ColumnFilterButtonActive.ForeColor = Color.Blue;
     this.gvPacketGrid.Appearance.ColumnFilterButtonActive.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.ColumnFilterButtonActive.Options.UseBorderColor = true;
     this.gvPacketGrid.Appearance.ColumnFilterButtonActive.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.Empty.BackColor = Color.Black;
     this.gvPacketGrid.Appearance.Empty.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.FilterCloseButton.BackColor = Color.FromArgb(0xd4, 0xd0, 200);
     this.gvPacketGrid.Appearance.FilterCloseButton.BackColor2 = Color.FromArgb(90, 90, 90);
     this.gvPacketGrid.Appearance.FilterCloseButton.BorderColor = Color.FromArgb(0xd4, 0xd0, 200);
     this.gvPacketGrid.Appearance.FilterCloseButton.ForeColor = Color.Black;
     this.gvPacketGrid.Appearance.FilterCloseButton.GradientMode = LinearGradientMode.ForwardDiagonal;
     this.gvPacketGrid.Appearance.FilterCloseButton.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.FilterCloseButton.Options.UseBorderColor = true;
     this.gvPacketGrid.Appearance.FilterCloseButton.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.FilterPanel.BackColor = Color.Black;
     this.gvPacketGrid.Appearance.FilterPanel.BackColor2 = Color.FromArgb(0xd4, 0xd0, 200);
     this.gvPacketGrid.Appearance.FilterPanel.ForeColor = Color.White;
     this.gvPacketGrid.Appearance.FilterPanel.GradientMode = LinearGradientMode.ForwardDiagonal;
     this.gvPacketGrid.Appearance.FilterPanel.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.FilterPanel.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.FixedLine.BackColor = Color.FromArgb(0x3a, 0x3a, 0x3a);
     this.gvPacketGrid.Appearance.FixedLine.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.FocusedCell.BackColor = Color.Black;
     this.gvPacketGrid.Appearance.FocusedCell.Font = new Font("Tahoma", 10f);
     this.gvPacketGrid.Appearance.FocusedCell.ForeColor = Color.White;
     this.gvPacketGrid.Appearance.FocusedCell.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.FocusedCell.Options.UseFont = true;
     this.gvPacketGrid.Appearance.FocusedCell.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.FocusedRow.BackColor = Color.FromArgb(0xbb, 0xc9, 0xe2);
     this.gvPacketGrid.Appearance.FocusedRow.BackColor2 = Color.FromArgb(0x52, 0x83, 190);
     this.gvPacketGrid.Appearance.FocusedRow.Font = new Font("Arial", 9.75f);
     this.gvPacketGrid.Appearance.FocusedRow.ForeColor = Color.White;
     this.gvPacketGrid.Appearance.FocusedRow.GradientMode = LinearGradientMode.ForwardDiagonal;
     this.gvPacketGrid.Appearance.FocusedRow.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.FocusedRow.Options.UseFont = true;
     this.gvPacketGrid.Appearance.FocusedRow.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.FooterPanel.BackColor = Color.Black;
     this.gvPacketGrid.Appearance.FooterPanel.BorderColor = Color.Black;
     this.gvPacketGrid.Appearance.FooterPanel.Font = new Font("Tahoma", 10f);
     this.gvPacketGrid.Appearance.FooterPanel.ForeColor = Color.White;
     this.gvPacketGrid.Appearance.FooterPanel.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.FooterPanel.Options.UseBorderColor = true;
     this.gvPacketGrid.Appearance.FooterPanel.Options.UseFont = true;
     this.gvPacketGrid.Appearance.FooterPanel.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.GroupButton.BackColor = Color.Black;
     this.gvPacketGrid.Appearance.GroupButton.BorderColor = Color.Black;
     this.gvPacketGrid.Appearance.GroupButton.ForeColor = Color.White;
     this.gvPacketGrid.Appearance.GroupButton.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.GroupButton.Options.UseBorderColor = true;
     this.gvPacketGrid.Appearance.GroupButton.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.GroupFooter.BackColor = Color.FromArgb(10, 10, 10);
     this.gvPacketGrid.Appearance.GroupFooter.BorderColor = Color.FromArgb(10, 10, 10);
     this.gvPacketGrid.Appearance.GroupFooter.ForeColor = Color.White;
     this.gvPacketGrid.Appearance.GroupFooter.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.GroupFooter.Options.UseBorderColor = true;
     this.gvPacketGrid.Appearance.GroupFooter.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.GroupPanel.BackColor = Color.Black;
     this.gvPacketGrid.Appearance.GroupPanel.BackColor2 = Color.Black;
     this.gvPacketGrid.Appearance.GroupPanel.Font = new Font("Tahoma", 10f, FontStyle.Bold);
     this.gvPacketGrid.Appearance.GroupPanel.ForeColor = Color.White;
     this.gvPacketGrid.Appearance.GroupPanel.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.GroupPanel.Options.UseFont = true;
     this.gvPacketGrid.Appearance.GroupPanel.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.GroupRow.BackColor = Color.Gray;
     this.gvPacketGrid.Appearance.GroupRow.Font = new Font("Tahoma", 10f);
     this.gvPacketGrid.Appearance.GroupRow.ForeColor = Color.White;
     this.gvPacketGrid.Appearance.GroupRow.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.GroupRow.Options.UseFont = true;
     this.gvPacketGrid.Appearance.GroupRow.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.HeaderPanel.BackColor = Color.Black;
     this.gvPacketGrid.Appearance.HeaderPanel.BorderColor = Color.Black;
     this.gvPacketGrid.Appearance.HeaderPanel.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.gvPacketGrid.Appearance.HeaderPanel.ForeColor = Color.Black;
     this.gvPacketGrid.Appearance.HeaderPanel.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.HeaderPanel.Options.UseBorderColor = true;
     this.gvPacketGrid.Appearance.HeaderPanel.Options.UseFont = true;
     this.gvPacketGrid.Appearance.HeaderPanel.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.HideSelectionRow.BackColor = Color.Gray;
     this.gvPacketGrid.Appearance.HideSelectionRow.Font = new Font("Tahoma", 10f);
     this.gvPacketGrid.Appearance.HideSelectionRow.ForeColor = Color.FromArgb(0xd4, 0xd0, 200);
     this.gvPacketGrid.Appearance.HideSelectionRow.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.HideSelectionRow.Options.UseFont = true;
     this.gvPacketGrid.Appearance.HideSelectionRow.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.HorzLine.BackColor = Color.FromArgb(0x52, 0x83, 190);
     this.gvPacketGrid.Appearance.HorzLine.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.Preview.BackColor = Color.White;
     this.gvPacketGrid.Appearance.Preview.Font = new Font("Tahoma", 10f);
     this.gvPacketGrid.Appearance.Preview.ForeColor = Color.Purple;
     this.gvPacketGrid.Appearance.Preview.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.Preview.Options.UseFont = true;
     this.gvPacketGrid.Appearance.Preview.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.Row.BackColor = Color.Black;
     this.gvPacketGrid.Appearance.Row.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0xb2);
     this.gvPacketGrid.Appearance.Row.ForeColor = Color.White;
     this.gvPacketGrid.Appearance.Row.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.Row.Options.UseFont = true;
     this.gvPacketGrid.Appearance.Row.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.RowSeparator.BackColor = Color.White;
     this.gvPacketGrid.Appearance.RowSeparator.BackColor2 = Color.White;
     this.gvPacketGrid.Appearance.RowSeparator.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.SelectedRow.BackColor = Color.FromArgb(0xbb, 0xc9, 0xe2);
     this.gvPacketGrid.Appearance.SelectedRow.BackColor2 = Color.FromArgb(0x52, 0x83, 190);
     this.gvPacketGrid.Appearance.SelectedRow.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.gvPacketGrid.Appearance.SelectedRow.ForeColor = Color.White;
     this.gvPacketGrid.Appearance.SelectedRow.GradientMode = LinearGradientMode.ForwardDiagonal;
     this.gvPacketGrid.Appearance.SelectedRow.Options.UseBackColor = true;
     this.gvPacketGrid.Appearance.SelectedRow.Options.UseFont = true;
     this.gvPacketGrid.Appearance.SelectedRow.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.TopNewRow.Font = new Font("Tahoma", 10f);
     this.gvPacketGrid.Appearance.TopNewRow.ForeColor = Color.White;
     this.gvPacketGrid.Appearance.TopNewRow.Options.UseFont = true;
     this.gvPacketGrid.Appearance.TopNewRow.Options.UseForeColor = true;
     this.gvPacketGrid.Appearance.VertLine.BackColor = Color.FromArgb(0x52, 0x83, 190);
     this.gvPacketGrid.Appearance.VertLine.Options.UseBackColor = true;
     this.gvPacketGrid.BorderStyle = BorderStyles.NoBorder;
     this.gvPacketGrid.Columns.AddRange(new GridColumn[] { this.colSourceAddress, this.colSourcePort, this.colDestAddress, this.colDestPort, this.colData, this.colTime, this.colBytes, this.colPacketType });
     this.gvPacketGrid.GridControl = this.gpgPacketGrid;
     this.gvPacketGrid.Name = "gvPacketGrid";
     this.gvPacketGrid.OptionsDetail.AllowZoomDetail = false;
     this.gvPacketGrid.OptionsDetail.EnableMasterViewMode = false;
     this.gvPacketGrid.OptionsDetail.ShowDetailTabs = false;
     this.gvPacketGrid.OptionsDetail.SmartDetailExpand = false;
     this.gvPacketGrid.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.gvPacketGrid.OptionsSelection.MultiSelect = true;
     this.gvPacketGrid.OptionsView.RowAutoHeight = true;
     this.colSourceAddress.Caption = "Source Address";
     this.colSourceAddress.FieldName = "SourceAddress";
     this.colSourceAddress.Name = "colSourceAddress";
     this.colSourceAddress.OptionsColumn.AllowEdit = false;
     this.colSourceAddress.Visible = true;
     this.colSourceAddress.VisibleIndex = 1;
     this.colSourceAddress.Width = 0x73;
     this.colSourcePort.Caption = "Source Port";
     this.colSourcePort.FieldName = "SourcePort";
     this.colSourcePort.Name = "colSourcePort";
     this.colSourcePort.OptionsColumn.AllowEdit = false;
     this.colSourcePort.Visible = true;
     this.colSourcePort.VisibleIndex = 2;
     this.colSourcePort.Width = 0x60;
     this.colDestAddress.Caption = "Dest Address";
     this.colDestAddress.FieldName = "DestAddress";
     this.colDestAddress.Name = "colDestAddress";
     this.colDestAddress.OptionsColumn.AllowEdit = false;
     this.colDestAddress.Visible = true;
     this.colDestAddress.VisibleIndex = 3;
     this.colDestAddress.Width = 0x63;
     this.colDestPort.Caption = "Dest Port";
     this.colDestPort.FieldName = "DestPort";
     this.colDestPort.Name = "colDestPort";
     this.colDestPort.OptionsColumn.AllowEdit = false;
     this.colDestPort.Visible = true;
     this.colDestPort.VisibleIndex = 4;
     this.colDestPort.Width = 0x5e;
     this.colData.Caption = "Data";
     this.colData.ColumnEdit = this.repositoryItemMemoEdit1;
     this.colData.FieldName = "Data";
     this.colData.Name = "colData";
     this.colData.OptionsColumn.AllowEdit = false;
     this.colData.Visible = true;
     this.colData.VisibleIndex = 5;
     this.colData.Width = 0x188;
     this.repositoryItemMemoEdit1.Name = "repositoryItemMemoEdit1";
     this.colTime.Caption = "Time";
     this.colTime.ColumnEdit = this.repositoryItemTimeEdit1;
     this.colTime.FieldName = "Time";
     this.colTime.Name = "colTime";
     this.colTime.OptionsColumn.AllowEdit = false;
     this.colTime.Visible = true;
     this.colTime.VisibleIndex = 0;
     this.repositoryItemTimeEdit1.AutoHeight = false;
     this.repositoryItemTimeEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton() });
     this.repositoryItemTimeEdit1.Name = "repositoryItemTimeEdit1";
     this.colBytes.Caption = "Byte List";
     this.colBytes.ColumnEdit = this.repositoryItemMemoEdit1;
     this.colBytes.FieldName = "ByteList";
     this.colBytes.Name = "colBytes";
     this.colBytes.OptionsColumn.AllowEdit = false;
     this.colPacketType.Caption = "Packet Type";
     this.colPacketType.FieldName = "PacketType";
     this.colPacketType.Name = "colPacketType";
     this.colPacketType.OptionsColumn.AllowEdit = false;
     this.rimPictureEdit3.Name = "rimPictureEdit3";
     this.rimPictureEdit3.PictureAlignment = ContentAlignment.TopCenter;
     this.rimTextEdit.AutoHeight = false;
     this.rimTextEdit.Name = "rimTextEdit";
     this.rimMemoEdit3.MaxLength = 500;
     this.rimMemoEdit3.Name = "rimMemoEdit3";
     this.btnEnd.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     this.btnEnd.ForeColor = Color.Black;
     this.btnEnd.Location = new Point(0x259, 0x1b7);
     this.btnEnd.Name = "btnEnd";
     this.btnEnd.Size = new Size(0x68, 0x17);
     this.btnEnd.TabIndex = 0x1a;
     this.btnEnd.Text = "End Sniffing";
     this.btnEnd.UseVisualStyleBackColor = true;
     this.btnEnd.Click += new EventHandler(this.btnEnd_Click);
     this.btnBegin.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     this.btnBegin.ForeColor = Color.Black;
     this.btnBegin.Location = new Point(0x2c7, 0x1b7);
     this.btnBegin.Name = "btnBegin";
     this.btnBegin.Size = new Size(0x68, 0x17);
     this.btnBegin.TabIndex = 0x19;
     this.btnBegin.Text = "Begin Sniffing";
     this.btnBegin.UseVisualStyleBackColor = true;
     this.btnBegin.Click += new EventHandler(this.btnBegin_Click);
     this.btnTestPacket.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     this.btnTestPacket.ForeColor = Color.Black;
     this.btnTestPacket.Location = new Point(0x1eb, 0x1b7);
     this.btnTestPacket.Name = "btnTestPacket";
     this.btnTestPacket.Size = new Size(0x68, 0x17);
     this.btnTestPacket.TabIndex = 0x1b;
     this.btnTestPacket.Text = "Test";
     this.btnTestPacket.UseVisualStyleBackColor = true;
     this.btnTestPacket.Click += new EventHandler(this.btnTestPacket_Click);
     base.AutoScaleDimensions = new SizeF(7f, 16f);
     base.AutoScaleMode = AutoScaleMode.None;
     base.ClientSize = new Size(0x345, 0x214);
     base.Controls.Add(this.btnTestPacket);
     base.Controls.Add(this.btnEnd);
     base.Controls.Add(this.btnBegin);
     base.Controls.Add(this.gpgPacketGrid);
     base.Location = new Point(0, 0);
     base.Name = "DlgUDPSniffer";
     this.Text = "Packet Sniffer";
     base.Controls.SetChildIndex(this.gpgPacketGrid, 0);
     base.Controls.SetChildIndex(this.btnBegin, 0);
     base.Controls.SetChildIndex(this.btnEnd, 0);
     base.Controls.SetChildIndex(this.btnTestPacket, 0);
     this.gpgPacketGrid.EndInit();
     this.gvPacketGrid.EndInit();
     this.repositoryItemMemoEdit1.EndInit();
     this.repositoryItemTimeEdit1.EndInit();
     this.rimPictureEdit3.EndInit();
     this.rimTextEdit.EndInit();
     this.rimMemoEdit3.EndInit();
     base.ResumeLayout(false);
 }
Exemple #12
0
        private static void InitializeControl(GridControl gridControl)
        {
            var gridView = new GridView();
            var repositoryItemDateEdit1   = new RepositoryItemDateEdit();
            var repositoryItemComboBox1   = new RepositoryItemComboBox();
            var repositoryItemTimeEdit1   = new RepositoryItemTimeEdit();
            var repositoryItemDateEdit2   = new RepositoryItemDateEdit();
            var repositoryItemMemoExEdit1 = new RepositoryItemMemoExEdit();

            gridControl.Dock     = System.Windows.Forms.DockStyle.Fill;
            gridControl.Location = new System.Drawing.Point(0, 0);
            gridControl.MainView = gridView;
            gridControl.Name     = "gridControl";
            gridControl.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
                repositoryItemDateEdit1,
                repositoryItemComboBox1,
                repositoryItemTimeEdit1,
                repositoryItemDateEdit2,
                repositoryItemMemoExEdit1
            });
            gridControl.Size                 = new System.Drawing.Size(718, 504);
            gridControl.TabIndex             = 26;
            gridControl.UseEmbeddedNavigator = true;
            gridControl.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
                gridView
            });
            //
            // gridView
            //
            gridView.GridControl = gridControl;
            gridView.Name        = "gridView";
            gridView.OptionsSelection.MultiSelect    = true;
            gridView.OptionsView.BestFitMaxRowCount  = 10;
            gridView.OptionsView.ColumnAutoWidth     = false;
            gridView.OptionsView.NewItemRowPosition  = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.Bottom;
            gridView.OptionsView.ShowAutoFilterRow   = true;
            gridView.OptionsView.ShowFilterPanelMode = DevExpress.XtraGrid.Views.Base.ShowFilterPanelMode.ShowAlways;
            gridView.OptionsView.ShowFooter          = true;
            //
            // repositoryItemDateEdit1
            //
            repositoryItemDateEdit1.AutoHeight = false;
            repositoryItemDateEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
                new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
            });
            repositoryItemDateEdit1.CalendarTimeEditing = DevExpress.Utils.DefaultBoolean.True;
            repositoryItemDateEdit1.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
                new DevExpress.XtraEditors.Controls.EditorButton()
            });
            repositoryItemDateEdit1.CalendarView  = DevExpress.XtraEditors.Repository.CalendarView.Vista;
            repositoryItemDateEdit1.Mask.EditMask = "yyyy/MM/dd HH:mm:ss";
            repositoryItemDateEdit1.Mask.UseMaskAsDisplayFormat = true;
            repositoryItemDateEdit1.Name             = "repositoryItemDateEdit1";
            repositoryItemDateEdit1.VistaDisplayMode = DevExpress.Utils.DefaultBoolean.True;
            //
            // repositoryItemComboBox1
            //
            repositoryItemComboBox1.AutoHeight = false;
            repositoryItemComboBox1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
                new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
            });
            repositoryItemComboBox1.Name = "repositoryItemComboBox1";
            //
            // repositoryItemTimeEdit1
            //
            repositoryItemTimeEdit1.AutoHeight = false;
            repositoryItemTimeEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
                new DevExpress.XtraEditors.Controls.EditorButton()
            });
            repositoryItemTimeEdit1.Name = "repositoryItemTimeEdit1";
            //
            // repositoryItemDateEdit2
            //
            repositoryItemDateEdit2.AutoHeight = false;
            repositoryItemDateEdit2.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
                new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
            });
            repositoryItemDateEdit2.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
                new DevExpress.XtraEditors.Controls.EditorButton()
            });
            repositoryItemDateEdit2.Name = "repositoryItemDateEdit2";
            //
            // repositoryItemMemoExEdit1
            //
            repositoryItemMemoExEdit1.AutoHeight = false;
            repositoryItemMemoExEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
                new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
            });
            repositoryItemMemoExEdit1.Name       = "repositoryItemMemoExEdit1";
            repositoryItemMemoExEdit1.ReadOnly   = true;
            repositoryItemMemoExEdit1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
            repositoryItemMemoExEdit1.ShowIcon   = false;
        }
Exemple #13
0
        private void InitializeComponent()
        {
            this.components = (IContainer) new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(PollForm));

            this.panelDialog                             = new Panel();
            this.simpleButtonExit2                       = new SimpleButton();
            this.simpleButtonSelect                      = new SimpleButton();
            this.panelDictionary                         = new Panel();
            this.simpleButtonExit                        = new SimpleButton();
            this.simpleButtonApply                       = new SimpleButton();
            this.simpleButtonCancel                      = new SimpleButton();
            this.splitContainer1                         = new SplitContainer();
            this.treeListPollGroup                       = new TreeList();
            this.colname_collgroup                       = new TreeListColumn();
            this.colisactive                             = new TreeListColumn();
            this.treeListColumn1                         = new TreeListColumn();
            this.contextMenuStripPollGroup               = new ContextMenuStrip(this.components);
            this.toolStripMenuItemPollGroupAddGroup      = new ToolStripMenuItem();
            this.toolStripMenuItemPollGroupAddChildGroup = new ToolStripMenuItem();
            this.toolStripMenuItemPollGroupRename        = new ToolStripMenuItem();
            this.toolStripSeparator1                     = new ToolStripSeparator();
            this.toolStripMenuItemPollGroupDelete        = new ToolStripMenuItem();
            this.toolStripSeparator2                     = new ToolStripSeparator();
            this.toolStripMenuItemPoolGroupRemove        = new ToolStripMenuItem();
            this.toolStripMenuItemPollGroupMakeRoot      = new ToolStripMenuItem();
            this.toolStripSeparator3                     = new ToolStripSeparator();
            this.toolStripMenuItemPollGroupMoveUp        = new ToolStripMenuItem();
            this.toolStripMenuItemPollGroupMoveDown      = new ToolStripMenuItem();
            this.imageListPoll                           = new ImageList(this.components);
            this.gridControlPoll                         = new GridControl();
            this.contextMenuStripPoll                    = new ContextMenuStrip(this.components);
            this.toolStripMenuItemPollAdd                = new ToolStripMenuItem();
            this.toolStripMenuItemPollDouble             = new ToolStripMenuItem();
            this.toolStripMenuItemPollEdit               = new ToolStripMenuItem();
            this.toolStripSeparator5                     = new ToolStripSeparator();
            this.toolStripMenuItemPollDelete             = new ToolStripMenuItem();
            this.toolStripSeparator4                     = new ToolStripSeparator();
            this.toolStripMenuItemPollMove               = new ToolStripMenuItem();
            this.gridViewPoll                            = new GridView();
            this.gridColumn5                             = new GridColumn();
            this.gridColumn1                             = new GridColumn();
            this.gridColumn4                             = new GridColumn();
            this.repositoryItemTimeEdit1                 = new RepositoryItemTimeEdit();
            this.repositoryItemButtonEdit1               = new RepositoryItemButtonEdit();
            this.ds_poll = new DataSet();
            this.panelDialog.SuspendLayout();
            this.panelDictionary.SuspendLayout();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.treeListPollGroup.BeginInit();
            this.contextMenuStripPollGroup.SuspendLayout();
            this.gridControlPoll.BeginInit();
            this.contextMenuStripPoll.SuspendLayout();
            this.gridViewPoll.BeginInit();
            this.repositoryItemTimeEdit1.BeginInit();
            this.repositoryItemButtonEdit1.BeginInit();
            this.ds_poll.BeginInit();
            this.SuspendLayout();
            this.panelDialog.Controls.Add((Control)this.simpleButtonExit2);
            this.panelDialog.Controls.Add((Control)this.simpleButtonSelect);
            this.panelDialog.Dock                    = DockStyle.Bottom;
            this.panelDialog.Location                = new Point(0, 433);
            this.panelDialog.Name                    = "panelDialog";
            this.panelDialog.Size                    = new Size(831, 33);
            this.panelDialog.TabIndex                = 0;
            this.simpleButtonExit2.Anchor            = AnchorStyles.Bottom | AnchorStyles.Right;
            this.simpleButtonExit2.ButtonStyle       = BorderStyles.Simple;
            this.simpleButtonExit2.DialogResult      = DialogResult.Cancel;
            this.simpleButtonExit2.Location          = new Point(753, 6);
            this.simpleButtonExit2.LookAndFeel.Style = LookAndFeelStyle.Flat;
            this.simpleButtonExit2.LookAndFeel.UseDefaultLookAndFeel = false;
            this.simpleButtonExit2.Name               = "simpleButtonExit2";
            this.simpleButtonExit2.Size               = new Size(75, 23);
            this.simpleButtonExit2.TabIndex           = 3;
            this.simpleButtonExit2.Text               = "Отменить";
            this.simpleButtonExit2.Click             += new EventHandler(this.simpleButtonExit2_Click);
            this.simpleButtonSelect.Anchor            = AnchorStyles.Bottom | AnchorStyles.Right;
            this.simpleButtonSelect.ButtonStyle       = BorderStyles.Simple;
            this.simpleButtonSelect.DialogResult      = DialogResult.OK;
            this.simpleButtonSelect.Location          = new Point(672, 6);
            this.simpleButtonSelect.LookAndFeel.Style = LookAndFeelStyle.Flat;
            this.simpleButtonSelect.LookAndFeel.UseDefaultLookAndFeel = false;
            this.simpleButtonSelect.Name     = "simpleButtonSelect";
            this.simpleButtonSelect.Size     = new Size(75, 23);
            this.simpleButtonSelect.TabIndex = 1;
            this.simpleButtonSelect.Text     = "Выбрать";
            this.simpleButtonSelect.Click   += new EventHandler(this.simpleButtonSelect_Click);
            this.panelDictionary.Controls.Add((Control)this.simpleButtonExit);
            this.panelDictionary.Controls.Add((Control)this.simpleButtonApply);
            this.panelDictionary.Controls.Add((Control)this.simpleButtonCancel);
            this.panelDictionary.Dock               = DockStyle.Bottom;
            this.panelDictionary.Location           = new Point(0, 400);
            this.panelDictionary.Name               = "panelDictionary";
            this.panelDictionary.Size               = new Size(831, 33);
            this.panelDictionary.TabIndex           = 1;
            this.simpleButtonExit.Anchor            = AnchorStyles.Bottom | AnchorStyles.Right;
            this.simpleButtonExit.ButtonStyle       = BorderStyles.Simple;
            this.simpleButtonExit.Location          = new Point(753, 6);
            this.simpleButtonExit.LookAndFeel.Style = LookAndFeelStyle.Flat;
            this.simpleButtonExit.LookAndFeel.UseDefaultLookAndFeel = false;
            this.simpleButtonExit.Name               = "simpleButtonExit";
            this.simpleButtonExit.Size               = new Size(75, 23);
            this.simpleButtonExit.TabIndex           = 2;
            this.simpleButtonExit.Text               = "Закрыть";
            this.simpleButtonExit.Click             += new EventHandler(this.simpleButtonExit_Click);
            this.simpleButtonApply.Anchor            = AnchorStyles.Bottom | AnchorStyles.Right;
            this.simpleButtonApply.ButtonStyle       = BorderStyles.Simple;
            this.simpleButtonApply.Location          = new Point(591, 6);
            this.simpleButtonApply.LookAndFeel.Style = LookAndFeelStyle.Flat;
            this.simpleButtonApply.LookAndFeel.UseDefaultLookAndFeel = false;
            this.simpleButtonApply.Name               = "simpleButtonApply";
            this.simpleButtonApply.Size               = new Size(75, 23);
            this.simpleButtonApply.TabIndex           = 1;
            this.simpleButtonApply.Text               = "Применить";
            this.simpleButtonApply.Click             += new EventHandler(this.simpleButtonApply_Click);
            this.simpleButtonCancel.Anchor            = AnchorStyles.Bottom | AnchorStyles.Right;
            this.simpleButtonCancel.ButtonStyle       = BorderStyles.Simple;
            this.simpleButtonCancel.Location          = new Point(672, 6);
            this.simpleButtonCancel.LookAndFeel.Style = LookAndFeelStyle.Flat;
            this.simpleButtonCancel.LookAndFeel.UseDefaultLookAndFeel = false;
            this.simpleButtonCancel.Name     = "simpleButtonCancel";
            this.simpleButtonCancel.Size     = new Size(75, 23);
            this.simpleButtonCancel.TabIndex = 0;
            this.simpleButtonCancel.Text     = "Отменить";
            this.simpleButtonCancel.Click   += new EventHandler(this.simpleButtonCancel_Click);
            this.splitContainer1.Dock        = DockStyle.Fill;
            this.splitContainer1.Location    = new Point(0, 0);
            this.splitContainer1.Name        = "splitContainer1";
            this.splitContainer1.Panel1.Controls.Add((Control)this.treeListPollGroup);
            this.splitContainer1.Panel2.Controls.Add((Control)this.gridControlPoll);
            this.splitContainer1.Size             = new Size(831, 400);
            this.splitContainer1.SplitterDistance = 267;
            this.splitContainer1.TabIndex         = 2;
            this.treeListPollGroup.Appearance.FocusedCell.BackColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.treeListPollGroup.Appearance.FocusedCell.Options.UseBackColor      = true;
            this.treeListPollGroup.Appearance.FocusedRow.BackColor                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.treeListPollGroup.Appearance.FocusedRow.Options.UseBackColor       = true;
            this.treeListPollGroup.Appearance.HideSelectionRow.BackColor            = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.treeListPollGroup.Appearance.HideSelectionRow.BackColor2           = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.treeListPollGroup.Appearance.HideSelectionRow.Options.UseBackColor = true;
            this.treeListPollGroup.Appearance.SelectedRow.BackColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.treeListPollGroup.Appearance.SelectedRow.Options.UseBackColor      = true;
            this.treeListPollGroup.BorderStyle = BorderStyles.Simple;
            this.treeListPollGroup.Columns.AddRange(new TreeListColumn[3]
            {
                this.colname_collgroup,
                this.colisactive,
                this.treeListColumn1
            });
            this.treeListPollGroup.ContextMenuStrip    = this.contextMenuStripPollGroup;
            this.treeListPollGroup.Dock                = DockStyle.Fill;
            this.treeListPollGroup.ImageIndexFieldName = "imageindex";
            this.treeListPollGroup.KeyFieldName        = "idpollgroup";
            this.treeListPollGroup.Location            = new Point(0, 0);
            this.treeListPollGroup.LookAndFeel.Style   = LookAndFeelStyle.Flat;
            this.treeListPollGroup.LookAndFeel.UseDefaultLookAndFeel = false;
            this.treeListPollGroup.Name = "treeListPollGroup";
            this.treeListPollGroup.OptionsView.ShowHorzLines = false;
            this.treeListPollGroup.OptionsView.ShowIndicator = false;
            this.treeListPollGroup.OptionsView.ShowVertLines = false;
            this.treeListPollGroup.ParentFieldName           = "parentid";
            this.treeListPollGroup.SelectImageList           = (object)this.imageListPoll;
            this.treeListPollGroup.Size                    = new Size(267, 400);
            this.treeListPollGroup.TabIndex                = 0;
            this.treeListPollGroup.KeyDown                += new KeyEventHandler(this.treeListPollGroup_KeyDown);
            this.treeListPollGroup.FocusedNodeChanged     += new FocusedNodeChangedEventHandler(this.treeListPollGroup_FocusedNodeChanged);
            this.colname_collgroup.Caption                 = "Группа";
            this.colname_collgroup.FieldName               = "name";
            this.colname_collgroup.Name                    = "colname_collgroup";
            this.colname_collgroup.OptionsColumn.AllowEdit = false;
            this.colname_collgroup.Visible                 = true;
            this.colname_collgroup.VisibleIndex            = 0;
            this.colname_collgroup.Width                   = 188;
            this.colisactive.Caption       = "V";
            this.colisactive.FieldName     = "isactive";
            this.colisactive.Name          = "colisactive";
            this.colisactive.Visible       = true;
            this.colisactive.VisibleIndex  = 1;
            this.colisactive.Width         = 65;
            this.treeListColumn1.Caption   = "treeListColumn1";
            this.treeListColumn1.FieldName = "numpos";
            this.treeListColumn1.Name      = "treeListColumn1";
            this.treeListColumn1.SortOrder = SortOrder.Ascending;
            this.contextMenuStripPollGroup.Items.AddRange(new ToolStripItem[11]
            {
                (ToolStripItem)this.toolStripMenuItemPollGroupAddGroup,
                (ToolStripItem)this.toolStripMenuItemPollGroupAddChildGroup,
                (ToolStripItem)this.toolStripMenuItemPollGroupRename,
                (ToolStripItem)this.toolStripSeparator1,
                (ToolStripItem)this.toolStripMenuItemPollGroupDelete,
                (ToolStripItem)this.toolStripSeparator2,
                (ToolStripItem)this.toolStripMenuItemPoolGroupRemove,
                (ToolStripItem)this.toolStripMenuItemPollGroupMakeRoot,
                (ToolStripItem)this.toolStripSeparator3,
                (ToolStripItem)this.toolStripMenuItemPollGroupMoveUp,
                (ToolStripItem)this.toolStripMenuItemPollGroupMoveDown
            });
            this.contextMenuStripPollGroup.Name                       = "contextMenuStripPollGroup";
            this.contextMenuStripPollGroup.Size                       = new Size(298, 198);
            this.contextMenuStripPollGroup.Opening                   += new CancelEventHandler(this.contextMenuStripPollGroup_Opening);
            this.toolStripMenuItemPollGroupAddGroup.Name              = "toolStripMenuItemPollGroupAddGroup";
            this.toolStripMenuItemPollGroupAddGroup.ShortcutKeys      = Keys.Insert | Keys.Control;
            this.toolStripMenuItemPollGroupAddGroup.Size              = new Size(297, 22);
            this.toolStripMenuItemPollGroupAddGroup.Text              = "Добавить основную группу";
            this.toolStripMenuItemPollGroupAddGroup.Click            += new EventHandler(this.toolStripMenuItemPollGroupAddGroup_Click);
            this.toolStripMenuItemPollGroupAddChildGroup.Name         = "toolStripMenuItemPollGroupAddChildGroup";
            this.toolStripMenuItemPollGroupAddChildGroup.ShortcutKeys = Keys.Insert | Keys.Shift | Keys.Control;
            this.toolStripMenuItemPollGroupAddChildGroup.Size         = new Size(297, 22);
            this.toolStripMenuItemPollGroupAddChildGroup.Text         = "Добавить дочернюю группу";
            this.toolStripMenuItemPollGroupAddChildGroup.Click       += new EventHandler(this.toolStripMenuItemPollGroupAddChildGroup_Click);
            this.toolStripMenuItemPollGroupRename.Name                = "toolStripMenuItemPollGroupRename";
            this.toolStripMenuItemPollGroupRename.ShortcutKeys        = Keys.Return | Keys.Control;
            this.toolStripMenuItemPollGroupRename.Size                = new Size(297, 22);
            this.toolStripMenuItemPollGroupRename.Text                = "Переименовать";
            this.toolStripMenuItemPollGroupRename.Click              += new EventHandler(this.toolStripMenuItemPollGroupRename_Click);
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new Size(294, 6);
            this.toolStripMenuItemPollGroupDelete.Name         = "toolStripMenuItemPollGroupDelete";
            this.toolStripMenuItemPollGroupDelete.ShortcutKeys = Keys.Delete | Keys.Control;
            this.toolStripMenuItemPollGroupDelete.Size         = new Size(297, 22);
            this.toolStripMenuItemPollGroupDelete.Text         = "Удалить группу";
            this.toolStripMenuItemPollGroupDelete.Click       += new EventHandler(this.toolStripMenuItemPollGroupDelete_Click);
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new Size(294, 6);
            this.toolStripMenuItemPoolGroupRemove.Name           = "toolStripMenuItemPoolGroupRemove";
            this.toolStripMenuItemPoolGroupRemove.ShortcutKeys   = Keys.F6;
            this.toolStripMenuItemPoolGroupRemove.Size           = new Size(297, 22);
            this.toolStripMenuItemPoolGroupRemove.Text           = "Переместить в группу";
            this.toolStripMenuItemPoolGroupRemove.Click         += new EventHandler(this.toolStripMenuItemPoolGroupRemove_Click);
            this.toolStripMenuItemPollGroupMakeRoot.Name         = "toolStripMenuItemPollGroupMakeRoot";
            this.toolStripMenuItemPollGroupMakeRoot.ShortcutKeys = Keys.M | Keys.Shift | Keys.Control;
            this.toolStripMenuItemPollGroupMakeRoot.Size         = new Size(297, 22);
            this.toolStripMenuItemPollGroupMakeRoot.Text         = "Сделать группу основной";
            this.toolStripMenuItemPollGroupMakeRoot.Click       += new EventHandler(this.toolStripMenuItemPollGroupMakeRoot_Click);
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new Size(294, 6);
            this.toolStripMenuItemPollGroupMoveUp.Name           = "toolStripMenuItemPollGroupMoveUp";
            this.toolStripMenuItemPollGroupMoveUp.ShortcutKeys   = Keys.Up | Keys.Control;
            this.toolStripMenuItemPollGroupMoveUp.Size           = new Size(297, 22);
            this.toolStripMenuItemPollGroupMoveUp.Text           = "Переместить вверх";
            this.toolStripMenuItemPollGroupMoveUp.Click         += new EventHandler(this.toolStripMenuItemPollGroupMoveUp_Click);
            this.toolStripMenuItemPollGroupMoveDown.Name         = "toolStripMenuItemPollGroupMoveDown";
            this.toolStripMenuItemPollGroupMoveDown.ShortcutKeys = Keys.Down | Keys.Control;
            this.toolStripMenuItemPollGroupMoveDown.Size         = new Size(297, 22);
            this.toolStripMenuItemPollGroupMoveDown.Text         = "Переметить вниз";
            this.toolStripMenuItemPollGroupMoveDown.Click       += new EventHandler(this.toolStripMenuItemPollGroupMoveDown_Click);
            this.imageListPoll.ImageStream      = (ImageListStreamer)componentResourceManager.GetObject("imageListPoll.ImageStream");
            this.imageListPoll.TransparentColor = Color.Transparent;
            this.imageListPoll.Images.SetKeyName(0, "Folder_wd.ico");
            this.imageListPoll.Images.SetKeyName(1, "Folder_wd.ico");
            this.gridControlPoll.ContextMenuStrip                  = this.contextMenuStripPoll;
            this.gridControlPoll.Dock                              = DockStyle.Fill;
            this.gridControlPoll.EmbeddedNavigator.Name            = "";
            this.gridControlPoll.Location                          = new Point(0, 0);
            this.gridControlPoll.LookAndFeel.Style                 = LookAndFeelStyle.Flat;
            this.gridControlPoll.LookAndFeel.UseDefaultLookAndFeel = false;
            this.gridControlPoll.MainView                          = (BaseView)this.gridViewPoll;
            this.gridControlPoll.Name                              = "gridControlPoll";
            this.gridControlPoll.RepositoryItems.AddRange(new RepositoryItem[2]
            {
                (RepositoryItem)this.repositoryItemTimeEdit1,
                (RepositoryItem)this.repositoryItemButtonEdit1
            });
            this.gridControlPoll.Size     = new Size(560, 400);
            this.gridControlPoll.TabIndex = 0;
            this.gridControlPoll.ViewCollection.AddRange(new BaseView[1]
            {
                (BaseView)this.gridViewPoll
            });
            this.contextMenuStripPoll.Items.AddRange(new ToolStripItem[7]
            {
                (ToolStripItem)this.toolStripMenuItemPollAdd,
                (ToolStripItem)this.toolStripMenuItemPollDouble,
                (ToolStripItem)this.toolStripMenuItemPollEdit,
                (ToolStripItem)this.toolStripSeparator5,
                (ToolStripItem)this.toolStripMenuItemPollDelete,
                (ToolStripItem)this.toolStripSeparator4,
                (ToolStripItem)this.toolStripMenuItemPollMove
            });
            this.contextMenuStripPoll.Name                = "contextMenuStripPoll";
            this.contextMenuStripPoll.Size                = new Size(234, 126);
            this.toolStripMenuItemPollAdd.Name            = "toolStripMenuItemPollAdd";
            this.toolStripMenuItemPollAdd.ShortcutKeys    = Keys.Insert | Keys.Shift | Keys.Control;
            this.toolStripMenuItemPollAdd.Size            = new Size(233, 22);
            this.toolStripMenuItemPollAdd.Text            = "Добавить опрос";
            this.toolStripMenuItemPollAdd.Click          += new EventHandler(this.toolStripMenuItemPollAdd_Click);
            this.toolStripMenuItemPollDouble.Name         = "toolStripMenuItemPollDouble";
            this.toolStripMenuItemPollDouble.ShortcutKeys = Keys.Insert | Keys.Control | Keys.Alt;
            this.toolStripMenuItemPollDouble.Size         = new Size(233, 22);
            this.toolStripMenuItemPollDouble.Text         = "Дублировать";
            this.toolStripMenuItemPollDouble.Visible      = false;
            this.toolStripMenuItemPollDouble.Click       += new EventHandler(this.toolStripMenuItemPollDouble_Click);
            this.toolStripMenuItemPollEdit.Name           = "toolStripMenuItemPollEdit";
            this.toolStripMenuItemPollEdit.ShortcutKeys   = Keys.Return | Keys.Control;
            this.toolStripMenuItemPollEdit.Size           = new Size(233, 22);
            this.toolStripMenuItemPollEdit.Text           = "Редактировать";
            this.toolStripMenuItemPollEdit.Click         += new EventHandler(this.toolStripMenuItemPollEdit_Click);
            this.toolStripSeparator5.Name                                      = "toolStripSeparator5";
            this.toolStripSeparator5.Size                                      = new Size(230, 6);
            this.toolStripMenuItemPollDelete.Name                              = "toolStripMenuItemPollDelete";
            this.toolStripMenuItemPollDelete.ShortcutKeys                      = Keys.Delete | Keys.Control;
            this.toolStripMenuItemPollDelete.Size                              = new Size(233, 22);
            this.toolStripMenuItemPollDelete.Text                              = "Удалить";
            this.toolStripMenuItemPollDelete.Click                            += new EventHandler(this.toolStripMenuItemPollDelete_Click);
            this.toolStripSeparator4.Name                                      = "toolStripSeparator4";
            this.toolStripSeparator4.Size                                      = new Size(230, 6);
            this.toolStripMenuItemPollMove.Name                                = "toolStripMenuItemPollMove";
            this.toolStripMenuItemPollMove.ShortcutKeys                        = Keys.F6;
            this.toolStripMenuItemPollMove.Size                                = new Size(233, 22);
            this.toolStripMenuItemPollMove.Text                                = "Переместить в группу";
            this.toolStripMenuItemPollMove.Click                              += new EventHandler(this.toolStripMenuItemPollMove_Click);
            this.gridViewPoll.Appearance.FocusedRow.BackColor                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewPoll.Appearance.FocusedRow.BackColor2                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewPoll.Appearance.FocusedRow.ForeColor                  = Color.Black;
            this.gridViewPoll.Appearance.FocusedRow.Options.UseBackColor       = true;
            this.gridViewPoll.Appearance.FocusedRow.Options.UseForeColor       = true;
            this.gridViewPoll.Appearance.GroupPanel.BackColor                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewPoll.Appearance.GroupPanel.BackColor2                 = Color.FromArgb(192, 192, (int)byte.MaxValue);
            this.gridViewPoll.Appearance.GroupPanel.Options.UseBackColor       = true;
            this.gridViewPoll.Appearance.HideSelectionRow.BackColor            = Color.FromArgb(192, 192, (int)byte.MaxValue);
            this.gridViewPoll.Appearance.HideSelectionRow.BackColor2           = Color.FromArgb(192, 192, (int)byte.MaxValue);
            this.gridViewPoll.Appearance.HideSelectionRow.ForeColor            = Color.Black;
            this.gridViewPoll.Appearance.HideSelectionRow.Options.UseBackColor = true;
            this.gridViewPoll.Appearance.HideSelectionRow.Options.UseForeColor = true;
            this.gridViewPoll.Appearance.SelectedRow.BackColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewPoll.Appearance.SelectedRow.BackColor2                = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewPoll.Appearance.SelectedRow.ForeColor                 = Color.Black;
            this.gridViewPoll.Appearance.SelectedRow.Options.UseBackColor      = true;
            this.gridViewPoll.Appearance.SelectedRow.Options.UseForeColor      = true;
            this.gridViewPoll.BorderStyle                                      = BorderStyles.Simple;
            this.gridViewPoll.Columns.AddRange(new GridColumn[3]
            {
                this.gridColumn5,
                this.gridColumn1,
                this.gridColumn4
            });
            this.gridViewPoll.GridControl    = this.gridControlPoll;
            this.gridViewPoll.GroupPanelText = "Панель группировки";
            this.gridViewPoll.Name           = "gridViewPoll";
            this.gridViewPoll.OptionsSelection.MultiSelect = true;
            this.gridViewPoll.OptionsView.ShowIndicator    = false;
            this.gridViewPoll.DoubleClick           += new EventHandler(this.gridViewPoll_DoubleClick);
            this.gridColumn5.Caption                 = "#";
            this.gridColumn5.FieldName               = "idpoll";
            this.gridColumn5.Name                    = "gridColumn5";
            this.gridColumn5.OptionsColumn.AllowEdit = false;
            this.gridColumn5.Visible                 = true;
            this.gridColumn5.VisibleIndex            = 0;
            this.gridColumn1.Caption                 = "Наименование";
            this.gridColumn1.FieldName               = "name";
            this.gridColumn1.Name                    = "gridColumn1";
            this.gridColumn1.Visible                 = true;
            this.gridColumn1.VisibleIndex            = 1;
            this.gridColumn4.Caption                 = "Дата";
            this.gridColumn4.FieldName               = "dtedit";
            this.gridColumn4.Name                    = "gridColumn4";
            this.gridColumn4.Visible                 = true;
            this.gridColumn4.VisibleIndex            = 2;
            this.repositoryItemTimeEdit1.AutoHeight  = false;
            this.repositoryItemTimeEdit1.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            this.repositoryItemTimeEdit1.Name         = "repositoryItemTimeEdit1";
            this.repositoryItemButtonEdit1.AutoHeight = false;
            this.repositoryItemButtonEdit1.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            this.repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1";
            this.ds_poll.DataSetName            = "NewDataSet";
            this.AutoScaleDimensions            = new SizeF(6f, 13f);
            this.AutoScaleMode = AutoScaleMode.Font;
            this.Controls.Add((Control)this.splitContainer1);
            this.Controls.Add((Control)this.panelDictionary);
            this.Controls.Add((Control)this.panelDialog);
            this.Name         = "PollForm";
            this.Size         = new Size(831, 466);
            this.Text         = "Опросы";
            this.FormClosing += new FormClosing(this.PollForm_FormClosing);
            this.panelDialog.ResumeLayout(false);
            this.panelDictionary.ResumeLayout(false);
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            this.splitContainer1.ResumeLayout(false);
            this.treeListPollGroup.EndInit();
            this.contextMenuStripPollGroup.ResumeLayout(false);
            this.gridControlPoll.EndInit();
            this.contextMenuStripPoll.ResumeLayout(false);
            this.gridViewPoll.EndInit();
            this.repositoryItemTimeEdit1.EndInit();
            this.repositoryItemButtonEdit1.EndInit();
            this.ds_poll.EndInit();
            this.ResumeLayout(false);
        }
Exemple #14
0
        protected override void List_Init(AdvBandedGridView dt)
        {
            int i;
            RepositoryItemTimeEdit repositoryItemTimeEdit = new RepositoryItemTimeEdit()
            {
                EditMask = "HH:mm tt"
            };
            StyleFormatCondition styleFormatCondition = new StyleFormatCondition();

            styleFormatCondition.Appearance.BackColor            = Color.Ivory;
            styleFormatCondition.Appearance.Options.UseBackColor = true;
            styleFormatCondition.ApplyToRow = true;
            styleFormatCondition.Condition  = FormatConditionEnum.Expression;
            styleFormatCondition.Expression = "[IsNightDay] == 1";
            this.gbList.FormatConditions.AddRange(new StyleFormatCondition[] { styleFormatCondition });
            for (i = 0; i < dt.Columns.Count; i++)
            {
                string fieldName = dt.Columns[i].FieldName;
                if (fieldName != null)
                {
                    switch (fieldName)
                    {
                    case "ShiftCode":
                    {
                        dt.Columns[i].OptionsColumn.ReadOnly   = true;
                        dt.Columns[i].OptionsColumn.AllowEdit  = false;
                        dt.Columns[i].OptionsColumn.AllowGroup = DefaultBoolean.False;
                        dt.Columns[i].OptionsColumn.FixedWidth = true;

                        dt.Columns[i].Caption = "Mã";

                        dt.Columns[i].Width = 80;
                        break;
                    }

                    case "ShiftName":
                    {
                        dt.Columns[i].OptionsColumn.ReadOnly   = true;
                        dt.Columns[i].OptionsColumn.AllowEdit  = false;
                        dt.Columns[i].OptionsColumn.AllowGroup = DefaultBoolean.False;
                        dt.Columns[i].OptionsColumn.FixedWidth = true;

                        dt.Columns[i].Caption = "Tên";

                        dt.Columns[i].Width = 180;
                        break;
                    }

                    case "BeginTime":
                    {
                        dt.Columns[i].OptionsColumn.ReadOnly   = true;
                        dt.Columns[i].OptionsColumn.AllowEdit  = false;
                        dt.Columns[i].OptionsColumn.AllowGroup = DefaultBoolean.False;
                        dt.Columns[i].ColumnEdit = repositoryItemTimeEdit;
                        dt.Columns[i].OptionsColumn.FixedWidth = true;

                        dt.Columns[i].Caption = "Giờ Vào";

                        dt.Columns[i].Width = 180;
                        break;
                    }

                    case "EndTime":
                    {
                        dt.Columns[i].OptionsColumn.ReadOnly   = true;
                        dt.Columns[i].OptionsColumn.AllowEdit  = false;
                        dt.Columns[i].OptionsColumn.AllowGroup = DefaultBoolean.False;
                        dt.Columns[i].ColumnEdit = repositoryItemTimeEdit;
                        dt.Columns[i].OptionsColumn.FixedWidth = true;

                        dt.Columns[i].Caption = "Giờ Ra";

                        dt.Columns[i].Width = 180;
                        break;
                    }

                    case "IsNightDay":
                    {
                        dt.Columns[i].OptionsColumn.ReadOnly   = true;
                        dt.Columns[i].OptionsColumn.AllowEdit  = false;
                        dt.Columns[i].OptionsColumn.AllowGroup = DefaultBoolean.False;
                        dt.Columns[i].OptionsColumn.FixedWidth = true;
                        dt.Columns[i].Visible = false;

                        dt.Columns[i].Caption = "Được Phép Chỉnh Sửa";

                        dt.Columns[i].Width = 150;
                        break;
                    }

                    case "Description":
                    {
                        dt.Columns[i].OptionsColumn.ReadOnly   = true;
                        dt.Columns[i].OptionsColumn.AllowEdit  = false;
                        dt.Columns[i].OptionsColumn.AllowGroup = DefaultBoolean.False;
                        dt.Columns[i].OptionsColumn.FixedWidth = true;

                        dt.Columns[i].Caption = "Ghi chú";

                        dt.Columns[i].Width = 150;
                        break;
                    }

                    default:
                    {
                        goto Label0;
                    }
                    }
                }
                else
                {
                    goto Label0;
                }
                //    Label1:
            }
            return;

Label0:
            dt.Columns[i].Visible = false;
            //  goto Label1;
        }
Exemple #15
0
        /// <summary>
        /// 时间型
        /// </summary>
        /// <param name="dateElement"></param>
        /// <returns></returns>
        private RepositoryItemTimeEdit SetRepositoryItemTimeEdit(DataElementEntity dateElement)
        {
            RepositoryItemTimeEdit repositoryItemTimeEdit = new RepositoryItemTimeEdit();

            return(repositoryItemTimeEdit);
        }
Exemple #16
0
 public static RepositoryItemTimeEdit GetCotPLTimeEdit(String Format, HourFormat HFormat)
 {
     RepositoryItemTimeEdit timeEdit = new RepositoryItemTimeEdit();
     timeEdit.Mask.EditMask = Format;
     timeEdit.HourFormat = HFormat;
     timeEdit.Mask.UseMaskAsDisplayFormat = true;
     return timeEdit;
 }
Exemple #17
0
        /// <summary>
        /// Column의 DataType을 정의합니다.
        /// </summary>
        /// <param name="treeColumn">TreeList Column</param>
        /// <param name="dataType">Column Data Type</param>
        /// <param name="maxLength">Data의 최대 길이, 0이면 설정 안 함</param>
        /// <param name="decimalPlace">소숫점 길이 수, 기본값 0</param>
        /// <remarks>
        /// 2008-12-17 최초생성 : 황준혁
        /// 변경내역
        ///
        /// </remarks>
        private void SetColumnDataType(TreeListColumn treeColumn, ColumnDataType dataType, int maxLength, int decimalPlace)
        {
            if (dataType == ColumnDataType.Default)
            {
                RepositoryItemTextEdit edit = new RepositoryItemTextEdit();
                edit.Appearance.Font  = ControlConfig.DEFAULTFONT;
                edit.MaxLength        = maxLength;
                treeColumn.ColumnEdit = edit;
            }
            else if (dataType == ColumnDataType.Text)
            {
                RepositoryItemMemoEdit edit = new RepositoryItemMemoEdit();

                edit.Appearance.Font  = ControlConfig.DEFAULTFONT;
                edit.MaxLength        = maxLength;
                treeColumn.ColumnEdit = edit;
            }
            else if (dataType == ColumnDataType.CheckEdit)
            {
                RepositoryItemCheckEdit edit = new RepositoryItemCheckEdit();

                edit.Appearance.Font  = ControlConfig.DEFAULTFONT;
                edit.NullStyle        = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked;
                edit.ValueChecked     = true;
                edit.ValueUnchecked   = false;
                treeColumn.ColumnEdit = edit;
            }
            else if (dataType == ColumnDataType.Date)
            {
                RepositoryItemDateEdit edit = new RepositoryItemDateEdit {
                    HighlightHolidays = true
                };

                edit.Appearance.Font             = ControlConfig.DEFAULTFONT;
                edit.NullDate                    = "";
                edit.Mask.EditMask               = "d";
                edit.Mask.MaskType               = DevExpress.XtraEditors.Mask.MaskType.DateTime;
                edit.Mask.UseMaskAsDisplayFormat = true;
                treeColumn.ColumnEdit            = edit;
            }
            else if (dataType == ColumnDataType.DateTime)
            {
                RepositoryItemDateEdit edit = new RepositoryItemDateEdit {
                    HighlightHolidays = true
                };

                edit.Appearance.Font             = ControlConfig.DEFAULTFONT;
                edit.NullDate                    = "";
                edit.NullText                    = "";
                edit.Mask.MaskType               = DevExpress.XtraEditors.Mask.MaskType.DateTime;
                edit.Mask.EditMask               = AppConfig.DEFAULTDATEFORMAT;
                edit.Mask.AutoComplete           = DevExpress.XtraEditors.Mask.AutoCompleteType.Optimistic;
                edit.Mask.UseMaskAsDisplayFormat = true;
                treeColumn.ColumnEdit            = edit;
            }
            else if (dataType == ColumnDataType.Time)
            {
                RepositoryItemTimeEdit edit = new RepositoryItemTimeEdit();

                edit.Appearance.Font             = ControlConfig.DEFAULTFONT;
                edit.Mask.MaskType               = DevExpress.XtraEditors.Mask.MaskType.DateTime;
                edit.Mask.EditMask               = "t";
                edit.Mask.UseMaskAsDisplayFormat = true;
                edit.Mask.AutoComplete           = DevExpress.XtraEditors.Mask.AutoCompleteType.Optimistic;
                treeColumn.ColumnEdit            = edit;
            }
            else if (dataType == ColumnDataType.Numeric)
            {
                RepositoryItemSpinEdit edit = new RepositoryItemSpinEdit();

                edit.Appearance.Font             = ControlConfig.DEFAULTFONT;
                edit.Mask.MaskType               = DevExpress.XtraEditors.Mask.MaskType.Numeric;
                edit.Mask.EditMask               = "n" + decimalPlace;
                edit.MaxLength                   = maxLength;
                edit.Mask.UseMaskAsDisplayFormat = !treeColumn.OptionsColumn.AllowEdit;
                treeColumn.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Far;
                treeColumn.ColumnEdit = edit;
            }
            else if (dataType == ColumnDataType.Decimal)
            {
                RepositoryItemSpinEdit edit = new RepositoryItemSpinEdit();

                edit.Appearance.Font             = ControlConfig.DEFAULTFONT;
                edit.Mask.EditMask               = "n" + decimalPlace;
                edit.Mask.MaskType               = DevExpress.XtraEditors.Mask.MaskType.Numeric;
                edit.MaxLength                   = maxLength;
                edit.Mask.UseMaskAsDisplayFormat = !treeColumn.OptionsColumn.AllowEdit;
                treeColumn.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Far;
                treeColumn.ColumnEdit = edit;
            }
            else if (dataType == ColumnDataType.Currency)
            {
                RepositoryItemTextEdit edit = new RepositoryItemTextEdit();

                edit.Appearance.Font             = ControlConfig.DEFAULTFONT;
                edit.Mask.EditMask               = "c" + decimalPlace;
                edit.Mask.MaskType               = DevExpress.XtraEditors.Mask.MaskType.Numeric;
                edit.MaxLength                   = maxLength;
                edit.Mask.UseMaskAsDisplayFormat = !treeColumn.OptionsColumn.AllowEdit;
                treeColumn.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Far;
                treeColumn.ColumnEdit = edit;
            }
            else if (dataType == ColumnDataType.Percentage)
            {
            }
            else if (dataType == ColumnDataType.Popup)
            {
            }
            else if (dataType == ColumnDataType.Button)
            {
            }
            else if (dataType == ColumnDataType.LinkButton)
            {
                RepositoryItemHyperLinkEdit edit = new RepositoryItemHyperLinkEdit();

                edit.Appearance.Font = ControlConfig.DEFAULTFONT;
                treeColumn.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Near;
                treeColumn.ColumnEdit = edit;
            }
            else if (dataType == ColumnDataType.ColorSelect)
            {
                RepositoryItemColorEdit edit = new RepositoryItemColorEdit();

                edit.Appearance.Font = ControlConfig.DEFAULTFONT;
                treeColumn.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
                treeColumn.ColumnEdit = edit;
            }
            else if (dataType == ColumnDataType.Image)
            {
                RepositoryItemImageEdit edit = new RepositoryItemImageEdit();

                edit.Appearance.Font  = ControlConfig.DEFAULTFONT;
                treeColumn.ColumnEdit = edit;
            }
            else if (dataType == ColumnDataType.Picture)
            {
                RepositoryItemPictureEdit edit = new RepositoryItemPictureEdit();

                edit.SizeMode         = PictureSizeMode.Stretch;
                edit.Appearance.Font  = ControlConfig.DEFAULTFONT;
                treeColumn.ColumnEdit = edit;
            }
            else if (dataType == ColumnDataType.Password)
            {
                RepositoryItemTextEdit edit = new RepositoryItemTextEdit();

                edit.Appearance.Font  = ControlConfig.DEFAULTFONT;
                edit.PasswordChar     = '*';
                edit.MaxLength        = maxLength;
                treeColumn.ColumnEdit = edit;
            }
            else if (dataType == ColumnDataType.ImageCombo)
            {
            }
            else if (dataType == ColumnDataType.File)
            {
            }
        }
Exemple #18
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(XucBaseBasicF));
            SuperToolTip             tip     = new SuperToolTip();
            ToolTipItem  item  = new ToolTipItem();
            SuperToolTip tip2  = new SuperToolTip();
            ToolTipItem  item2 = new ToolTipItem();
            SuperToolTip tip3  = new SuperToolTip();
            ToolTipItem  item3 = new ToolTipItem();
            SuperToolTip tip4  = new SuperToolTip();
            ToolTipItem  item4 = new ToolTipItem();
            SuperToolTip tip5  = new SuperToolTip();
            ToolTipItem  item5 = new ToolTipItem();
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();

            this.bm = new BarManager(this.components);
            this.barDockControlTop    = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft   = new BarDockControl();
            this.barDockControlRight  = new BarDockControl();
            this.imgToolBar           = new DevExpress.Utils.ImageCollection(this.components);
            this.bbiDelete            = new BarButtonItem();
            this.bbiRefresh           = new BarButtonItem();
            this.bbiExport            = new BarButtonItem();
            this.bbiCopy                      = new BarButtonItem();
            this.bbiPrint                     = new BarButtonItem();
            this.bbiImport                    = new BarButtonItem();
            this.bbiView                      = new BarButtonItem();
            this.repYear                      = new RepositoryItemTimeEdit();
            this.repName                      = new RepositoryItemTextEdit();
            this.repDateTimeSelect            = new RepositoryItemComboBox();
            this.repFromDate                  = new RepositoryItemDateEdit();
            this.repToDate                    = new RepositoryItemDateEdit();
            this.repMonth                     = new RepositoryItemTimeEdit();
            this.repTableListSelect           = new RepositoryItemGridLookUpEdit();
            this.repTableListGridLookupSelect = new GridView();
            this.gridLookupID                 = new GridColumn();
            this.gridLookupName               = new GridColumn();
            this.pm = new PopupMenu(this.components);
            this.bm.BeginInit();
            this.imgToolBar.BeginInit();
            this.repYear.BeginInit();
            this.repName.BeginInit();
            this.repDateTimeSelect.BeginInit();
            this.repFromDate.BeginInit();
            this.repFromDate.VistaTimeProperties.BeginInit();
            this.repToDate.BeginInit();
            this.repToDate.VistaTimeProperties.BeginInit();
            this.repMonth.BeginInit();
            this.repTableListSelect.BeginInit();
            this.repTableListGridLookupSelect.BeginInit();
            this.pm.BeginInit();
            base.SuspendLayout();
            this.bm.AllowCustomization      = false;
            this.bm.AllowMoveBarOnToolbar   = false;
            this.bm.AllowQuickCustomization = false;
            this.bm.AllowShowToolbarsPopup  = false;
            this.bm.AutoSaveInRegistry      = true;
            this.bm.DockControls.Add(this.barDockControlTop);
            this.bm.DockControls.Add(this.barDockControlBottom);
            this.bm.DockControls.Add(this.barDockControlLeft);
            this.bm.DockControls.Add(this.barDockControlRight);
            this.bm.DockWindowTabFont = new Font("Tahoma", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.bm.Form   = this;
            this.bm.Images = this.imgToolBar;
            this.bm.Items.AddRange(new BarItem[] { this.bbiDelete, this.bbiRefresh, this.bbiExport, this.bbiCopy, this.bbiPrint, this.bbiImport, this.bbiView });
            this.bm.LargeImages = this.imgToolBar;
            this.bm.MaxItemId   = 0x4b;
            this.bm.RepositoryItems.AddRange(new RepositoryItem[] { this.repYear, this.repName, this.repDateTimeSelect, this.repFromDate, this.repToDate, this.repMonth, this.repTableListSelect });
            this.bm.ShowFullMenusAfterDelay = false;
            this.imgToolBar.ImageStream     = (ImageCollectionStreamer)manager.GetObject("imgToolBar.ImageStream");
            this.bbiDelete.Caption          = "&Xo\x00e1";
            this.bbiDelete.Id           = 3;
            this.bbiDelete.ImageIndex   = 13;
            this.bbiDelete.ItemShortcut = new BarShortcut(Keys.Delete);
            this.bbiDelete.Name         = "bbiDelete";
            item.Text = "Alt-X\r\nDelete\r\nX\x00f3a";
            tip.Items.Add(item);
            this.bbiDelete.SuperTip      = tip;
            this.bbiDelete.ItemClick    += new ItemClickEventHandler(this.bbiDelete_ItemClick);
            this.bbiRefresh.Caption      = "&Nạp Lại";
            this.bbiRefresh.Id           = 4;
            this.bbiRefresh.ImageIndex   = 0x2a;
            this.bbiRefresh.ItemShortcut = new BarShortcut(Keys.F5);
            this.bbiRefresh.Name         = "bbiRefresh";
            item2.Text = "F5\r\nNạp Lại";
            tip2.Items.Add(item2);
            this.bbiRefresh.SuperTip       = tip2;
            this.bbiRefresh.ItemClick     += new ItemClickEventHandler(this.bbiRefresh_ItemClick);
            this.bbiExport.Caption         = "Xuất ";
            this.bbiExport.Id              = 0x13;
            this.bbiExport.ImageIndex      = 0x37;
            this.bbiExport.ItemShortcut    = new BarShortcut(Keys.Control | Keys.E);
            this.bbiExport.LargeImageIndex = 0x37;
            this.bbiExport.Name            = "bbiExport";
            item3.Text = "Ctrl+E";
            tip3.Items.Add(item3);
            this.bbiExport.SuperTip    = tip3;
            this.bbiExport.ItemClick  += new ItemClickEventHandler(this.bbiExport_ItemClick);
            this.bbiCopy.Caption       = "Sao Ch\x00e9p";
            this.bbiCopy.Id            = 0x2b;
            this.bbiCopy.ImageIndex    = 8;
            this.bbiCopy.ItemShortcut  = new BarShortcut(Keys.Control | Keys.Shift | Keys.C);
            this.bbiCopy.Name          = "bbiCopy";
            this.bbiCopy.ItemClick    += new ItemClickEventHandler(this.bbiCopy_ItemClick);
            this.bbiPrint.Caption      = "In";
            this.bbiPrint.Id           = 0x2c;
            this.bbiPrint.ImageIndex   = 9;
            this.bbiPrint.ItemShortcut = new BarShortcut(Keys.Control | Keys.P);
            this.bbiPrint.Name         = "bbiPrint";
            item4.Text = "Ctrl+P\r\nIn";
            tip4.Items.Add(item4);
            this.bbiPrint.SuperTip      = tip4;
            this.bbiPrint.ItemClick    += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiImport.Caption      = "Nạp >";
            this.bbiImport.Id           = 0x39;
            this.bbiImport.ImageIndex   = 0x39;
            this.bbiImport.ItemShortcut = new BarShortcut(Keys.Control | Keys.I);
            this.bbiImport.Name         = "bbiImport";
            item5.Text = "Ctrl+I\r\nNạp";
            tip5.Items.Add(item5);
            this.bbiImport.SuperTip                 = tip5;
            this.bbiImport.ItemClick               += new ItemClickEventHandler(this.bbiImport_ItemClick);
            this.bbiView.Caption                    = "Xem";
            this.bbiView.Id                         = 0x3e;
            this.bbiView.ImageIndex                 = 3;
            this.bbiView.LargeImageIndex            = 3;
            this.bbiView.Name                       = "bbiView";
            this.bbiView.ItemClick                 += new ItemClickEventHandler(this.bbiView_ItemClick);
            this.repYear.Appearance.Font            = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repYear.Appearance.Options.UseFont = true;
            this.repYear.AutoHeight                 = false;
            this.repYear.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repYear.Mask.EditMask = "yyyy";
            this.repYear.Mask.UseMaskAsDisplayFormat = true;
            this.repYear.Name                                         = "repYear";
            this.repName.Appearance.Font                              = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repName.Appearance.Options.UseFont                   = true;
            this.repName.AutoHeight                                   = false;
            this.repName.Name                                         = "repName";
            this.repName.ReadOnly                                     = true;
            this.repDateTimeSelect.Appearance.Font                    = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repDateTimeSelect.Appearance.Options.UseFont         = true;
            this.repDateTimeSelect.AppearanceDropDown.Font            = new Font("Tahoma", 9.25f, FontStyle.Bold);
            this.repDateTimeSelect.AppearanceDropDown.Options.UseFont = true;
            this.repDateTimeSelect.AutoHeight                         = false;
            this.repDateTimeSelect.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repDateTimeSelect.Items.AddRange(new object[] {
                "H\x00f4m nay", "Tuần n\x00e0y", "Th\x00e1ng n\x00e0y", "Qu\x00fd n\x00e0y", "Năm nay", "Th\x00e1ng 1", "Th\x00e1ng 2", "Th\x00e1ng 3", "Th\x00e1ng 4", "Th\x00e1ng 5", "Th\x00e1ng 6", "Th\x00e1ng 7", "Th\x00e1ng 8", "Th\x00e1ng 9", "Th\x00e1ng 10", "Th\x00e1ng 11",
                "Th\x00e1ng 12", "Qu\x00fd 1", "Qu\x00fd 2", "Qu\x00fd 3", "Qu\x00fd 4"
            });
            this.repDateTimeSelect.Name = "repDateTimeSelect";
            this.repFromDate.AutoHeight = false;
            this.repFromDate.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repFromDate.Name = "repFromDate";
            this.repFromDate.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repToDate.AutoHeight = false;
            this.repToDate.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repToDate.Name = "repToDate";
            this.repToDate.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repMonth.Appearance.Font            = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repMonth.Appearance.Options.UseFont = true;
            this.repMonth.AutoHeight = false;
            this.repMonth.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repMonth.Mask.EditMask = "MM";
            this.repMonth.Mask.UseMaskAsDisplayFormat = true;
            this.repMonth.Name = "repMonth";
            this.repTableListSelect.Appearance.Font            = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repTableListSelect.Appearance.Options.UseFont = true;
            this.repTableListSelect.AutoHeight = false;
            this.repTableListSelect.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, ImageLocation.MiddleCenter, (Image)manager.GetObject("repTableListSelect.Buttons"), new KeyShortcut(Keys.None), appearance, "", null, null, true) });
            this.repTableListSelect.Name     = "repTableListSelect";
            this.repTableListSelect.NullText = "[Chưa chọn dữ liệu]";
            this.repTableListSelect.View     = this.repTableListGridLookupSelect;
            this.repTableListGridLookupSelect.Columns.AddRange(new GridColumn[] { this.gridLookupID, this.gridLookupName });
            this.repTableListGridLookupSelect.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.repTableListGridLookupSelect.Name           = "repTableListGridLookupSelect";
            this.repTableListGridLookupSelect.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.repTableListGridLookupSelect.OptionsView.ShowGroupPanel = false;
            this.gridLookupID.Caption        = "M\x00e3";
            this.gridLookupID.FieldName      = "ID";
            this.gridLookupID.Name           = "gridLookupID";
            this.gridLookupName.Caption      = "T\x00ean";
            this.gridLookupName.Name         = "gridLookupName";
            this.gridLookupName.Visible      = true;
            this.gridLookupName.VisibleIndex = 0;
            this.pm.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.bbiDelete), new LinkPersistInfo(this.bbiCopy), new LinkPersistInfo(this.bbiExport, true), new LinkPersistInfo(this.bbiPrint), new LinkPersistInfo(this.bbiRefresh, true) });
            this.pm.Manager          = this.bm;
            this.pm.Name             = "pm";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            this.DoubleBuffered = true;
            base.Name           = "XucBaseBasicF";
            base.Size           = new Size(0x2d4, 0x1dd);
            this.bm.EndInit();
            this.imgToolBar.EndInit();
            this.repYear.EndInit();
            this.repName.EndInit();
            this.repDateTimeSelect.EndInit();
            this.repFromDate.VistaTimeProperties.EndInit();
            this.repFromDate.EndInit();
            this.repToDate.VistaTimeProperties.EndInit();
            this.repToDate.EndInit();
            this.repMonth.EndInit();
            this.repTableListSelect.EndInit();
            this.repTableListGridLookupSelect.EndInit();
            this.pm.EndInit();
            base.ResumeLayout(false);
        }
Exemple #19
0
        private void gridLoad()
        {
            string code = string.Empty;

            if (!string.IsNullOrWhiteSpace(ImageComboBoxEditCode.Text))
            {
                code = ImageComboBoxEditCode.EditValue.ToString();
            }
            string cat = string.Empty;

            if (!string.IsNullOrWhiteSpace(ImageComboBoxEditCategory.Text))
            {
                cat = ImageComboBoxEditCategory.EditValue.ToString();
            }
            string value = (treeList2.FocusedNode.GetValue(colAmenityCode)).ToString();

            AmenAssgnBindingSource.DataSource = from oa in context.AMENASSGN
                                                where oa.SVC_CODE == code && oa.SVC_CAT == cat && oa.CODE == value
                                                select oa;

            //gridControl1.DataSource = from c in context.AMENITY
            //                          join oa in context.AMENASSGN on c.CODE equals oa.CODE
            //                          where oa.SVC_CODE == code && oa.SVC_CAT == cat && oa.CODE == value
            //                          select oa;

            string val   = (treeList2.FocusedNode.GetValue(colItemDesc1d)).ToString();
            var    case1 = (from c in context.AMENITY where c.ITEM_DESC1 == val select new { c.ITEM_FORMAT1 });

            foreach (var val1 in case1)
            {
                switch (val1.ITEM_FORMAT1)
                {
                case "Yes/No":
                    gridControl1.Visible = true;
                    RepositoryItemCheckEdit check = new RepositoryItemCheckEdit();
                    check.ValueUnchecked = "False";
                    check.ValueChecked   = "True";
                    check.ValueGrayed    = string.Empty;
                    gridControl1.RepositoryItems.Add(check);
                    colITEM1.ColumnEdit = check;
                    colITEM1.Caption    = val;
                    break;

                case "Date":
                    gridControl1.Visible = true;
                    RepositoryItemDateEdit date = new RepositoryItemDateEdit();
                    gridControl1.RepositoryItems.Add(date);
                    colITEM1.ColumnEdit = date;
                    colITEM1.Caption    = val;
                    break;

                case "Time":
                    gridControl1.Visible = true;
                    RepositoryItemTimeEdit time = new RepositoryItemTimeEdit();
                    gridControl1.RepositoryItems.Add(time);
                    colITEM1.ColumnEdit = time;
                    colITEM1.Caption    = val;
                    break;

                case "Text":
                    gridControl1.Visible = true;
                    RepositoryItemTextEdit text = new RepositoryItemTextEdit();
                    gridControl1.RepositoryItems.Add(text);
                    colITEM1.ColumnEdit = text;
                    colITEM1.Caption    = val;
                    break;

                case "Currency":
                    gridControl1.Visible = true;
                    RepositoryItemSpinEdit spin = new RepositoryItemSpinEdit();
                    gridControl1.RepositoryItems.Add(spin);
                    colITEM1.ColumnEdit = spin;
                    colITEM1.Caption    = val;
                    break;

                case "Integer":
                    gridControl1.Visible = true;
                    RepositoryItemTextEdit integer = new RepositoryItemTextEdit();
                    gridControl1.RepositoryItems.Add(integer);
                    colITEM1.ColumnEdit = integer;
                    colITEM1.Caption    = val;
                    break;

                case "Decimal":
                    gridControl1.Visible = true;
                    RepositoryItemTextEdit decimal1 = new RepositoryItemTextEdit();
                    gridControl1.RepositoryItems.Add(decimal1);
                    colITEM1.ColumnEdit = decimal1;
                    colITEM1.Caption    = val;
                    break;

                case "":
                    gridControl1.Visible = false;
                    break;
                }
            }
        }
Exemple #20
0
 private void InitializeComponent()
 {
     this.gpgLogGrid = new GPGChatGrid();
     this.gvLogView = new GridView();
     this.colTime = new GridColumn();
     this.repositoryItemTimeEdit1 = new RepositoryItemTimeEdit();
     this.colType = new GridColumn();
     this.colDescription = new GridColumn();
     this.colData = new GridColumn();
     this.rimMemoEdit3 = new RepositoryItemMemoEdit();
     this.rimPictureEdit3 = new RepositoryItemPictureEdit();
     this.rimTextEdit = new RepositoryItemTextEdit();
     this.riPopup = new RepositoryItemPopupContainerEdit();
     this.pcPropertyView = new PopupContainerControl();
     this.pgData = new PropertyGridControl();
     this.repositoryItemMemoExEdit1 = new RepositoryItemMemoExEdit();
     this.btnCancel = new GPGButton();
     this.gpgLogGrid.BeginInit();
     this.gvLogView.BeginInit();
     this.repositoryItemTimeEdit1.BeginInit();
     this.rimMemoEdit3.BeginInit();
     this.rimPictureEdit3.BeginInit();
     this.rimTextEdit.BeginInit();
     this.riPopup.BeginInit();
     this.pcPropertyView.BeginInit();
     this.pcPropertyView.SuspendLayout();
     this.pgData.BeginInit();
     this.repositoryItemMemoExEdit1.BeginInit();
     base.SuspendLayout();
     base.ttDefault.DefaultController.AutoPopDelay = 0x3e8;
     this.gpgLogGrid.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     this.gpgLogGrid.CustomizeStyle = false;
     this.gpgLogGrid.EmbeddedNavigator.Name = "";
     this.gpgLogGrid.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.gpgLogGrid.IgnoreMouseWheel = false;
     this.gpgLogGrid.Location = new Point(13, 0x4c);
     this.gpgLogGrid.LookAndFeel.SkinName = "Money Twins";
     this.gpgLogGrid.LookAndFeel.UseDefaultLookAndFeel = false;
     this.gpgLogGrid.MainView = this.gvLogView;
     this.gpgLogGrid.Name = "gpgLogGrid";
     this.gpgLogGrid.RepositoryItems.AddRange(new RepositoryItem[] { this.rimPictureEdit3, this.rimTextEdit, this.rimMemoEdit3, this.riPopup, this.repositoryItemTimeEdit1, this.repositoryItemMemoExEdit1 });
     this.gpgLogGrid.ShowOnlyPredefinedDetails = true;
     this.gpgLogGrid.Size = new Size(0x268, 0x138);
     this.gpgLogGrid.TabIndex = 0x1c;
     this.gpgLogGrid.ViewCollection.AddRange(new BaseView[] { this.gvLogView });
     this.gvLogView.ActiveFilterString = "";
     this.gvLogView.Appearance.ColumnFilterButton.BackColor = Color.Black;
     this.gvLogView.Appearance.ColumnFilterButton.BackColor2 = Color.FromArgb(20, 20, 20);
     this.gvLogView.Appearance.ColumnFilterButton.BorderColor = Color.Black;
     this.gvLogView.Appearance.ColumnFilterButton.ForeColor = Color.Gray;
     this.gvLogView.Appearance.ColumnFilterButton.Options.UseBackColor = true;
     this.gvLogView.Appearance.ColumnFilterButton.Options.UseBorderColor = true;
     this.gvLogView.Appearance.ColumnFilterButton.Options.UseForeColor = true;
     this.gvLogView.Appearance.ColumnFilterButtonActive.BackColor = Color.FromArgb(20, 20, 20);
     this.gvLogView.Appearance.ColumnFilterButtonActive.BackColor2 = Color.FromArgb(0x4e, 0x4e, 0x4e);
     this.gvLogView.Appearance.ColumnFilterButtonActive.BorderColor = Color.FromArgb(20, 20, 20);
     this.gvLogView.Appearance.ColumnFilterButtonActive.ForeColor = Color.Blue;
     this.gvLogView.Appearance.ColumnFilterButtonActive.Options.UseBackColor = true;
     this.gvLogView.Appearance.ColumnFilterButtonActive.Options.UseBorderColor = true;
     this.gvLogView.Appearance.ColumnFilterButtonActive.Options.UseForeColor = true;
     this.gvLogView.Appearance.Empty.BackColor = Color.Black;
     this.gvLogView.Appearance.Empty.Options.UseBackColor = true;
     this.gvLogView.Appearance.FilterCloseButton.BackColor = Color.FromArgb(0xd4, 0xd0, 200);
     this.gvLogView.Appearance.FilterCloseButton.BackColor2 = Color.FromArgb(90, 90, 90);
     this.gvLogView.Appearance.FilterCloseButton.BorderColor = Color.FromArgb(0xd4, 0xd0, 200);
     this.gvLogView.Appearance.FilterCloseButton.ForeColor = Color.Black;
     this.gvLogView.Appearance.FilterCloseButton.GradientMode = LinearGradientMode.ForwardDiagonal;
     this.gvLogView.Appearance.FilterCloseButton.Options.UseBackColor = true;
     this.gvLogView.Appearance.FilterCloseButton.Options.UseBorderColor = true;
     this.gvLogView.Appearance.FilterCloseButton.Options.UseForeColor = true;
     this.gvLogView.Appearance.FilterPanel.BackColor = Color.Black;
     this.gvLogView.Appearance.FilterPanel.BackColor2 = Color.FromArgb(0xd4, 0xd0, 200);
     this.gvLogView.Appearance.FilterPanel.ForeColor = Color.White;
     this.gvLogView.Appearance.FilterPanel.GradientMode = LinearGradientMode.ForwardDiagonal;
     this.gvLogView.Appearance.FilterPanel.Options.UseBackColor = true;
     this.gvLogView.Appearance.FilterPanel.Options.UseForeColor = true;
     this.gvLogView.Appearance.FixedLine.BackColor = Color.FromArgb(0x3a, 0x3a, 0x3a);
     this.gvLogView.Appearance.FixedLine.Options.UseBackColor = true;
     this.gvLogView.Appearance.FocusedCell.BackColor = Color.Black;
     this.gvLogView.Appearance.FocusedCell.Font = new Font("Tahoma", 10f);
     this.gvLogView.Appearance.FocusedCell.ForeColor = Color.White;
     this.gvLogView.Appearance.FocusedCell.Options.UseBackColor = true;
     this.gvLogView.Appearance.FocusedCell.Options.UseFont = true;
     this.gvLogView.Appearance.FocusedCell.Options.UseForeColor = true;
     this.gvLogView.Appearance.FocusedRow.BackColor = Color.FromArgb(0xbb, 0xc9, 0xe2);
     this.gvLogView.Appearance.FocusedRow.BackColor2 = Color.FromArgb(0x52, 0x83, 190);
     this.gvLogView.Appearance.FocusedRow.Font = new Font("Arial", 9.75f);
     this.gvLogView.Appearance.FocusedRow.ForeColor = Color.White;
     this.gvLogView.Appearance.FocusedRow.GradientMode = LinearGradientMode.ForwardDiagonal;
     this.gvLogView.Appearance.FocusedRow.Options.UseBackColor = true;
     this.gvLogView.Appearance.FocusedRow.Options.UseFont = true;
     this.gvLogView.Appearance.FocusedRow.Options.UseForeColor = true;
     this.gvLogView.Appearance.FooterPanel.BackColor = Color.Black;
     this.gvLogView.Appearance.FooterPanel.BorderColor = Color.Black;
     this.gvLogView.Appearance.FooterPanel.Font = new Font("Tahoma", 10f);
     this.gvLogView.Appearance.FooterPanel.ForeColor = Color.White;
     this.gvLogView.Appearance.FooterPanel.Options.UseBackColor = true;
     this.gvLogView.Appearance.FooterPanel.Options.UseBorderColor = true;
     this.gvLogView.Appearance.FooterPanel.Options.UseFont = true;
     this.gvLogView.Appearance.FooterPanel.Options.UseForeColor = true;
     this.gvLogView.Appearance.GroupButton.BackColor = Color.Black;
     this.gvLogView.Appearance.GroupButton.BorderColor = Color.Black;
     this.gvLogView.Appearance.GroupButton.ForeColor = Color.White;
     this.gvLogView.Appearance.GroupButton.Options.UseBackColor = true;
     this.gvLogView.Appearance.GroupButton.Options.UseBorderColor = true;
     this.gvLogView.Appearance.GroupButton.Options.UseForeColor = true;
     this.gvLogView.Appearance.GroupFooter.BackColor = Color.FromArgb(10, 10, 10);
     this.gvLogView.Appearance.GroupFooter.BorderColor = Color.FromArgb(10, 10, 10);
     this.gvLogView.Appearance.GroupFooter.ForeColor = Color.White;
     this.gvLogView.Appearance.GroupFooter.Options.UseBackColor = true;
     this.gvLogView.Appearance.GroupFooter.Options.UseBorderColor = true;
     this.gvLogView.Appearance.GroupFooter.Options.UseForeColor = true;
     this.gvLogView.Appearance.GroupPanel.BackColor = Color.Black;
     this.gvLogView.Appearance.GroupPanel.BackColor2 = Color.Black;
     this.gvLogView.Appearance.GroupPanel.Font = new Font("Tahoma", 10f, FontStyle.Bold);
     this.gvLogView.Appearance.GroupPanel.ForeColor = Color.White;
     this.gvLogView.Appearance.GroupPanel.Options.UseBackColor = true;
     this.gvLogView.Appearance.GroupPanel.Options.UseFont = true;
     this.gvLogView.Appearance.GroupPanel.Options.UseForeColor = true;
     this.gvLogView.Appearance.GroupRow.BackColor = Color.Gray;
     this.gvLogView.Appearance.GroupRow.Font = new Font("Tahoma", 10f);
     this.gvLogView.Appearance.GroupRow.ForeColor = Color.White;
     this.gvLogView.Appearance.GroupRow.Options.UseBackColor = true;
     this.gvLogView.Appearance.GroupRow.Options.UseFont = true;
     this.gvLogView.Appearance.GroupRow.Options.UseForeColor = true;
     this.gvLogView.Appearance.HeaderPanel.BackColor = Color.Black;
     this.gvLogView.Appearance.HeaderPanel.BorderColor = Color.Black;
     this.gvLogView.Appearance.HeaderPanel.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.gvLogView.Appearance.HeaderPanel.ForeColor = Color.Black;
     this.gvLogView.Appearance.HeaderPanel.Options.UseBackColor = true;
     this.gvLogView.Appearance.HeaderPanel.Options.UseBorderColor = true;
     this.gvLogView.Appearance.HeaderPanel.Options.UseFont = true;
     this.gvLogView.Appearance.HeaderPanel.Options.UseForeColor = true;
     this.gvLogView.Appearance.HideSelectionRow.BackColor = Color.Gray;
     this.gvLogView.Appearance.HideSelectionRow.Font = new Font("Tahoma", 10f);
     this.gvLogView.Appearance.HideSelectionRow.ForeColor = Color.FromArgb(0xd4, 0xd0, 200);
     this.gvLogView.Appearance.HideSelectionRow.Options.UseBackColor = true;
     this.gvLogView.Appearance.HideSelectionRow.Options.UseFont = true;
     this.gvLogView.Appearance.HideSelectionRow.Options.UseForeColor = true;
     this.gvLogView.Appearance.HorzLine.BackColor = Color.FromArgb(0x52, 0x83, 190);
     this.gvLogView.Appearance.HorzLine.Options.UseBackColor = true;
     this.gvLogView.Appearance.Preview.BackColor = Color.White;
     this.gvLogView.Appearance.Preview.Font = new Font("Tahoma", 10f);
     this.gvLogView.Appearance.Preview.ForeColor = Color.Purple;
     this.gvLogView.Appearance.Preview.Options.UseBackColor = true;
     this.gvLogView.Appearance.Preview.Options.UseFont = true;
     this.gvLogView.Appearance.Preview.Options.UseForeColor = true;
     this.gvLogView.Appearance.Row.BackColor = Color.Black;
     this.gvLogView.Appearance.Row.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0xb2);
     this.gvLogView.Appearance.Row.ForeColor = Color.White;
     this.gvLogView.Appearance.Row.Options.UseBackColor = true;
     this.gvLogView.Appearance.Row.Options.UseFont = true;
     this.gvLogView.Appearance.Row.Options.UseForeColor = true;
     this.gvLogView.Appearance.RowSeparator.BackColor = Color.White;
     this.gvLogView.Appearance.RowSeparator.BackColor2 = Color.White;
     this.gvLogView.Appearance.RowSeparator.Options.UseBackColor = true;
     this.gvLogView.Appearance.SelectedRow.BackColor = Color.FromArgb(0xbb, 0xc9, 0xe2);
     this.gvLogView.Appearance.SelectedRow.BackColor2 = Color.FromArgb(0x52, 0x83, 190);
     this.gvLogView.Appearance.SelectedRow.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.gvLogView.Appearance.SelectedRow.ForeColor = Color.White;
     this.gvLogView.Appearance.SelectedRow.GradientMode = LinearGradientMode.ForwardDiagonal;
     this.gvLogView.Appearance.SelectedRow.Options.UseBackColor = true;
     this.gvLogView.Appearance.SelectedRow.Options.UseFont = true;
     this.gvLogView.Appearance.SelectedRow.Options.UseForeColor = true;
     this.gvLogView.Appearance.TopNewRow.Font = new Font("Tahoma", 10f);
     this.gvLogView.Appearance.TopNewRow.ForeColor = Color.White;
     this.gvLogView.Appearance.TopNewRow.Options.UseFont = true;
     this.gvLogView.Appearance.TopNewRow.Options.UseForeColor = true;
     this.gvLogView.Appearance.VertLine.BackColor = Color.FromArgb(0x52, 0x83, 190);
     this.gvLogView.Appearance.VertLine.Options.UseBackColor = true;
     this.gvLogView.BorderStyle = BorderStyles.NoBorder;
     this.gvLogView.Columns.AddRange(new GridColumn[] { this.colTime, this.colType, this.colDescription, this.colData });
     this.gvLogView.GridControl = this.gpgLogGrid;
     this.gvLogView.Name = "gvLogView";
     this.gvLogView.OptionsBehavior.AutoPopulateColumns = false;
     this.gvLogView.OptionsDetail.AllowZoomDetail = false;
     this.gvLogView.OptionsDetail.EnableMasterViewMode = false;
     this.gvLogView.OptionsDetail.ShowDetailTabs = false;
     this.gvLogView.OptionsDetail.SmartDetailExpand = false;
     this.gvLogView.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.gvLogView.OptionsSelection.MultiSelect = true;
     this.gvLogView.OptionsView.RowAutoHeight = true;
     this.colTime.Caption = "Time";
     this.colTime.ColumnEdit = this.repositoryItemTimeEdit1;
     this.colTime.FieldName = "DateTime";
     this.colTime.Name = "colTime";
     this.colTime.OptionsColumn.AllowEdit = false;
     this.colTime.Visible = true;
     this.colTime.VisibleIndex = 0;
     this.repositoryItemTimeEdit1.AutoHeight = false;
     this.repositoryItemTimeEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton() });
     this.repositoryItemTimeEdit1.Name = "repositoryItemTimeEdit1";
     this.colType.Caption = "Type";
     this.colType.FieldName = "LogType";
     this.colType.Name = "colType";
     this.colType.OptionsColumn.AllowEdit = false;
     this.colType.Visible = true;
     this.colType.VisibleIndex = 1;
     this.colDescription.Caption = "Description";
     this.colDescription.FieldName = "Description";
     this.colDescription.Name = "colDescription";
     this.colDescription.OptionsColumn.AllowEdit = false;
     this.colDescription.Visible = true;
     this.colDescription.VisibleIndex = 2;
     this.colData.Caption = "Data";
     this.colData.ColumnEdit = this.rimMemoEdit3;
     this.colData.FieldName = "Data";
     this.colData.Name = "colData";
     this.colData.Visible = true;
     this.colData.VisibleIndex = 3;
     this.rimMemoEdit3.MaxLength = 500;
     this.rimMemoEdit3.Name = "rimMemoEdit3";
     this.rimPictureEdit3.Name = "rimPictureEdit3";
     this.rimPictureEdit3.PictureAlignment = ContentAlignment.TopCenter;
     this.rimTextEdit.AutoHeight = false;
     this.rimTextEdit.Name = "rimTextEdit";
     this.riPopup.AutoHeight = false;
     this.riPopup.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
     this.riPopup.Name = "riPopup";
     this.riPopup.PopupControl = this.pcPropertyView;
     this.riPopup.Popup += new EventHandler(this.riPopup_Popup);
     this.pcPropertyView.Controls.Add(this.pgData);
     this.pcPropertyView.Location = new Point(13, 0xda);
     this.pcPropertyView.Name = "pcPropertyView";
     this.pcPropertyView.Size = new Size(0xdf, 180);
     this.pcPropertyView.TabIndex = 0x1f;
     this.pcPropertyView.Text = "popupContainerControl1";
     this.pgData.Dock = DockStyle.Fill;
     this.pgData.Location = new Point(0, 0);
     this.pgData.Name = "pgData";
     this.pgData.Size = new Size(0xdf, 180);
     this.pgData.TabIndex = 0;
     this.repositoryItemMemoExEdit1.AutoHeight = false;
     this.repositoryItemMemoExEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
     this.repositoryItemMemoExEdit1.Name = "repositoryItemMemoExEdit1";
     this.btnCancel.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     this.btnCancel.Appearance.ForeColor = Color.Black;
     this.btnCancel.Appearance.Options.UseForeColor = true;
     this.btnCancel.Location = new Point(0x20d, 0x18a);
     this.btnCancel.LookAndFeel.SkinName = "London Liquid Sky";
     this.btnCancel.LookAndFeel.UseDefaultLookAndFeel = false;
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new Size(0x68, 0x17);
     this.btnCancel.TabIndex = 30;
     this.btnCancel.Text = "<LOC>Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new EventHandler(this.btnCancel_Click);
     base.AutoScaleMode = AutoScaleMode.None;
     base.ClientSize = new Size(640, 480);
     base.Controls.Add(this.pcPropertyView);
     base.Controls.Add(this.btnCancel);
     base.Controls.Add(this.gpgLogGrid);
     this.Font = new Font("Verdana", 8f);
     base.Location = new Point(0, 0);
     base.Name = "DlgLogWatcher";
     this.Text = "Log Watcher";
     base.Controls.SetChildIndex(this.gpgLogGrid, 0);
     base.Controls.SetChildIndex(this.btnCancel, 0);
     base.Controls.SetChildIndex(this.pcPropertyView, 0);
     this.gpgLogGrid.EndInit();
     this.gvLogView.EndInit();
     this.repositoryItemTimeEdit1.EndInit();
     this.rimMemoEdit3.EndInit();
     this.rimPictureEdit3.EndInit();
     this.rimTextEdit.EndInit();
     this.riPopup.EndInit();
     this.pcPropertyView.EndInit();
     this.pcPropertyView.ResumeLayout(false);
     this.pgData.EndInit();
     this.repositoryItemMemoExEdit1.EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }