• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# BrightIdeasSoftware类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中BrightIdeasSoftware的典型用法代码示例。如果您正苦于以下问题:C# BrightIdeasSoftware类的具体用法?C# BrightIdeasSoftware怎么用?C# BrightIdeasSoftware使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



BrightIdeasSoftware类属于命名空间,在下文中一共展示了BrightIdeasSoftware类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ColorRows

        /// <summary>
        /// Colors the input row depending on the the task's date and time which it contains.
        /// </summary>
        /// <param name="row">The rows to format</param>
        public void ColorRows(BrightIdeasSoftware.FormatRowEventArgs row)
        {
            Task task = (Task)row.Item.RowObject;

            if (task == null) return; // log exception

            // Task is done!
            if (task.DoneState == true)
            {
                ColorSubItems(row, settings.GetTaskDoneColor());
            }

            else if (task is TaskDeadline)
            {
                // Deadline task is over time limit!
                if (task.IsWithinTime(DateTime.MinValue, DateTime.Now))
                    ColorSubItems(row, settings.GetTaskMissedDeadlineColor());
                // Task is within the next 24 hrs!
                else if (task.IsWithinTime(DateTime.Now, DateTime.Now.AddDays(1)))
                    ColorSubItems(row, settings.GetTaskNearingDeadlineColor());
            }

            else if (task is TaskEvent)
            {
                // Task has already started or is over!
                if (task.IsWithinTime(DateTime.MinValue, DateTime.Now))
                    ColorSubItems(row, settings.GetTaskOverColor());
            }
        }
开发者ID:soulslicer,项目名称:ToDoPlusPlus,代码行数:33,代码来源:TaskListViewControl.cs


示例2: Formater

 public void Formater(BrightIdeasSoftware.ObjectListView listview, BrightIdeasSoftware.OLVColumn column, bool isSHow)
 {
     if (column.Name == "OrderNumber")
     {
         column.AspectGetter = delegate(object x) { return ((Manufacturer)x).manufacturerID; };
     }
     else
     {
         switch (column.Name)
         {
             case "manufacturerName":
                 column.AspectGetter = delegate(object x) { return ((Manufacturer)x).manufacturerName; };
                 break;
             case "manufacturerTel":
                 column.AspectGetter = delegate(object x) { return ((Manufacturer)x).manufacturerTel; };
                 break;
             case "manufacturerAdd":
                 column.AspectGetter = delegate(object x) { return ((Manufacturer)x).manufacturerAdd; };
                 break;
             default:
                 column.AspectGetter = delegate(object x) { return ""; };
                 break;
         }
     }
 }
开发者ID:qq5013,项目名称:StockControl_KPS,代码行数:25,代码来源:ManufacturerListFormaterManager.cs


示例3: lvIndicators_HyperlinkClicked

 private void lvIndicators_HyperlinkClicked(object sender, BrightIdeasSoftware.HyperlinkClickedEventArgs e)
 {
     e.Handled = true;
     IndicatorAdd modal = new IndicatorAdd(model.Indicators.Values, (Indicator)e.Model);
     modal.OnSave += edit_OnSave;
     modal.ShowDialog();
 }
开发者ID:ericjohnolson,项目名称:NadaNtd,代码行数:7,代码来源:SurveyTypeEdit.cs


示例4: Draw

        public override void Draw(BrightIdeasSoftware.ObjectListView olv, Graphics g, Rectangle r) {
            Rectangle cellBounds = this.CellBounds;
            cellBounds.Inflate(-this.CellPadding.Width, -this.CellPadding.Height);
            Rectangle textBounds = cellBounds;

            if (this.ImageList != null && !String.IsNullOrEmpty(this.ImageName)) {
                g.DrawImage(this.ImageList.Images[this.ImageName], cellBounds.Location);
                textBounds.X += this.ImageList.ImageSize.Width;
                textBounds.Width -= this.ImageList.ImageSize.Width;
            }

            //g.DrawRectangle(Pens.Red, textBounds);

            // Draw the title
            StringFormat fmt = new StringFormat(StringFormatFlags.NoWrap);
            fmt.Trimming = StringTrimming.EllipsisCharacter;
            fmt.Alignment = StringAlignment.Near;
            fmt.LineAlignment = StringAlignment.Near;

            using (SolidBrush b = new SolidBrush(this.TitleColor)) {
                g.DrawString(this.Title, this.TitleFont, b, textBounds, fmt);
            }

            // Draw the description
            SizeF size = g.MeasureString(this.Title, this.TitleFont, (int)textBounds.Width, fmt);
            textBounds.Y += (int)size.Height;
            textBounds.Height -= (int)size.Height;
            StringFormat fmt2 = new StringFormat();
            fmt2.Trimming = StringTrimming.EllipsisCharacter;
            using (SolidBrush b = new SolidBrush(this.DescriptionColor)) {
                g.DrawString(this.Description, this.DescripionFont, b, textBounds, fmt2);
            }
        }
开发者ID:sayedjalilhassan,项目名称:LearningPlatform,代码行数:33,代码来源:Form1.cs


示例5: treeAvailable_HyperlinkClicked

 private void treeAvailable_HyperlinkClicked(object sender, BrightIdeasSoftware.HyperlinkClickedEventArgs e)
 {
     e.Handled = true;
     options.Source = (AdminLevel)e.Model;
     options.Source.CurrentDemography = repo.GetRecentDemography(options.Source.Id);
     options.SplitChildren = repo.GetAdminLevelChildren(options.Source.Id);
     OnSwitchStep(new SplittingIntoNumber(options));
 }
开发者ID:ericjohnolson,项目名称:NadaNtd,代码行数:8,代码来源:SplittingSource.cs


示例6: mTextBox_FormatRow

 void mTextBox_FormatRow( object sender, BrightIdeasSoftware.FormatRowEventArgs e )
 {
     LogItem logItem = ( LogItem )e.Model;
     if ( logItem != null )
     {
         e.Item.ForeColor = logItem.ForeColor;
         e.Item.BackColor = logItem.BackColor;
     }
 }
开发者ID:peteward44,项目名称:auto-usb-backup,代码行数:9,代码来源:LogTextBox.cs


示例7: OnDoorsCellEditFinishing

 void OnDoorsCellEditFinishing(
     object sender,
     BrightIdeasSoftware.CellEditEventArgs e)
 {
     if ( !e.Cancel )
       {
     ExportData( e.RowObject as DoorData );
       }
 }
开发者ID:jeremytammik,项目名称:FireRatingCloud,代码行数:9,代码来源:Form1.cs


示例8: OnDoorsCellEditValidating

 void OnDoorsCellEditValidating(
     object sender,
     BrightIdeasSoftware.CellEditEventArgs e)
 {
     if ( !e.Cancel )
       {
     ( (DoorData) e.RowObject ).firerating
       = double.Parse( e.Control.Text );
       }
 }
开发者ID:jeremytammik,项目名称:FireRatingCloud,代码行数:10,代码来源:Form1.cs


示例9: objectListView1_FormatCell

 private void objectListView1_FormatCell(object sender, BrightIdeasSoftware.FormatCellEventArgs e) {
     if (e.ColumnIndex == 0) {
         Task task = (Task)e.Model;
         NamedDescriptionDecoration decoration = new NamedDescriptionDecoration();
         decoration.ImageList = this.imageListLarge;
         decoration.Title = task.Feature;
         decoration.ImageName = task.FeatureIcon;
         decoration.Description = task.Description;
         e.SubItem.Decoration = decoration;
     }
 }
开发者ID:sayedjalilhassan,项目名称:LearningPlatform,代码行数:11,代码来源:Form1.cs


示例10: objList_RowNumberDblClick

 private void objList_RowNumberDblClick(BrightIdeasSoftware.OlvListViewHitTestInfo hti)
 {
     frmProduct frmPro = new frmProduct(BOIDEnum.Product);
     frmPro.MdiParent = this.MdiParent;
     FormExchangeParams args = new FormExchangeParams();
     args.Data = hti.RowObject;
     args.Mode = FormMode.Ok;
     args.ReturnProc = UpdateProMdRetProc;
     frmPro.SetFormExchangeParams(args);
     frmPro.Show();
 }
开发者ID:ToughBill,项目名称:NanCrm,代码行数:11,代码来源:frmProductList.cs


示例11: OLVCars_BeforeCreatingGroups

        private void OLVCars_BeforeCreatingGroups(object sender, BrightIdeasSoftware.CreateGroupsEventArgs e)
        {
            this.olvColumn1.MakeGroupies(new string[] { "Jeep", "Mazda" }, new string[] { "Car", "Cool Car", "Dumb Car" },
                new string[] { "not", "hamburger", "toast" },
                new string[] { "Pay good money -- or flee the house -- rather than eat their homecooked food",
                                "Offer to buy takeaway rather than risk what may appear on your plate",
                                "Neither spectacular nor dangerous" },
                new string[] { "", "Open calendar", "Check bank balance" });

            OLVCars.UseAlternatingBackColors = true;
            OLVCars.ShowItemCountOnGroups = true;
        }
开发者ID:2joephillips,项目名称:LearnC-,代码行数:12,代码来源:Form1.cs


示例12: AttributesRightClick

 private void AttributesRightClick(object sender, BrightIdeasSoftware.CellRightClickEventArgs e)
 {
     if (this.AttributesContextMenuStrip == null)
     {
         this.AttributesContextMenuStrip = new ContextMenuStrip();
         this.AttributesContextMenuStrip.Items.AddRange(System.Enum.GetNames(typeof(System.IO.FileAttributes))
             .Where(qC => this.imageList.Images.ContainsKey(qC.ToLower()))
             .Select(qC => new ToolStripMenuItem(qC.ToString(), this.imageList.Images[qC.ToString().ToLower()])).ToArray());
     }
     // cms.Show(Cursor.Position);
     e.MenuStrip = this.AttributesContextMenuStrip;
 }
开发者ID:ZlayaZhaba,项目名称:XervBackup,代码行数:12,代码来源:FolderSelectControl.cs


示例13: objList_RowNumberDblClick

 private void objList_RowNumberDblClick(BrightIdeasSoftware.OlvListViewHitTestInfo hti)
 {
     MarketDetaiedlMD obj = (MarketDetaiedlMD)hti.RowObject;
     frmMarketMD frmMktMd = new frmMarketMD(BOIDEnum.Market);
     frmMktMd.MdiParent = this.MdiParent;
     frmMktMd.FormMode = NanCrm.FormMode.Ok;
     frmMktMd.UpdateProc = MarketMDUpdateProc;
     //int id = ((MarketDetaiedlMD)hti.RowObject).ID;
     //frmMktMd.LoadDataById(id);
     frmMktMd.SetBOTable(((MarketDetaiedlMD)hti.RowObject).GetOrignalMD());
     frmMktMd.Show();
 }
开发者ID:ToughBill,项目名称:NanCrm,代码行数:12,代码来源:frmMarketList.cs


示例14: objList_RowNumberDblClick

 private void objList_RowNumberDblClick(BrightIdeasSoftware.OlvListViewHitTestInfo hti)
 {
     KWListDetailMD obj = (KWListDetailMD)hti.RowObject;
     frmKeyWordListMD frmKw = new frmKeyWordListMD(BOIDEnum.KeyWordList);
     frmKw.MdiParent = this.MdiParent;
     FormExchangeParams param = new FormExchangeParams();
     param.Mode = NanCrm.FormMode.Ok;
     param.ReturnProc = KWLMDRetProc;
     param.Data = (KWListDetailMD)hti.RowObject;
     frmKw.SetFormExchangeParams(param);
     //frmKw.SetBOTable(((KWListDetailMD)hti.RowObject).GetOrignalMD());
     frmKw.Show();
 }
开发者ID:ToughBill,项目名称:NanCrm,代码行数:13,代码来源:frmKeyWordList.cs


示例15: objList_CellEditFinishing

 private void objList_CellEditFinishing(object sender, BrightIdeasSoftware.CellEditEventArgs e)
 {
     if (e.ListViewItem.Index == objList.Items.Count - 1)
     {
         if (string.IsNullOrWhiteSpace(e.NewValue.ToString()))
         {
             return;
         }
         KeyWordMD obj = (KeyWordMD)objList.AddEmptyRow();
         int maxIdInDb = BusinessObject.GetBONextID(BOIDEnum.KeyWord);
         int maxIdOfUi = objList.Objects.Cast<KeyWordMD>().ToList().Max(x=>x.ID);
         obj.ID = Math.Max(maxIdInDb,maxIdOfUi) + 1;
     }
 }
开发者ID:ToughBill,项目名称:NanCrm,代码行数:14,代码来源:frmKeyWrod.cs


示例16: Formater

        public void Formater(BrightIdeasSoftware.ObjectListView listview, BrightIdeasSoftware.OLVColumn column, bool isSHow)
        {
            if (column.Name == "OrderNumber")
            {
                column.AspectGetter = delegate(object x) { return ((CunChuInfo)x).ID; };
            }
            else
            {

                switch (column.Name)
                {
                    case "s_cqcs":
                        column.AspectGetter = delegate(object x) { return ((CunChuInfo)x).s_cqcs; };
                        break;
                    case "s_csmc":
                        column.AspectGetter = delegate(object x) { return ((CunChuInfo)x).s_csmc; };
                        break;
                    case "s_date":
                        column.AspectGetter = delegate(object x) { return ((CunChuInfo)x).s_date.Value.ToString("yyyy-MM-dd HH:mm:ss"); };
                        break;
                    case "s_jlr":
                        column.AspectGetter = delegate(object x) { return ((CunChuInfo)x).s_jlr; };
                        break;
                    case "s_sd":
                        column.AspectGetter = delegate(object x) { return ((CunChuInfo)x).s_sd; };
                        break;
                    case "s_sded":
                        column.AspectGetter = delegate(object x) { return ((CunChuInfo)x).s_sded; };
                        break;
                    case "s_sworxw":
                        column.AspectGetter = delegate(object x) { return GetTimeStrByState((int)((CunChuInfo)x).s_sworxw); };
                        break;
                    case "s_sywdfw":
                        column.AspectGetter = delegate(object x) { return ((CunChuInfo)x).s_sywdfw;};
                        break;
                    case "s_syxdsdfw":
                        column.AspectGetter = delegate(object x) { return ((CunChuInfo)x).s_syxdsdfw; };
                        break;
                    case "s_wd":
                        column.AspectGetter = delegate(object x) { return ((CunChuInfo)x).s_wd; };
                        break;
                    case "s_wded":
                        column.AspectGetter = delegate(object x) { return ((CunChuInfo)x).s_wded; };
                        break;
                    default:
                        column.AspectGetter = delegate(object x) { return ""; };
                        break;
                }
            }
        }
开发者ID:qq5013,项目名称:StockControl_KPS,代码行数:50,代码来源:CunChuInfoListFormatManager.cs


示例17: objList_CellClick

 private void objList_CellClick(object sender, BrightIdeasSoftware.CellClickEventArgs e)
 {
     if (e.Column == null || e.Column.AspectName != "Name")
     {
         return;
     }
     if (e.HitTest.HitTestLocation == HitTestLocation.Image)
     {
         frmCFL cfl = new frmCFL(objList.BOID);
         cfl.ReturnProc = KeyWordRetProc;
         cfl.MdiParent = this.MdiParent;
         cfl.Show();
         e.Handled = true;
     }
 }
开发者ID:ToughBill,项目名称:NanCrm,代码行数:15,代码来源:frmKeyWordListMD.cs


示例18: Formater

        public void Formater(BrightIdeasSoftware.ObjectListView listview, BrightIdeasSoftware.OLVColumn column, bool isSHow)
        {
            if (column.Name == "OrderNumber")
            {
                column.AspectGetter = delegate(object x) { return ((ProcessLoggingInfo)x).ProcessID; };
            }
            else
            {

                switch (column.Name)
                {
                    case "ProcessContentInquired":
                        column.AspectGetter = delegate(object x) { return ((ProcessLoggingInfo)x).ProcessContentInquired; };
                        break;
                    case "ProcessCustomerUnit":
                        column.AspectGetter = delegate(object x) { return ((ProcessLoggingInfo)x).ProcessCustomerUnit; };
                        break;
                    case "ProcessDate":
                        column.AspectGetter = delegate(object x) { return ((ProcessLoggingInfo)x).ProcessDate.Value.ToString("yyyy-MM-dd HH:mm:ss"); };
                        break;
                    case "ProcessHandlingSuggestion":
                        column.AspectGetter = delegate(object x) { return ((ProcessLoggingInfo)x).ProcessHandlingSuggestion; };
                        break;
                    case "Processlinkman":
                        column.AspectGetter = delegate(object x) { return ((ProcessLoggingInfo)x).Processlinkman; };
                        break;
                    case "ProcessProductName":
                        column.AspectGetter = delegate(object x) { return ((ProcessLoggingInfo)x).ProcessProductName; };
                        break;
                    case "ProcessPurchasingDate":
                        column.AspectGetter = delegate(object x) { return ((ProcessLoggingInfo)x).ProcessPurchasingDate.Value.ToString("yyyy-MM-dd HH:mm:ss"); };
                        break;
                    case "ProcessServiceUser":
                        column.AspectGetter = delegate(object x) { return ((ProcessLoggingInfo)x).ProcessServiceUser; };
                        break;
                    case "ProcessStandard":
                        column.AspectGetter = delegate(object x) { return ((ProcessLoggingInfo)x).ProcessStandard; };
                        break;
                    case "Processtel":
                        column.AspectGetter = delegate(object x) { return ((ProcessLoggingInfo)x).Processtel; };
                        break;
                    default:
                        column.AspectGetter = delegate(object x) { return ""; };
                        break;
                }
            }
        }
开发者ID:qq5013,项目名称:StockControl_KPS,代码行数:47,代码来源:ProcessLoggingInfoListFormaterManager.cs


示例19: dlvSegments_CellClick

 private void dlvSegments_CellClick(object sender, BrightIdeasSoftware.CellClickEventArgs e)
 {
     if( e.ClickCount != 2)
     {
         return;
     }
     var segment = dlvSegments.SelectedObject<SegmentInformation>();
     if (segment == null)
     {
         return;
     }
     BeginTask("Looking for instances in segment...");
     var addressList = ClrDump.Eval(() => segment.Instances.ToList());
     var addresses = new AddressContainerList(addressList);
     Status("Displaying instances in segment...");
     InstancesMixedModule.Create(ClrDump, addresses, this, mod => RequestDockModule(mod), $"{ClrDump.Id} - {segment.Start:X}");
     EndTask("Segment instances displayed.");
 }
开发者ID:fremag,项目名称:MemoScope.Net,代码行数:18,代码来源:SegmentsModule.cs


示例20: lvUsers_HyperlinkClicked

        private void lvUsers_HyperlinkClicked(object sender, BrightIdeasSoftware.HyperlinkClickedEventArgs e)
        {

            e.Handled = true;
            if (e.Column.AspectName == "View")
            {
                UserAdd form = new UserAdd((Member)e.Model);
                form.OnSave += form_OnSave;
                form.ShowDialog();
            }
            else if (e.Column.AspectName == "Delete")
            {
                DeleteConfirm confirm = new DeleteConfirm();
                if (confirm.ShowDialog() == DialogResult.OK)
                {
                    members.Delete((Member)e.Model);
                }
            }
        }
开发者ID:ericjohnolson,项目名称:NadaNtd,代码行数:19,代码来源:SettingsDashboard.cs



注:本文中的BrightIdeasSoftware类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# BrightstarEntityContext类代码示例发布时间:2022-05-24
下一篇:
C# BreakStatement类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap