using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PublicLibrary;
using WeifenLuo.WinFormsUI.Docking;
using UtilityLibrary.WinControls;
namespace TestPlus
{
public partial class FormMain : DockContent, IClientForm
{
public FormMain()
{
InitializeComponent();
}
private IMainForm Imainform;
public IMainForm mainForm
{
get
{
return Imainform;
}
set
{
Imainform = value;
}
}
private void FormMain_Load(object sender, EventArgs e)
{
OutlookBar outlookBar1 = new OutlookBar();
outlookBar1.SetStyle(UtilityLibrary.Enums.Style.Office2007Blue);//设置Office2007Blue皮肤
outlookBar1.OfficeStyle = true;//设置Office效果,主要是mouse经过,点下时的效果
//OutlookBarBand outlookMapsearchBand = new OutlookBarBand("OutlookBarC1");
//outlookBar1.Bands.Add(outlookMapsearchBand);
//OutlookBarBand outlookMapcontrolBand = new OutlookBarBand("OutlookBarC2");
//outlookBar1.Bands.Add(outlookMapcontrolBand);
//OutlookBarBand outlookMapinstanceBand = new OutlookBarBand("OutlookBarC3");
//outlookBar1.Bands.Add(outlookMapinstanceBand);
//outlookBar1.Dock = DockStyle.Fill;
//this.Controls.AddRange(new Control[] { outlookBar1 });
outlookBar1 = new OutlookBar();
OutlookBarBand outlookMapsearchBand = new OutlookBarBand("张总房间");
outlookMapsearchBand.Name = "张总房间";
outlookMapsearchBand.SmallImageList = this.imageList1;
outlookMapsearchBand.LargeImageList = this.imageList1;
OutlookBarItem items1 = new OutlookBarItem("大灯", 0);
OutlookBarItem items2 = new OutlookBarItem("走廊灯", 0);
outlookMapsearchBand.Items.Add(items1);
outlookMapsearchBand.Items.Add(items2);
outlookBar1.Bands.Add(outlookMapsearchBand);
OutlookBarBand outlookMapcontrolBand = new OutlookBarBand("技术部");
outlookMapcontrolBand.Name = "技术部";
outlookMapcontrolBand.SmallImageList = this.imageList1;
outlookMapcontrolBand.LargeImageList = this.imageList1;
OutlookBarItem items3 = new OutlookBarItem("摄像头", 0);
OutlookBarItem items4 = new OutlookBarItem("温度", 0);
outlookMapcontrolBand.Items.Add(items3);
outlookMapcontrolBand.Items.Add(items4);
outlookBar1.Bands.Add(outlookMapcontrolBand);
//outlookBar1.Bands.Add(outlookMapinstanceBand);
outlookBar1.Dock = DockStyle.Fill;
//this.panel1.Controls.AddRange(new Control[] { outlookBar1 });
this.Controls.AddRange(new Control[] { outlookBar1 });
}
}
}