当前位置: 首页>>代码示例>>C#>>正文


C# BrightIdeasSoftware类代码示例

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


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


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