Example #1
1
 public void Images(IManosContext ctx, int index)
 {
     var images = new ImageList();
       var image = images[index];
       ctx.Response.End("Image: {0}, size {1} x {2}", image.Name, image.Width,
        image.Height);
 }
Example #2
0
 public ImageList Clone() {
   ImageList n = new ImageList();
   n.images = this.images;
   n.transparentColor = this.transparentColor;
   n.imageSize = this.imageSize;
   return n;
 }
Example #3
0
 public Character()
 {
     _passives = new List<Passive>();
     _skills = new List<Ability>();
     physiologies = new List<Physiology>();
     images = new ImageList();
 }
 static CCSProjectNode()
 {
     imageList =
         Utilities.GetImageList(
             typeof(CCSProjectNode).Assembly.GetManifestResourceStream(
                 "CCS.Projects.Resources.CCSProjectNode.bmp"));
 }
Example #5
0
    public MForm4()
    {
        Size = new Size(250, 200);
        Text = "Simple toolbar";

        toolBar = new ToolBar();
        toolBar.Parent = this;
        toolBarIcons = new ImageList();
        save = new ToolBarButton();
        exit = new ToolBarButton();

        save.ImageIndex = 0;
        save.Tag = "Save";
        exit.ImageIndex = 1;
        exit.Tag = "Exit";

        toolBar.ImageList = toolBarIcons;
        toolBar.ShowToolTips = true;
        toolBar.Buttons.AddRange(new ToolBarButton[] {save, exit});
        toolBar.ButtonClick += new ToolBarButtonClickEventHandler(OnClicked);

        toolBarIcons.Images.Add(Image.FromFile("new.png"));
        toolBarIcons.Images.Add(Image.FromFile("exit.png"));

        CenterToScreen();
    }
Example #6
0
 public override bool Execute()
 {
     ActiveDisplay.Delete();
       var images = new ImageList();
       ActiveImage = images[images.Count - 1];
       return true;
 }
        static BooProjectNode()
        {
            imageList =
                Utilities.GetImageList(
                typeof(BooProjectNode).Assembly.GetManifestResourceStream(
                "Boo.BooLangProject.Resources.BooProjectNode.bmp"));

            ImageList booFileNodeImageList;
            string booFileResourceString = "Boo.BooLangProject.Resources.BooFileNode.bmp";
            try
            {

                booFileNodeImageList =
                    Utilities.GetImageList(
                    typeof(BooProjectNode).Assembly.GetManifestResourceStream(
                    booFileResourceString));
            }
            catch (Exception e)
            {
                throw;
            }

            if (booFileNodeImageList.Images.Count != 1)
                throw new FileNotFoundException("Cannot find Boo FileNode Icon at: " + booFileResourceString);
            else
                imageList.Images.Add(booFileNodeImageList.Images[0]);
        }
	private ImageList GetImageList()
	{
		ImageList imageList = new ImageList();
		imageList.Images.Add(new Bitmap(typeof(DcopBrowser), "Class.bmp"));
		imageList.Images.Add(new Bitmap(typeof(DcopBrowser), "Method.bmp"));
		return imageList;
	}
Example #9
0
 /// <summary>
 /// Builds an ImageHandler object from an ImageList object.
 /// </summary>
 public ImageHandler(ImageList list)
 {
     if (null == list)
     {
         throw new ArgumentNullException("imageList");
     }
     imageList = list;
 }
Example #10
0
 public ImageList Clone() {
   ImageList n = new ImageList();
   n.images = (ArrayList)this.images.Clone();
   n.Images = new Images(n.images);
   n.transparentColor = this.transparentColor;
   n.imageSize = this.imageSize;
   return n;
 }
Example #11
0
    protected void GenerateImage()
    {
        ImageList list = new ImageList();
        list.Images.Add(new Icon("..\\..\\hd.ico"));
        list.Images.Add(new Icon("..\\..\\folder.ico"));

        ImageList = list;
    }
Example #12
0
 /// <summary>
 /// Builds an ImageHandler object from a Stream providing the bitmap that
 /// stores the images for the image list.
 /// </summary>
 public ImageHandler(Stream resourceStream)
 {
     if (null == resourceStream)
     {
         throw new ArgumentNullException("resourceStream");
     }
     imageList = Utilities.GetImageList(resourceStream);
 }
Example #13
0
	public MainForm ()
	{
		string dir = AppDomain.CurrentDomain.BaseDirectory;

		// 
		// _components
		// 
		_components = new Container ();
		// 
		// _imageList
		// 
		_imageList = new ImageList (_components);
		_imageList.ImageSize = new Size (16, 8);
		_imageList.Images.Add (new Icon (Path.Combine (dir, "Folder.ico")));
		_imageList.Images.Add (new Icon (Path.Combine (dir, "Computer.ico")));
		_imageList.Images.Add (new Icon (Path.Combine (dir, "Services.ico")));
		_imageList.TransparentColor = Color.Transparent;
		// 
		// _tabControl
		// 
		_tabControl = new TabControl ();
		_tabControl.Dock = DockStyle.Top;
		_tabControl.Height = 50;
		_tabControl.HotTrack = true;
		_tabControl.ImageList = _imageList;
		_tabControl.SelectedIndex = 1;
		Controls.Add (_tabControl);
		// 
		// _folderTab
		// 
		_folderTab = new TabPage ();
		_folderTab.Height = 100;
		_folderTab.ImageIndex = 0;
		_folderTab.Text = "Folder";
		_tabControl.Controls.Add (_folderTab);
		// 
		// _computerTab
		// 
		_computerTab = new TabPage ();
		_computerTab.ImageIndex = 1;
		_computerTab.Text = "Computer";
		_tabControl.Controls.Add (_computerTab);
		// 
		// _servicesTab
		// 
		_servicesTab = new TabPage ();
		_servicesTab.ImageIndex = 2;
		_servicesTab.Text = "Services";
		_tabControl.Controls.Add (_servicesTab);
		// 
		// MainForm
		// 
		ClientSize = new Size (300, 50);
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #81837";
		Load += new EventHandler (MainForm_Load);
	}
Example #14
0
 public AssetCompilerProgram(AssetCompilerForm ac)
 {
     form = ac;
     assetListView = form.list_assets;
     imageList = form.list_images;
     textGroup = assetListView.Groups[0];
     textureGroup = assetListView.Groups[1];
     referenceGroup = assetListView.Groups[2];
 }
Example #15
0
	static void Main ()
	{
		ResourceManager resMgr = new ResourceManager (typeof (MainForm));
		
		ImageList imgList = new ImageList ();
		imgList.ColorDepth = ColorDepth.Depth16Bit;
		imgList.ImageSize = new Size (16, 16);
		imgList.ImageStream = ((ImageListStreamer) (resMgr.GetObject ("Locs.ImageStream")));
		imgList.TransparentColor = Color.Transparent;
	}
        public ControlRequestHeaderSetting()
        {
            InitializeComponent();
            this.Dock = System.Windows.Forms.DockStyle.Fill;

            ImageList ImgList = new ImageList();
            ImgList.ImageSize = new Size(1, 25);
            lv_header.SmallImageList = ImgList;

            rightMenu_Header.Opening += rightMenu_Header_Opening;
            lv_header.AfterEditSubItem += lv_header_AfterEditSubItem;
        }
Example #17
0
 /// <summary>
 /// cicles an image list object to convert contained images into xpm
 /// at the same time we add converted images into an arraylist that lets us to retrieve images later	
 /// </summary>
 /// <param name="imageList">The image list to transform.</param>
 /// <param name="transparentColor">The overriding transparent Color</param>
 /// <returns></returns>
 static public List<string> ConvertToXPM(ImageList imageList, string transparentColor)
 {
     List<string> xpmImages = new List<string>();
     foreach (Image image in imageList.Images)
     {
         if (image is Bitmap)
         {
             xpmImages.Add(ConvertToXPM(image as Bitmap, transparentColor));
         }
     }
     return xpmImages;
 }
Example #18
0
File: test.cs Project: mono/gert
	static int Main ()
	{
		Bitmap b = new Bitmap (1, 1);
		b.SetPixel (0, 0, Color.FromArgb (0, 128, 0));

		ImageList il = new ImageList ();
		il.Images.Add (b);

		if (Color.FromArgb (0, 128, 0) != (il.Images [0] as Bitmap).GetPixel (0, 0))
			return 1;
		return 0;
	}
    public StatusStripExam()
    {
        this.Text = "StatusStrip 예제";

        ImageList imglst = new ImageList();
        imglst.TransparentColor = Color.Black;
        imglst.Images.Add("Color", new Bitmap(GetType(), "StatusStripExam.ColorHS.BMP"));
        imglst.Images.Add("Comment", new Bitmap(GetType(), "StatusStripExam.CommentHS.bmp"));

        StatusStrip status = new StatusStrip();
        status.Parent = this;
        status.ImageList = imglst;

        color_btn = new ToolStripButton();
        color_btn.Image = imglst.Images[0];
        color_btn.Click += EventProc;
        status.Items.Add(color_btn);

        comment_btn = new ToolStripButton();
        comment_btn.ImageKey = "Comment";
        comment_btn.Click += EventProc;
        status.Items.Add(comment_btn);

        // 메뉴 구분선 넣기
        ToolStripSeparator item_sep = new ToolStripSeparator();
        status.Items.Add(item_sep);

        txt_box = new ToolStripComboBox();
        txt_box.ToolTipText = "글꼴 선택";
        txt_box.Text = "글꼴 선택";
        txt_box.Items.Add("궁서체");
        txt_box.Items.Add("돋움체");
        txt_box.Items.Add("바탕체");
        status.Items.Add(txt_box);

        label = new ToolStripLabel();
        label.Size = new Size(100, 10);
        status.Items.Add(label);

        // 프로그래스바 설정
        prog_bar = new ToolStripProgressBar();

        prog_bar.Size = new Size(100, 10);
        prog_bar.Maximum = 100;
        prog_bar.Minimum = 0;
        status.Items.Add(prog_bar);

        Timer timer = new Timer();
        timer.Tick += new EventHandler(TimerProc);
        timer.Interval = 1000;
        timer.Start();
    }
    public static Icon GetIcon(string strPath, bool selected, ImageList imageList)
    {
        SHFILEINFO info = new SHFILEINFO(true);
            int cbFileInfo = Marshal.SizeOf(info);
            SHGFI flags;
            if (!selected)
                flags = SHGFI.SHGFI_ICON | SHGFI.SHGFI_SMALLICON;
            else
                flags = SHGFI.SHGFI_ICON | SHGFI.SHGFI_SMALLICON | SHGFI.SHGFI_OPENICON;

            SHGetFileInfo(strPath, 256, out info, (uint)cbFileInfo, flags);
            return Icon.FromHandle(info.hIcon);
    }
    public ToolStripExam()
    {
        this.Text = "ToolStrip 예제";

        // 이미지리스트 초기화
        ImageList imglst = new ImageList();
        imglst.TransparentColor = Color.Black;
        imglst.Images.Add("Copy", new Bitmap(GetType(), "ToolStripExam.CopyHS.bmp"));
        imglst.Images.Add("CopyFolder", new Bitmap(GetType(), "ToolStripExam.CopyFolderHS.bmp"));
        imglst.Images.Add("Cut", new Bitmap(GetType(), "ToolStripExam.CutHS.bmp"));

        // 툴바 생성
        ToolStrip tool = new ToolStrip();
        tool.Parent = this;     // 부모
        tool.ImageList = imglst;// 이미지 리스트 설정

        // 1. 툴바에 버튼 생성
        copy_btn = new ToolStripButton();
        copy_btn.ToolTipText = "복사";
        copy_btn.Image = imglst.Images[0];  // 이미지 설정1
        copy_btn.Click += EventProc;
        tool.Items.Add(copy_btn);

        // 2. 툴바에 버튼 생성
        copyfolder_btn = new ToolStripButton();
        copyfolder_btn.ToolTipText = "디렉토리 복사";
        copyfolder_btn.ImageKey = "CopyFolder"; //이미지설정2
        copyfolder_btn.Click += EventProc;
        tool.Items.Add(copyfolder_btn);

        // 3. 메뉴 구분선 넣기
        ToolStripSeparator item_sep = new ToolStripSeparator();
        tool.Items.Add(item_sep);

        // 4. 툴바에 버튼 생성
        cut_btn = new ToolStripButton();
        cut_btn.ToolTipText = "오려두기";
        cut_btn.ImageIndex = 2;         // 이미지설정3
        cut_btn.Click += EventProc;
        tool.Items.Add(cut_btn);

        // 5. 툴바에 콤보박스 추가
        txt_box = new ToolStripComboBox();
        txt_box.ToolTipText = "글꼴 선택";
        txt_box.Text = "글꼴 선택";
        txt_box.Items.Add("궁서체");
        txt_box.Items.Add("돋움체");
        txt_box.Items.Add("바탕체");
        txt_box.Click += FontDrawProc;
        tool.Items.Add(txt_box);
    }
Example #22
0
	public MainForm ()
	{
		string dir = AppDomain.CurrentDomain.BaseDirectory;
		// 
		// _components
		// 
		_components = new Container ();
		// 
		// _imageList
		// 
		_imageList = new ImageList (_components);
		_imageList.ImageSize = new Size (16, 16);
		_imageList.Images.Add (new Icon (Path.Combine (dir, "Computer.ico")).ToBitmap ());
		_imageList.Images.Add (new Icon (Path.Combine (dir, "Computer.ico")));
		_imageList.TransparentColor = Color.Transparent;
		// 
		// _tabControl
		// 
		_tabControl = new TabControl ();
		_tabControl.Dock = DockStyle.Fill;
		_tabControl.HotTrack = true;
		_tabControl.ImageList = _imageList;
		_tabControl.SelectedIndex = 1;
		Controls.Add (_tabControl);
		// 
		// _myComputerTab
		// 
		_myComputerTab = new TabPage ();
		_myComputerTab.Height = 100;
		_myComputerTab.ImageIndex = 0;
		_myComputerTab.Text = "My Computer";
		_tabControl.Controls.Add (_myComputerTab);
		// 
		// _remoteComputerTab
		// 
		_remoteComputerTab = new TabPage ();
		_remoteComputerTab.ImageIndex = 1;
		_remoteComputerTab.Text = "Remote Computer";
		_tabControl.Controls.Add (_remoteComputerTab);
		// 
		// MainForm
		// 
		ClientSize = new Size (300, 90);
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #82486";
		Load += new EventHandler (MainForm_Load);
	}
        public override bool Execute()
        {
            ImageList images = new ImageList();
              int index = images.GetIndex(ActiveImage);

              int newIndex = index + _offset;

              // Fix me: should we wrap around?

              if (newIndex > 0 && newIndex < images.Count)
            {
              ActiveImage = images[newIndex];
            }

              return true;
        }
Example #24
0
 private void InitializeComponent()
 {
     ImageList imgList = new ImageList();
     imgList.Images.Add(base.GetType().Assembly, "HelloWorld.Properties.Resources.resources", "Settings");
     imgList.Images.Add(base.GetType().Assembly, "HelloWorld.Properties.Resources.resources", "About");
     this.ImageList = imgList;
     MenuPage menuPage = new MenuPage();
     menuPage.Buttons[0].Text = "Settings";
     menuPage.Buttons[0].ImageIndex = 0;
     menuPage.Buttons[0].Enabled = true;
     menuPage.Buttons[0].Click += new System.ComponentModel.CancelEventHandler(MenuViewSettings_Click);
     menuPage.Buttons[1].Text = "About";
     menuPage.Buttons[1].ImageIndex = 1;
     menuPage.Buttons[1].Enabled = true;
     menuPage.Buttons[1].Click += new System.ComponentModel.CancelEventHandler(MenuViewAbout_Click);
     this.TabPages.Add(menuPage);
 }
Example #25
0
        public static void Main ()
        {
                Bitmap b = new Bitmap (250, 20);
                ImageList il = new ImageList ();

                il.ColorDepth = ColorDepth.Depth32Bit;
                il.ImageSize = new Size (15, 15);

                il.Images.Add (Image.FromFile ("a.png"));
                il.Images.Add (Image.FromFile ("b.png"));

                Graphics g = Graphics.FromImage (b);
                il.Draw (g, 5, 3, 0);
                g.DrawString ("aaa", new Font ("arial", 15), new SolidBrush (Color.Red), new Point (20, 5));
                il.Draw (g, 50, 3, 1);

                b.Save ("image.bmp");
        }
Example #26
0
        private void InitializeComponent()
        {
            this.Title.Text = "ListView example";

            ImageList imgList = new ImageList();
            imgList.Images.Add(base.GetType().Assembly, "HelloWorld.Properties.Resources.resources", "Happy");
            imgList.Images.Add(base.GetType().Assembly, "HelloWorld.Properties.Resources.resources", "Smile");
            imgList.Images.Add(base.GetType().Assembly, "HelloWorld.Properties.Resources.resources", "Tongue");
            this.ImageList = imgList;

            ListViewItem listItem1 = new ListViewItem("Example item 1", 0, "Example item 1 selected");
            ListViewItem listItem2 = new ListViewItem("Example item 2", 1, "Example item 2 selected");
            ListViewItem listItem3 = new ListViewItem("Example item 3", 2, "Example item 3 selected");

            Items.Add(listItem1);
            Items.Add(listItem2);
            Items.Add(listItem3);

            this.Click += new EventHandler(SettingsView_Click);
        }
 private void LoadIcon()
 {
     imglst = new ImageList();
     imglst.Images.Add("Messages", new Icon(GetType(), "ImageTreeview.Messages.ico"));
     imglst.Images.Add("blackcd", new Icon(GetType(), "ImageTreeview.blankcd.ico"));
     imglst.Images.Add("camera", new Icon(GetType(), "ImageTreeview.camera.ico"));
     imglst.Images.Add("cellphone", new Icon(GetType(), "ImageTreeview.cellphone.ico"));
     imglst.Images.Add("fax", new Icon(GetType(), "ImageTreeview.fax.ico"));
     imglst.Images.Add("search", new Icon(GetType(), "ImageTreeview.search.ico"));
     imglst.Images.Add("search4doc", new Icon(GetType(), "ImageTreeview.search4doc.ico"));
     imglst.Images.Add("search4files", new Icon(GetType(), "ImageTreeview.search4files.ico"));
     imglst.Images.Add("search4people", new Icon(GetType(), "ImageTreeview.search4people.ico"));
     imglst.Images.Add("search4printer", new Icon(GetType(), "ImageTreeview.search4printer.ico"));
     imglst.Images.Add("searchweb", new Icon(GetType(), "ImageTreeview.searchweb.ico"));
     imglst.Images.Add("servicepaused", new Icon(GetType(), "ImageTreeview.servicepaused.ico"));
     imglst.Images.Add("servicerunning", new Icon(GetType(), "ImageTreeview.servicerunning.ico"));
     imglst.Images.Add("services", new Icon(GetType(), "ImageTreeview.services.ico"));
     imglst.Images.Add("servicestopped", new Icon(GetType(), "ImageTreeview.servicestopped.ico"));
     imglst.Images.Add("serviceunknown", new Icon(GetType(), "ImageTreeview.serviceunknown.ico"));
 }
Example #28
0
    public static int GetIconIndex(string strPath, ImageList imgList)
    {
        SHFILEINFO info = new SHFILEINFO(true);
        int cbFileInfo = Marshal.SizeOf(info);
        SHGFI flags;
        IntPtr hIcon;

        flags = SHGFI.SHGFI_SYSICONINDEX | SHGFI.SHGFI_SMALLICON;

        IntPtr ret = SHGetFileInfo("c:\\", 256, out info, (uint)cbFileInfo, flags);
        int nbIcon = ImageList_GetImageCount(ret);

        for (int i = 0; i < nbIcon; i++)
        {
            hIcon = ImageList_GetIcon(ret, i, 0);
            imgList.Images.Add(Icon.FromHandle(hIcon));
        }

        return info.iIcon;
    }
Example #29
0
        /// <summary>
        /// Closes the ImageHandler object freeing its resources.
        /// </summary>
        public void Close()
        {
            if (null != iconHandles)
            {
                foreach (IntPtr hnd in iconHandles)
                {
                    if (hnd != IntPtr.Zero)
                    {
                        NativeMethods.DestroyIcon(hnd);
                    }
                }
                iconHandles = null;
            }

            if (null != imageList)
            {
                imageList.Dispose();
                imageList = null;
            }
        }
        void WebRequestCallback(IAsyncResult result)
        {
            Device.BeginInvokeOnMainThread(() =>
            {
                try
                {
                    Stream stream = request.EndGetResponse(result).GetResponseStream();

                    // Deserialize the JSON into imageList;
                    var jsonSerializer = new DataContractJsonSerializer(typeof(ImageList));
                    imageList = (ImageList)jsonSerializer.ReadObject(stream);

                    if (imageList.Photos.Count > 0)
                        FetchPhoto();
                }
                catch (Exception exc)
                {
                    filenameLabel.Text = exc.Message;
                }
            });
        }
Example #31
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.chartControl1     = new Syncfusion.Windows.Forms.Chart.ChartControl();
     this.panel1            = new System.Windows.Forms.Panel();
     this.radioButton3      = new System.Windows.Forms.RadioButton();
     this.checkBox2         = new System.Windows.Forms.CheckBox();
     this.comboBox2         = new System.Windows.Forms.ComboBox();
     this.label4            = new System.Windows.Forms.Label();
     this.radioButton1      = new System.Windows.Forms.RadioButton();
     this.radioButton2      = new System.Windows.Forms.RadioButton();
     this.label22           = new System.Windows.Forms.Label();
     this.checkBox1         = new System.Windows.Forms.CheckBox();
     this.comboBoxChartType = new System.Windows.Forms.ComboBox();
     this.label2            = new System.Windows.Forms.Label();
     this.label1            = new System.Windows.Forms.Label();
     this.comboBox1         = new System.Windows.Forms.ComboBox();
     this.numericUpDown1    = new System.Windows.Forms.NumericUpDown();
     this.label3            = new System.Windows.Forms.Label();
     this.imageList1        = new System.Windows.Forms.ImageList(this.components);
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
     this.SuspendLayout();
     //
     // chartControl1
     //
     this.chartControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                        | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.chartControl1.BackInterior             = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(237)))), ((int)(((byte)(254))))), System.Drawing.Color.White);
     this.chartControl1.ChartArea.BackInterior   = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, System.Drawing.Color.Transparent, System.Drawing.Color.Transparent);
     this.chartControl1.ChartArea.CursorLocation = new System.Drawing.Point(0, 0);
     this.chartControl1.ChartArea.CursorReDraw   = false;
     this.chartControl1.ChartAreaMargins         = new Syncfusion.Windows.Forms.Chart.ChartMargins(5, 15, 15, 5);
     this.chartControl1.ChartInterior            = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, System.Drawing.Color.FromArgb(((int)(((byte)(165)))), ((int)(((byte)(194)))), ((int)(((byte)(229))))), System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(236)))), ((int)(((byte)(250))))));
     this.chartControl1.DataSourceName           = "";
     this.chartControl1.ElementsSpacing          = 1;
     this.chartControl1.Font         = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.chartControl1.IsWindowLess = false;
     //
     //
     //
     this.chartControl1.Legend.BackInterior     = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, System.Drawing.Color.Transparent, System.Drawing.Color.Transparent);
     this.chartControl1.Legend.Border.ForeColor = System.Drawing.Color.Transparent;
     this.chartControl1.Legend.Font             = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.chartControl1.Legend.ItemsSize        = new System.Drawing.Size(15, 15);
     this.chartControl1.Legend.Location         = new System.Drawing.Point(32, 53);
     this.chartControl1.Legend.Orientation      = Syncfusion.Windows.Forms.Chart.ChartOrientation.Horizontal;
     this.chartControl1.Legend.Position         = Syncfusion.Windows.Forms.Chart.ChartDock.Top;
     this.chartControl1.Legend.ShowSymbol       = true;
     this.chartControl1.Legend.Spacing          = 3;
     this.chartControl1.Localize = null;
     this.chartControl1.Location = new System.Drawing.Point(0, 0);
     this.chartControl1.Name     = "chartControl1";
     this.chartControl1.PrimaryXAxis.Crossing = double.NaN;
     this.chartControl1.PrimaryXAxis.Font     = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.chartControl1.PrimaryXAxis.GridLineType.ForeColor = System.Drawing.Color.Silver;
     this.chartControl1.PrimaryXAxis.LineType.ForeColor     = System.Drawing.Color.DarkGray;
     this.chartControl1.PrimaryXAxis.Margin   = true;
     this.chartControl1.PrimaryYAxis.Crossing = double.NaN;
     this.chartControl1.PrimaryYAxis.Font     = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.chartControl1.PrimaryYAxis.GridLineType.ForeColor = System.Drawing.Color.Silver;
     this.chartControl1.PrimaryYAxis.LineType.ForeColor     = System.Drawing.Color.DarkGray;
     this.chartControl1.PrimaryYAxis.Margin = true;
     this.chartControl1.Rotation            = 90F;
     this.chartControl1.Size     = new System.Drawing.Size(700, 569);
     this.chartControl1.TabIndex = 0;
     this.chartControl1.Text     = "EssentialChart";
     //
     //
     //
     this.chartControl1.Title.Name = "Def_title";
     this.chartControl1.Title.Text = "EssentialChart";
     this.chartControl1.Titles.Add(this.chartControl1.Title);
     //
     // panel1
     //
     this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.panel1.BackColor = System.Drawing.Color.WhiteSmoke;
     this.panel1.Controls.Add(this.radioButton3);
     this.panel1.Controls.Add(this.checkBox2);
     this.panel1.Controls.Add(this.comboBox2);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.radioButton1);
     this.panel1.Controls.Add(this.radioButton2);
     this.panel1.Controls.Add(this.label22);
     this.panel1.Controls.Add(this.checkBox1);
     this.panel1.Controls.Add(this.comboBoxChartType);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.comboBox1);
     this.panel1.Controls.Add(this.numericUpDown1);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Font     = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.panel1.Location = new System.Drawing.Point(700, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(260, 585);
     this.panel1.TabIndex = 3;
     //
     // radioButton3
     //
     this.radioButton3.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.radioButton3.Font            = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.radioButton3.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.radioButton3.Location        = new System.Drawing.Point(36, 198);
     this.radioButton3.Name            = "radioButton3";
     this.radioButton3.Size            = new System.Drawing.Size(112, 24);
     this.radioButton3.TabIndex        = 13;
     this.radioButton3.Text            = "France";
     this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged);
     //
     // checkBox2
     //
     this.checkBox2.AutoSize  = true;
     this.checkBox2.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.checkBox2.Location  = new System.Drawing.Point(36, 484);
     this.checkBox2.Name      = "checkBox2";
     this.checkBox2.Size      = new System.Drawing.Size(96, 24);
     this.checkBox2.TabIndex  = 12;
     this.checkBox2.Text      = "Enable 3D";
     this.checkBox2.UseVisualStyleBackColor = true;
     this.checkBox2.CheckedChanged         += new System.EventHandler(this.checkBox2_CheckedChanged);
     //
     // comboBox2
     //
     this.comboBox2.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox2.FlatStyle             = System.Windows.Forms.FlatStyle.System;
     this.comboBox2.Font                  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.comboBox2.ForeColor             = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.comboBox2.Location              = new System.Drawing.Point(36, 270);
     this.comboBox2.Name                  = "comboBox2";
     this.comboBox2.Size                  = new System.Drawing.Size(180, 28);
     this.comboBox2.TabIndex              = 11;
     this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
     //
     // label4
     //
     this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label4.AutoSize  = true;
     this.label4.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.label4.Location  = new System.Drawing.Point(33, 236);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(162, 20);
     this.label4.TabIndex  = 10;
     this.label4.Text      = "Legend Representation";
     //
     // radioButton1
     //
     this.radioButton1.Checked         = true;
     this.radioButton1.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.radioButton1.Font            = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.radioButton1.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.radioButton1.Location        = new System.Drawing.Point(36, 131);
     this.radioButton1.Name            = "radioButton1";
     this.radioButton1.Size            = new System.Drawing.Size(82, 28);
     this.radioButton1.TabIndex        = 0;
     this.radioButton1.TabStop         = true;
     this.radioButton1.Text            = "Italy";
     this.radioButton1.CheckedChanged += new System.EventHandler(this.radiobutton1_SeriesType_CheckedChanged);
     //
     // radioButton2
     //
     this.radioButton2.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.radioButton2.Font            = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.radioButton2.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.radioButton2.Location        = new System.Drawing.Point(36, 163);
     this.radioButton2.Name            = "radioButton2";
     this.radioButton2.Size            = new System.Drawing.Size(140, 28);
     this.radioButton2.TabIndex        = 1;
     this.radioButton2.Text            = "Spain";
     this.radioButton2.CheckedChanged += new System.EventHandler(this.radiobutton2_SeriesType_CheckedChanged);
     //
     // label22
     //
     this.label22.AutoSize  = true;
     this.label22.BackColor = System.Drawing.Color.Transparent;
     this.label22.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label22.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.label22.Location  = new System.Drawing.Point(32, 99);
     this.label22.Name      = "label22";
     this.label22.Size      = new System.Drawing.Size(87, 20);
     this.label22.TabIndex  = 8;
     this.label22.Text      = "Chart Series";
     //
     // checkBox1
     //
     this.checkBox1.Font            = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox1.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.checkBox1.Location        = new System.Drawing.Point(36, 449);
     this.checkBox1.Name            = "checkBox1";
     this.checkBox1.Size            = new System.Drawing.Size(207, 29);
     this.checkBox1.TabIndex        = 7;
     this.checkBox1.Text            = "Points in different Color";
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // comboBoxChartType
     //
     this.comboBoxChartType.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxChartType.FlatStyle             = System.Windows.Forms.FlatStyle.System;
     this.comboBoxChartType.Font                  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.comboBoxChartType.ForeColor             = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.comboBoxChartType.Location              = new System.Drawing.Point(35, 60);
     this.comboBoxChartType.Name                  = "comboBoxChartType";
     this.comboBoxChartType.Size                  = new System.Drawing.Size(184, 28);
     this.comboBoxChartType.TabIndex              = 6;
     this.comboBoxChartType.SelectedIndexChanged += new System.EventHandler(this.comboBoxChartType_SelectedIndexChanged);
     //
     // label2
     //
     this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label2.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.label2.Location  = new System.Drawing.Point(36, 383);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(88, 30);
     this.label2.TabIndex  = 5;
     this.label2.Text      = "Width";
     //
     // label1
     //
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.label1.Location  = new System.Drawing.Point(36, 312);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(93, 20);
     this.label1.TabIndex  = 4;
     this.label1.Text      = "Dash Style";
     //
     // comboBox1
     //
     this.comboBox1.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox1.FlatStyle             = System.Windows.Forms.FlatStyle.System;
     this.comboBox1.Font                  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.comboBox1.ForeColor             = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.comboBox1.Location              = new System.Drawing.Point(36, 342);
     this.comboBox1.Name                  = "comboBox1";
     this.comboBox1.Size                  = new System.Drawing.Size(180, 28);
     this.comboBox1.TabIndex              = 3;
     this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
     //
     // numericUpDown1
     //
     this.numericUpDown1.BackColor = System.Drawing.Color.White;
     this.numericUpDown1.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.numericUpDown1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.numericUpDown1.Location  = new System.Drawing.Point(36, 414);
     this.numericUpDown1.Maximum   = new decimal(new int[] {
         5,
         0,
         0,
         0
     });
     this.numericUpDown1.Minimum = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.numericUpDown1.Name     = "numericUpDown1";
     this.numericUpDown1.ReadOnly = true;
     this.numericUpDown1.Size     = new System.Drawing.Size(178, 27);
     this.numericUpDown1.TabIndex = 2;
     this.numericUpDown1.Value    = new decimal(new int[] {
         2,
         0,
         0,
         0
     });
     this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
     //
     // label3
     //
     this.label3.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label3.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.label3.Location  = new System.Drawing.Point(35, 30);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(100, 26);
     this.label3.TabIndex  = 5;
     this.label3.Text      = "Chart Type";
     //
     // imageList1
     //
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "server_from_client.png");
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.Color.White;
     this.ClientSize        = new System.Drawing.Size(954, 581);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.chartControl1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MinimumSize   = new System.Drawing.Size(705, 463);
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Line";
     this.Load         += new System.EventHandler(this.Form1_Load);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
     this.ResumeLayout(false);
 }
Example #32
0
 public MenuCommand(string text, ImageList imageList, int imageIndex,
                    Shortcut shortcut, EventHandler clickHandler)
 {
     InternalConstruct(text, imageList, imageIndex, shortcut, clickHandler, null, null);
 }
Example #33
0
        protected override void Paint(Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates elementState, object value, object formattedValue, string errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts)
        {
            try
            {
                object o;
                o = value;

                base.Paint(graphics, clipBounds, cellBounds, rowIndex, elementState, "", "", errorText, cellStyle, advancedBorderStyle,
                           paintParts);

                //load Icons from resources
                //arrows
                ImageList GridIcons = new ImageList();
                //System.IO.Stream strm;
                string iconName;
                Icon   icon;

                //UP
                iconName = "AC.ExtendedRenderer.Toolkit.StdControls.Images.Up.ico";
                icon     = new Icon(this.GetType().Assembly.GetManifestResourceStream(iconName));
                GridIcons.Images.Add(icon.ToBitmap());
                //Down
                iconName = "AC.ExtendedRenderer.Toolkit.StdControls.Images.Down.ico";
                icon     = new Icon(this.GetType().Assembly.GetManifestResourceStream(iconName));
                GridIcons.Images.Add(icon.ToBitmap());
                //Equal
                iconName = "AC.ExtendedRenderer.Toolkit.StdControls.Images.Eq.ico";
                icon     = new Icon(this.GetType().Assembly.GetManifestResourceStream(iconName));
                GridIcons.Images.Add(icon.ToBitmap());
                //Na
                //iconName = "AC.Utils.Na.ico"
                iconName = "AC.ExtendedRenderer.Toolkit.StdControls.Images.Na2.ico";
                icon     = new Icon(this.GetType().Assembly.GetManifestResourceStream(iconName));
                GridIcons.Images.Add(icon.ToBitmap());

                int ngXlocation = (cellBounds.Width - 16);
                int ngYlocation = (cellBounds.Height - 16);
                if (ngXlocation < 0)
                {
                    ngXlocation = 0;
                }
                if (ngYlocation < 0)
                {
                    ngYlocation = 0;
                }
                ngXlocation = ngXlocation / 2;
                ngYlocation = ngYlocation / 2;

                Rectangle ng = new Rectangle(cellBounds.X + ngXlocation, cellBounds.Y + ngYlocation, 16, 16);

                if ((((o) != null)))
                {
                    Single c;
                    c = Conversions.ToSingle(o);
                    //Debug
                    //MessageBox.Show(c)

                    Brush backBrush = new SolidBrush(cellStyle.BackColor);

                    if (elementState == DataGridViewElementStates.Selected)
                    {
                        backBrush = new SolidBrush(Color.Gold);
                    }

                    //erase background
                    if (c == 1)
                    {
                        //graphics.FillRectangle(backBrush, cellBounds.X, cellBounds.Y, cellBounds.Width, cellBounds.Height)
                        graphics.DrawImage(GridIcons.Images[0], ng);
                    }
                    else if (c == -1)
                    {
                        //graphics.FillRectangle(backBrush, cellBounds.X, cellBounds.Y, cellBounds.Width, cellBounds.Height)
                        graphics.DrawImage(GridIcons.Images[1], ng);
                    }
                    else if (c == 0)
                    {
                        //graphics.FillRectangle(backBrush, cellBounds.X, cellBounds.Y, cellBounds.Width, cellBounds.Height)
                        graphics.DrawImage(GridIcons.Images[2], ng);
                    }
                    else if (c == 2)
                    {
                        //graphics.FillRectangle(backBrush, cellBounds.X, cellBounds.Y, cellBounds.Width, cellBounds.Height)
                        graphics.DrawImage(GridIcons.Images[3], ng);
                    }
                    else
                    {
                        //graphics.FillRectangle(backBrush, cellBounds.X, cellBounds.Y, cellBounds.Width, cellBounds.Height)
                    }
                }

                PaintBorder(graphics, clipBounds, cellBounds, cellStyle, advancedBorderStyle);
            }
            catch
            {
                // empty catch
                //MessageBox.Show(ex.Message)
                base.Paint(graphics, clipBounds, cellBounds, rowIndex, elementState, value, formattedValue, errorText, cellStyle, advancedBorderStyle,
                           paintParts);
                PaintBorder(graphics, clipBounds, cellBounds, cellStyle, advancedBorderStyle);
            }
        }
Example #34
0
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            var resources        = new System.ComponentModel.ComponentResourceManager(typeof(FrmAddEditRegionCity));
            var BorderEdges1     = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges();
            var StateProperties1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties();
            var StateProperties2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties();
            var BorderEdges2     = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges();
            var StateProperties3 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties();
            var StateProperties4 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties();

            _tbSave              = new Bunifu.UI.WinForms.BunifuButton.BunifuButton();
            _tbSave.Click       += new EventHandler(tbSave_Click);
            Label7               = new Label();
            tbCityName           = new TextBox();
            Label3               = new Label();
            _cancelButton        = new Bunifu.UI.WinForms.BunifuButton.BunifuButton();
            _cancelButton.Click += new EventHandler(cancelButton_Click);
            ImageList2           = new ImageList(components);
            BunifuElipse1        = new Bunifu.Framework.UI.BunifuElipse(components);
            ImageList1           = new ImageList(components);
            Label1               = new Label();
            Label2               = new Label();
            tbCityCode           = new TextBox();
            Label4               = new Label();
            lblCountry           = new Label();
            cboRegionCode        = new ComboBox();
            SuspendLayout();
            //
            // tbSave
            //
            _tbSave.AllowToggling        = false;
            _tbSave.AnimationSpeed       = 200;
            _tbSave.AutoGenerateColors   = false;
            _tbSave.BackColor            = Color.Transparent;
            _tbSave.BackColor1           = Color.Teal;
            _tbSave.BackgroundImage      = (Image)resources.GetObject("tbSave.BackgroundImage");
            _tbSave.BorderStyle          = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid;
            _tbSave.ButtonText           = "Save";
            _tbSave.ButtonTextMarginLeft = 0;
            _tbSave.ColorContrastOnClick = 45;
            _tbSave.ColorContrastOnHover = 45;
            _tbSave.Cursor              = Cursors.Hand;
            BorderEdges1.BottomLeft     = true;
            BorderEdges1.BottomRight    = true;
            BorderEdges1.TopLeft        = true;
            BorderEdges1.TopRight       = true;
            _tbSave.CustomizableEdges   = BorderEdges1;
            _tbSave.DialogResult        = DialogResult.None;
            _tbSave.DisabledBorderColor = Color.Empty;
            _tbSave.DisabledFillColor   = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)));
            _tbSave.DisabledForecolor   = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168)));
            _tbSave.FocusState          = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed;
            _tbSave.Font                         = new Font("Segoe UI Semibold", 11.12727f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0));
            _tbSave.ForeColor                    = Color.White;
            _tbSave.IconLeftCursor               = Cursors.Hand;
            _tbSave.IconMarginLeft               = 11;
            _tbSave.IconPadding                  = 10;
            _tbSave.IconRightCursor              = Cursors.Hand;
            _tbSave.IdleBorderColor              = Color.Teal;
            _tbSave.IdleBorderRadius             = 3;
            _tbSave.IdleBorderThickness          = 1;
            _tbSave.IdleFillColor                = Color.Teal;
            _tbSave.IdleIconLeftImage            = null;
            _tbSave.IdleIconRightImage           = null;
            _tbSave.IndicateFocus                = true;
            _tbSave.Location                     = new Point(176, 198);
            _tbSave.Name                         = "_tbSave";
            StateProperties1.BorderColor         = Color.MediumTurquoise;
            StateProperties1.BorderRadius        = 3;
            StateProperties1.BorderStyle         = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid;
            StateProperties1.BorderThickness     = 1;
            StateProperties1.FillColor           = Color.MediumTurquoise;
            StateProperties1.ForeColor           = Color.White;
            StateProperties1.IconLeftImage       = null;
            StateProperties1.IconRightImage      = null;
            _tbSave.onHoverState                 = StateProperties1;
            StateProperties2.BorderColor         = Color.Teal;
            StateProperties2.BorderRadius        = 3;
            StateProperties2.BorderStyle         = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid;
            StateProperties2.BorderThickness     = 1;
            StateProperties2.FillColor           = Color.Teal;
            StateProperties2.ForeColor           = Color.White;
            StateProperties2.IconLeftImage       = null;
            StateProperties2.IconRightImage      = null;
            _tbSave.OnPressedState               = StateProperties2;
            _tbSave.Size                         = new Size(90, 31);
            _tbSave.TabIndex                     = 74;
            _tbSave.TextAlign                    = ContentAlignment.MiddleCenter;
            _tbSave.TextMarginLeft               = 0;
            _tbSave.UseDefaultRadiusAndThickness = true;
            //
            // Label7
            //
            Label7.AutoSize  = true;
            Label7.Font      = new Font("Segoe UI Semibold", 14.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0));
            Label7.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0)));
            Label7.Location  = new Point(20, 22);
            Label7.Name      = "Label7";
            Label7.Size      = new Size(118, 25);
            Label7.TabIndex  = 72;
            Label7.Text      = "Edit Address";
            //
            // tbCityName
            //
            tbCityName.Font     = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0));
            tbCityName.Location = new Point(146, 118);
            tbCityName.Name     = "tbCityName";
            tbCityName.Size     = new Size(243, 26);
            tbCityName.TabIndex = 6;
            //
            // Label3
            //
            Label3.AutoSize  = true;
            Label3.Font      = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0));
            Label3.Location  = new Point(55, 121);
            Label3.Name      = "Label3";
            Label3.Size      = new Size(85, 20);
            Label3.TabIndex  = 2;
            Label3.Text      = "City Name:";
            Label3.TextAlign = ContentAlignment.MiddleLeft;
            //
            // cancelButton
            //
            _cancelButton.AllowToggling        = false;
            _cancelButton.AnimationSpeed       = 200;
            _cancelButton.AutoGenerateColors   = false;
            _cancelButton.BackColor            = Color.Transparent;
            _cancelButton.BackColor1           = Color.White;
            _cancelButton.BackgroundImage      = (Image)resources.GetObject("cancelButton.BackgroundImage");
            _cancelButton.BorderStyle          = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid;
            _cancelButton.ButtonText           = "×";
            _cancelButton.ButtonTextMarginLeft = 0;
            _cancelButton.ColorContrastOnClick = 45;
            _cancelButton.ColorContrastOnHover = 45;
            _cancelButton.Cursor              = Cursors.Hand;
            BorderEdges2.BottomLeft           = true;
            BorderEdges2.BottomRight          = true;
            BorderEdges2.TopLeft              = true;
            BorderEdges2.TopRight             = true;
            _cancelButton.CustomizableEdges   = BorderEdges2;
            _cancelButton.DialogResult        = DialogResult.None;
            _cancelButton.DisabledBorderColor = Color.Empty;
            _cancelButton.DisabledFillColor   = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)));
            _cancelButton.DisabledForecolor   = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168)));
            _cancelButton.FocusState          = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed;
            _cancelButton.Font                         = new Font("Adobe Fan Heiti Std B", 15.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0));
            _cancelButton.ForeColor                    = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)));
            _cancelButton.IconLeftCursor               = Cursors.Hand;
            _cancelButton.IconMarginLeft               = 11;
            _cancelButton.IconPadding                  = 10;
            _cancelButton.IconRightCursor              = Cursors.Hand;
            _cancelButton.IdleBorderColor              = Color.White;
            _cancelButton.IdleBorderRadius             = 20;
            _cancelButton.IdleBorderThickness          = 1;
            _cancelButton.IdleFillColor                = Color.White;
            _cancelButton.IdleIconLeftImage            = null;
            _cancelButton.IdleIconRightImage           = null;
            _cancelButton.IndicateFocus                = true;
            _cancelButton.Location                     = new Point(426, 2);
            _cancelButton.Name                         = "_cancelButton";
            StateProperties3.BorderColor               = Color.DarkGray;
            StateProperties3.BorderRadius              = 20;
            StateProperties3.BorderStyle               = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid;
            StateProperties3.BorderThickness           = 1;
            StateProperties3.FillColor                 = Color.DarkGray;
            StateProperties3.ForeColor                 = Color.White;
            StateProperties3.IconLeftImage             = null;
            StateProperties3.IconRightImage            = null;
            _cancelButton.onHoverState                 = StateProperties3;
            StateProperties4.BorderColor               = Color.IndianRed;
            StateProperties4.BorderRadius              = 20;
            StateProperties4.BorderStyle               = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid;
            StateProperties4.BorderThickness           = 1;
            StateProperties4.FillColor                 = Color.IndianRed;
            StateProperties4.ForeColor                 = Color.White;
            StateProperties4.IconLeftImage             = null;
            StateProperties4.IconRightImage            = null;
            _cancelButton.OnPressedState               = StateProperties4;
            _cancelButton.Size                         = new Size(26, 23);
            _cancelButton.TabIndex                     = 75;
            _cancelButton.TextAlign                    = ContentAlignment.MiddleCenter;
            _cancelButton.TextMarginLeft               = 0;
            _cancelButton.UseDefaultRadiusAndThickness = true;
            //
            // ImageList2
            //
            ImageList2.ImageStream      = (ImageListStreamer)resources.GetObject("ImageList2.ImageStream");
            ImageList2.TransparentColor = Color.Transparent;
            ImageList2.Images.SetKeyName(0, "redBall.png");
            //
            // BunifuElipse1
            //
            BunifuElipse1.ElipseRadius  = 15;
            BunifuElipse1.TargetControl = this;
            //
            // ImageList1
            //
            ImageList1.ImageStream      = (ImageListStreamer)resources.GetObject("ImageList1.ImageStream");
            ImageList1.TransparentColor = Color.Transparent;
            ImageList1.Images.SetKeyName(0, "blueBall.png");
            //
            // Label1
            //
            Label1.AutoSize  = true;
            Label1.Font      = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0));
            Label1.Location  = new Point(34, 90);
            Label1.Name      = "Label1";
            Label1.Size      = new Size(106, 20);
            Label1.TabIndex  = 77;
            Label1.Text      = "Provice Code:";
            Label1.TextAlign = ContentAlignment.MiddleLeft;
            //
            // Label2
            //
            Label2.AutoSize  = true;
            Label2.Font      = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0));
            Label2.Location  = new Point(59, 151);
            Label2.Name      = "Label2";
            Label2.Size      = new Size(81, 20);
            Label2.TabIndex  = 78;
            Label2.Text      = "City Code:";
            Label2.TextAlign = ContentAlignment.MiddleLeft;
            //
            // tbCityCode
            //
            tbCityCode.Font      = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0));
            tbCityCode.Location  = new Point(146, 148);
            tbCityCode.MaxLength = 3;
            tbCityCode.Name      = "tbCityCode";
            tbCityCode.Size      = new Size(107, 26);
            tbCityCode.TabIndex  = 79;
            //
            // Label4
            //
            Label4.AutoSize  = true;
            Label4.Font      = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0));
            Label4.Location  = new Point(70, 59);
            Label4.Name      = "Label4";
            Label4.Size      = new Size(68, 20);
            Label4.TabIndex  = 80;
            Label4.Text      = "Country:";
            Label4.TextAlign = ContentAlignment.MiddleLeft;
            //
            // lblCountry
            //
            lblCountry.AutoSize  = true;
            lblCountry.BackColor = Color.SeaShell;
            lblCountry.Font      = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0));
            lblCountry.Location  = new Point(145, 57);
            lblCountry.Name      = "lblCountry";
            lblCountry.Padding   = new Padding(2);
            lblCountry.Size      = new Size(121, 24);
            lblCountry.TabIndex  = 81;
            lblCountry.Text      = "CountryName";
            lblCountry.TextAlign = ContentAlignment.MiddleLeft;
            //
            // cboRegionCode
            //
            cboRegionCode.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0));
            cboRegionCode.FormattingEnabled = true;
            cboRegionCode.Items.AddRange(new object[] { "CUSTOMER", "VENDOR", "CUSTOMER | VENDOR" });
            cboRegionCode.Location = new Point(146, 84);
            cboRegionCode.Name     = "cboRegionCode";
            cboRegionCode.Size     = new Size(120, 28);
            cboRegionCode.TabIndex = 82;
            //
            // FrmAddEditRegionCity
            //
            AutoScaleDimensions = new SizeF(6.0f, 13.0f);
            AutoScaleMode       = AutoScaleMode.Font;
            BackColor           = Color.White;
            ClientSize          = new Size(455, 254);
            Controls.Add(cboRegionCode);
            Controls.Add(lblCountry);
            Controls.Add(Label4);
            Controls.Add(tbCityCode);
            Controls.Add(Label2);
            Controls.Add(Label1);
            Controls.Add(_tbSave);
            Controls.Add(Label7);
            Controls.Add(_cancelButton);
            Controls.Add(Label3);
            Controls.Add(tbCityName);
            FormBorderStyle = FormBorderStyle.None;
            Name            = "FrmAddEditRegionCity";
            Text            = "FrmAddEditRegionCity";
            ResumeLayout(false);
            PerformLayout();
        }
Example #35
0
        private void FillListView(string directory, bool syncDirectoryTreeView)
        {
            BuildBreadcrumbs(directory);

            PathTextBox.Text = directory;

            if (m_thumbnailCreator != null)
            {
                m_thumbnailCreator.Abort();
            }

            GalleryListView.SuspendLayout();
            GalleryListView.BeginUpdate();

            GalleryListView.Items.Clear();

            var oldImageList = GalleryListView.LargeImageList;

            GalleryListView.LargeImageList = null;

            if (oldImageList != null)
            {
                oldImageList.Dispose();
            }

            var imageList = new ImageList();

            imageList.ImageSize  = new Size(c_thumbnailWidth, c_thumbnailHeight);
            imageList.ColorDepth = ColorDepth.Depth32Bit;

            List <string> files = new List <string>();

            try
            {
                foreach (string dir in Directory.EnumerateDirectories(directory))
                {
                    DirectoryInfo di = new DirectoryInfo(dir);

                    if (!di.Attributes.HasFlag(FileAttributes.Hidden) &&
                        !di.Attributes.HasFlag(FileAttributes.System) &&
                        !Path.GetFileName(dir).StartsWith("."))
                    {
                        files.Add(null);

                        ListViewItem lvi = new ListViewItem()
                        {
                            Text = Path.GetFileName(dir),
                            Tag  = new DirectoryTag(dir)
                        };

                        GalleryListView.Items.Add(lvi);
                    }
                }

                foreach (string file in Directory.EnumerateFiles(directory))
                {
                    var extension = Path.GetExtension(file).ToLower();

                    if (m_supportedExtensions.Contains(extension))
                    {
                        files.Add(file);

                        ListViewItem lvi = new ListViewItem()
                        {
                            Text = Path.GetFileName(file),
                            Tag  = new ImageTag(file)
                        };

                        GalleryListView.Items.Add(lvi);
                    }
                }

                m_thumbnailCreator = new ThumbnailCreator(files, this, c_thumbnailWidth, c_thumbnailHeight, imageList, m_thumbnailCache);
            }
            catch (Exception)
            {
            }

            GalleryListView.LargeImageList = imageList;

            GalleryListView.ResumeLayout();
            GalleryListView.EndUpdate();

            if (syncDirectoryTreeView)
            {
                OpenTreeViewToPath(directory);
            }
        }
Example #36
0
 private void Initialize(Bitmap bitmap, Shortcut shortcut, EventHandler handler, ImageList list, int imageIndex)
 {
     OwnerDraw       = true;
     this.Shortcut   = shortcut;
     icon            = bitmap;
     clickHandler    = handler;
     imageList       = list;
     this.imageIndex = imageIndex;
 }
Example #37
0
        /// <summary>
        /// Builds an ImageHandler object from an ImageList object.
        /// </summary>
        public ImageHandler(ImageList list)
        {
            Utilities.ArgumentNotNull("list", list);

            imageList = list;
        }
Example #38
0
 /// <summary>
 /// Builds an ImageHandler object from a Stream providing the bitmap that
 /// stores the images for the image list.
 /// </summary>
 public ImageHandler(Stream resourceStream)
 {
     Utilities.ArgumentNotNull("resourceStream", resourceStream);
     imageList = Utilities.GetImageList(resourceStream);
 }
Example #39
0
        public bool Init(ImageList imageList, int nHSpace, int nVSpace, int nColumns, int defaultImage)
        {
            int nRows;

            Brush bgBrush   = new SolidBrush(BackgroundColor);
            Pen   vPen      = new Pen(VLinesColor);
            Pen   hPen      = new Pen(HLinesColor);
            Pen   borderPen = new Pen(BorderColor);

            _imageList = imageList;
            _nColumns  = nColumns;

            _defaultImage = defaultImage;
            if (_defaultImage > _imageList.Images.Count)
            {
                _defaultImage = _imageList.Images.Count;
            }
            if (_defaultImage < 0)
            {
                _defaultImage = -1;
            }


            nRows = imageList.Images.Count / _nColumns;
            if (imageList.Images.Count % _nColumns > 0)
            {
                nRows++;
            }

            _nRows         = nRows;
            _nHSpace       = nHSpace;
            _nVSpace       = nVSpace;
            _nItemWidth    = _imageList.ImageSize.Width + nHSpace;
            _nItemHeight   = _imageList.ImageSize.Height + nVSpace;
            _nBitmapWidth  = _nColumns * _nItemWidth + 1;
            _nBitmapHeight = _nRows * _nItemHeight + 1;
            this.Width     = _nBitmapWidth;
            this.Height    = _nBitmapHeight;


            _Bitmap = new Bitmap(_nBitmapWidth, _nBitmapHeight);
            Graphics grfx = Graphics.FromImage(_Bitmap);

            grfx.FillRectangle(bgBrush, 0, 0, _nBitmapWidth, _nBitmapHeight);
            for (int i = 0; i < _nColumns; i++)
            {
                grfx.DrawLine(vPen, i * _nItemWidth, 0, i * _nItemWidth, _nBitmapHeight - 1);
            }
            for (int i = 0; i < _nRows; i++)
            {
                grfx.DrawLine(hPen, 0, i * _nItemHeight, _nBitmapWidth - 1, i * _nItemHeight);
            }

            grfx.DrawRectangle(borderPen, 0, 0, _nBitmapWidth - 1, _nBitmapHeight - 1);

            for (int i = 0; i < _nColumns; i++)
            {
                for (int j = 0; j < _nRows; j++)
                {
                    if ((j * _nColumns + i) < imageList.Images.Count)
                    {
                        imageList.Draw(grfx,
                                       i * _nItemWidth + _nHSpace / 2,
                                       j * _nItemHeight + nVSpace / 2,
                                       imageList.ImageSize.Width,
                                       imageList.ImageSize.Height,
                                       j * _nColumns + i);
                    }
                }
            }

            /*	int a = (_defaultImage / _nColumns);  // rad
             *      int b = (_defaultImage % _nColumns); // kolumn;
             *
             *      _nCoordX = b*(_nItemWidth+_nHSpace/2)-1;
             *      _nCoordY = a*(_nItemHeight+nVSpace/2)-1;
             */

            // Clean up
            bgBrush.Dispose();
            vPen.Dispose();
            hPen.Dispose();
            borderPen.Dispose();

            Invalidate();
            return(true);
        }
 /// <summary>
 /// Funkcja odpowiedzialna za rozbudowe
 /// </summary>
 /// <param name="progressBar"></param>
 /// <param name="timer"></param>
 /// <param name="button"></param>
 /// <param name="pictureBox"></param>
 /// <param name="imageList"></param>
 public override void Upgrade(ProgressBar progressBar, Timer timer, Button button, PictureBox pictureBox, ImageList imageList)
 {
     // Petla pobierajaca oplate za rozbudowe Magazynu i powiekszenie jego zasobow
     for (int i = 0; i < 10; i++)
     {
         if (Level == i &&
             CommonStuff.goldResources >= listStoragePrices[3 * (i - 1)] &&
             CommonStuff.lumberResources >= listStoragePrices[(3 * (i - 1)) + 1] &&
             CommonStuff.stoneResources >= listStoragePrices[(3 * (i - 1)) + 2] &&
             UpgradeProgress(progressBar, timer, button) == true)
         {
             Level++;
             CommonStuff.goldResources    -= listStoragePrices[3 * (i - 1)];
             CommonStuff.lumberResources  -= listStoragePrices[(3 * (i - 1)) + 1];
             CommonStuff.stoneResources   -= listStoragePrices[(3 * (i - 1)) + 2];
             CommonStuff.storageResources += (25 * i);
             progressBar.Visible           = false;
             progressBar.Value             = 0;
             button.Text = "Rozbuduj";
             UpdateStoragePicture(pictureBox, imageList);
         }
     }
 }
Example #41
0
 public ImageListIndexHelper()
 {
     this._imageList = new ImageList();
 }
Example #42
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.mainMenu1            = new System.Windows.Forms.MainMenu(this.components);
     this.menuItemFile         = new System.Windows.Forms.MenuItem();
     this.menuItemOpen         = new System.Windows.Forms.MenuItem();
     this.menuItem8            = new System.Windows.Forms.MenuItem();
     this.menuItemExit         = new System.Windows.Forms.MenuItem();
     this.menuItemView         = new System.Windows.Forms.MenuItem();
     this.menuItemWaveformInfo = new System.Windows.Forms.MenuItem();
     this.menuItemAudio        = new System.Windows.Forms.MenuItem();
     this.menuItemCreateAudio  = new System.Windows.Forms.MenuItem();
     this.menuItemPlayAudio    = new System.Windows.Forms.MenuItem();
     this.menuItemHelp         = new System.Windows.Forms.MenuItem();
     this.menuItemAbout        = new System.Windows.Forms.MenuItem();
     this.treeViewElements     = new System.Windows.Forms.TreeView();
     this.imageList1           = new System.Windows.Forms.ImageList(this.components);
     this.splitContainer1      = new System.Windows.Forms.SplitContainer();
     this.openFileDialog1      = new System.Windows.Forms.OpenFileDialog();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.SuspendLayout();
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItemFile,
         this.menuItemView,
         this.menuItemAudio,
         this.menuItemHelp
     });
     //
     // menuItemFile
     //
     this.menuItemFile.Index = 0;
     this.menuItemFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItemOpen,
         this.menuItem8,
         this.menuItemExit
     });
     this.menuItemFile.Text = "&File";
     //
     // menuItemOpen
     //
     this.menuItemOpen.Index  = 0;
     this.menuItemOpen.Text   = "&Open...";
     this.menuItemOpen.Click += new System.EventHandler(this.menuItemOpen_Click);
     //
     // menuItem8
     //
     this.menuItem8.Index = 1;
     this.menuItem8.Text  = "-";
     //
     // menuItemExit
     //
     this.menuItemExit.Index  = 2;
     this.menuItemExit.Text   = "&Exit";
     this.menuItemExit.Click += new System.EventHandler(this.menuItemExit_Click);
     //
     // menuItemView
     //
     this.menuItemView.Index = 1;
     this.menuItemView.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItemWaveformInfo
     });
     this.menuItemView.Text = "&View";
     //
     // menuItemWaveformInfo
     //
     this.menuItemWaveformInfo.Index  = 0;
     this.menuItemWaveformInfo.Text   = "&Waveform Info";
     this.menuItemWaveformInfo.Click += new System.EventHandler(this.menuItemWaveformInfo_Click);
     //
     // menuItemAudio
     //
     this.menuItemAudio.Index = 2;
     this.menuItemAudio.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItemCreateAudio,
         this.menuItemPlayAudio
     });
     this.menuItemAudio.Text = "Audio";
     //
     // menuItemCreateAudio
     //
     this.menuItemCreateAudio.Index  = 0;
     this.menuItemCreateAudio.Text   = "&Create Basic Voice Audio File";
     this.menuItemCreateAudio.Click += new System.EventHandler(this.menuItemCreateAudio_Click);
     //
     // menuItemPlayAudio
     //
     this.menuItemPlayAudio.Index  = 1;
     this.menuItemPlayAudio.Text   = "&Play Basic Voice Audio File";
     this.menuItemPlayAudio.Click += new System.EventHandler(this.menuItemPlayAudio_Click);
     //
     // menuItemHelp
     //
     this.menuItemHelp.Index = 3;
     this.menuItemHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItemAbout
     });
     this.menuItemHelp.Text = "&Help";
     //
     // menuItemAbout
     //
     this.menuItemAbout.Index  = 0;
     this.menuItemAbout.Text   = "&About";
     this.menuItemAbout.Click += new System.EventHandler(this.menuItemAbout_Click);
     //
     // treeViewElements
     //
     this.treeViewElements.Dock               = System.Windows.Forms.DockStyle.Fill;
     this.treeViewElements.FullRowSelect      = true;
     this.treeViewElements.HideSelection      = false;
     this.treeViewElements.ImageIndex         = 0;
     this.treeViewElements.ImageList          = this.imageList1;
     this.treeViewElements.Location           = new System.Drawing.Point(0, 0);
     this.treeViewElements.Name               = "treeViewElements";
     this.treeViewElements.SelectedImageIndex = 0;
     this.treeViewElements.Size               = new System.Drawing.Size(158, 569);
     this.treeViewElements.TabIndex           = 0;
     //
     // imageList1
     //
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "");
     this.imageList1.Images.SetKeyName(1, "");
     this.imageList1.Images.SetKeyName(2, "");
     this.imageList1.Images.SetKeyName(3, "");
     //
     // splitContainer1
     //
     this.splitContainer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name     = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.treeViewElements);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Paint    += new System.Windows.Forms.PaintEventHandler(this.splitContainer1_Panel2_Paint);
     this.splitContainer1.Size             = new System.Drawing.Size(825, 569);
     this.splitContainer1.SplitterDistance = 158;
     this.splitContainer1.TabIndex         = 1;
     //
     // openFileDialog1
     //
     this.openFileDialog1.Filter      = "DICOM Files (*.dic;*.dcm)|*.dic;*.dcm|All files (*.*)|*.*";
     this.openFileDialog1.Multiselect = true;
     this.openFileDialog1.Title       = "Open Dicom File";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(825, 569);
     this.Controls.Add(this.splitContainer1);
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Menu        = this.mainMenu1;
     this.Name        = "MainForm";
     this.Text        = "DICOM Waveforms Demo";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Load       += new System.EventHandler(this.MainForm_Load);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Example #43
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FolderView));
     System.Windows.Forms.TreeNode treeNode1  = new System.Windows.Forms.TreeNode("Deleted Items");
     System.Windows.Forms.TreeNode treeNode2  = new System.Windows.Forms.TreeNode("Read");
     System.Windows.Forms.TreeNode treeNode3  = new System.Windows.Forms.TreeNode("Unread");
     System.Windows.Forms.TreeNode treeNode4  = new System.Windows.Forms.TreeNode("Drafts");
     System.Windows.Forms.TreeNode treeNode5  = new System.Windows.Forms.TreeNode("Inbox");
     System.Windows.Forms.TreeNode treeNode6  = new System.Windows.Forms.TreeNode("Junk E-mail");
     System.Windows.Forms.TreeNode treeNode7  = new System.Windows.Forms.TreeNode("Outbox");
     System.Windows.Forms.TreeNode treeNode8  = new System.Windows.Forms.TreeNode("Sent Items");
     System.Windows.Forms.TreeNode treeNode9  = new System.Windows.Forms.TreeNode("Sync Failures");
     System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("Root Folder");
     System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("Search Folders", new System.Windows.Forms.TreeNode[] {
         treeNode10
     });
     System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("Mail Home", new System.Windows.Forms.TreeNode[] {
         treeNode1,
         treeNode2,
         treeNode3,
         treeNode4,
         treeNode5,
         treeNode6,
         treeNode7,
         treeNode8,
         treeNode9,
         treeNode11
     });
     System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("Empty");
     System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("Archive Folders", new System.Windows.Forms.TreeNode[] {
         treeNode13
     });
     this.folderImages               = new System.Windows.Forms.ImageList(this.components);
     this.folderTreeView             = new System.Windows.Forms.TreeView();
     this.contextMenuStrip           = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.toolStripSeparator1        = new System.Windows.Forms.ToolStripSeparator();
     this.newFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.renameToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.deleteToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.contextMenuStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // folderImages
     //
     this.folderImages.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("folderImages.ImageStream")));
     this.folderImages.TransparentColor = System.Drawing.Color.Transparent;
     this.folderImages.Images.SetKeyName(0, "Task.bmp");
     this.folderImages.Images.SetKeyName(1, "Address.bmp");
     this.folderImages.Images.SetKeyName(2, "Archive.bmp");
     this.folderImages.Images.SetKeyName(3, "Delete.bmp");
     this.folderImages.Images.SetKeyName(4, "Drafts.bmp");
     this.folderImages.Images.SetKeyName(5, "Error.bmp");
     this.folderImages.Images.SetKeyName(6, "Find.bmp");
     this.folderImages.Images.SetKeyName(7, "Folder.bmp");
     this.folderImages.Images.SetKeyName(8, "Forward.bmp");
     this.folderImages.Images.SetKeyName(9, "Help.bmp");
     this.folderImages.Images.SetKeyName(10, "Inbox.bmp");
     this.folderImages.Images.SetKeyName(11, "Junk.bmp");
     this.folderImages.Images.SetKeyName(12, "Move.bmp");
     this.folderImages.Images.SetKeyName(13, "New.bmp");
     this.folderImages.Images.SetKeyName(14, "Notes.bmp");
     this.folderImages.Images.SetKeyName(15, "Outbox.bmp");
     this.folderImages.Images.SetKeyName(16, "Outlook.bmp");
     this.folderImages.Images.SetKeyName(17, "Post.bmp");
     this.folderImages.Images.SetKeyName(18, "Print.bmp");
     this.folderImages.Images.SetKeyName(19, "Read.bmp");
     this.folderImages.Images.SetKeyName(20, "Send.bmp");
     this.folderImages.Images.SetKeyName(21, "Sent.bmp");
     this.folderImages.Images.SetKeyName(22, "OutlookToday.bmp");
     this.folderImages.Images.SetKeyName(23, "Recycle.bmp");
     this.folderImages.Images.SetKeyName(24, "Search.bmp");
     this.folderImages.Images.SetKeyName(25, "Unread.gif");
     //
     // folderTreeView
     //
     this.folderTreeView.AllowDrop        = true;
     this.folderTreeView.BorderStyle      = System.Windows.Forms.BorderStyle.None;
     this.folderTreeView.ContextMenuStrip = this.contextMenuStrip;
     this.folderTreeView.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.folderTreeView.HideSelection    = false;
     this.folderTreeView.ImageIndex       = 0;
     this.folderTreeView.ImageList        = this.folderImages;
     this.folderTreeView.LabelEdit        = true;
     this.folderTreeView.Location         = new System.Drawing.Point(0, 4);
     this.folderTreeView.Name             = "folderTreeView";
     treeNode1.ImageKey         = "Recycle.bmp";
     treeNode1.Name             = "Node1";
     treeNode1.SelectedImageKey = "Recycle.bmp";
     treeNode1.Tag               = "Bold";
     treeNode1.Text              = "Deleted Items";
     treeNode2.ImageKey          = "Read.bmp";
     treeNode2.Name              = "NodeRead";
     treeNode2.SelectedImageKey  = "Read.bmp";
     treeNode2.Text              = "Read";
     treeNode3.ImageKey          = "Unread.gif";
     treeNode3.Name              = "NodeUnread";
     treeNode3.SelectedImageKey  = "Unread.gif";
     treeNode3.Text              = "Unread";
     treeNode4.ImageKey          = "Drafts.bmp";
     treeNode4.Name              = "Node2";
     treeNode4.SelectedImageKey  = "Drafts.bmp";
     treeNode4.Tag               = "Bold";
     treeNode4.Text              = "Drafts";
     treeNode5.ImageKey          = "Inbox.bmp";
     treeNode5.Name              = "Node3";
     treeNode5.SelectedImageKey  = "Inbox.bmp";
     treeNode5.Tag               = "Bold";
     treeNode5.Text              = "Inbox";
     treeNode6.ImageKey          = "Junk.bmp";
     treeNode6.Name              = "Node4";
     treeNode6.SelectedImageKey  = "Junk.bmp";
     treeNode6.Text              = "Junk E-mail";
     treeNode7.ImageKey          = "Outbox.bmp";
     treeNode7.Name              = "Node5";
     treeNode7.SelectedImageKey  = "Outbox.bmp";
     treeNode7.Text              = "Outbox";
     treeNode8.ImageKey          = "Sent.bmp";
     treeNode8.Name              = "Node6";
     treeNode8.SelectedImageKey  = "Sent.bmp";
     treeNode8.Text              = "Sent Items";
     treeNode9.ImageKey          = "Forward.bmp";
     treeNode9.Name              = "Node8";
     treeNode9.SelectedImageKey  = "Forward.bmp";
     treeNode9.Text              = "Sync Failures";
     treeNode10.ImageKey         = "Folder.bmp";
     treeNode10.Name             = "Node15";
     treeNode10.Text             = "Root Folder";
     treeNode11.ImageKey         = "Search.bmp";
     treeNode11.Name             = "Node9";
     treeNode11.SelectedImageKey = "Search.bmp";
     treeNode11.Text             = "Search Folders";
     treeNode12.ImageKey         = "OutlookToday.bmp";
     treeNode12.Name             = "Node0";
     treeNode12.SelectedImageKey = "OutlookToday.bmp";
     treeNode12.Text             = "Mail Home";
     treeNode13.ImageKey         = "Folder.bmp";
     treeNode13.Name             = "Node17";
     treeNode13.SelectedImageKey = "Folder.bmp";
     treeNode13.Text             = "Empty";
     treeNode14.ImageKey         = "Archive.bmp";
     treeNode14.Name             = "Node16";
     treeNode14.SelectedImageKey = "Archive.bmp";
     treeNode14.Text             = "Archive Folders";
     this.folderTreeView.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
         treeNode12,
         treeNode14
     });
     this.folderTreeView.SelectedImageIndex = 0;
     this.folderTreeView.Size             = new System.Drawing.Size(281, 274);
     this.folderTreeView.TabIndex         = 0;
     this.folderTreeView.TabStop          = false;
     this.folderTreeView.DragDrop        += new System.Windows.Forms.DragEventHandler(this.folderTreeView_DragDrop);
     this.folderTreeView.DrawNode        += new System.Windows.Forms.DrawTreeNodeEventHandler(this.folderTreeView_DrawNode);
     this.folderTreeView.AfterSelect     += new System.Windows.Forms.TreeViewEventHandler(this.folderTreeView_AfterSelect);
     this.folderTreeView.AfterLabelEdit  += new System.Windows.Forms.NodeLabelEditEventHandler(this.folderTreeView_AfterLabelEdit);
     this.folderTreeView.DragEnter       += new System.Windows.Forms.DragEventHandler(this.folderTreeView_DragEnter);
     this.folderTreeView.BeforeLabelEdit += new System.Windows.Forms.NodeLabelEditEventHandler(this.folderTreeView_BeforeLabelEdit);
     this.folderTreeView.ItemDrag        += new System.Windows.Forms.ItemDragEventHandler(this.folderTreeView_ItemDrag);
     //
     // contextMenuStrip
     //
     this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.newFolderToolStripMenuItem,
         this.toolStripSeparator1,
         this.renameToolStripMenuItem,
         this.deleteToolStripMenuItem
     });
     this.contextMenuStrip.Name = "contextMenuStrip";
     this.contextMenuStrip.Size = new System.Drawing.Size(140, 76);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(136, 6);
     //
     // newFolderToolStripMenuItem
     //
     this.newFolderToolStripMenuItem.Image = global::ActiveUp.MailSystem.DesktopClient.Properties.Resources.Folder;
     this.newFolderToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
     this.newFolderToolStripMenuItem.Name   = "newFolderToolStripMenuItem";
     this.newFolderToolStripMenuItem.Size   = new System.Drawing.Size(139, 22);
     this.newFolderToolStripMenuItem.Text   = "New Folder";
     this.newFolderToolStripMenuItem.Click += new System.EventHandler(this.newFolderToolStripMenuItem_Click);
     //
     // renameToolStripMenuItem
     //
     this.renameToolStripMenuItem.Image = global::ActiveUp.MailSystem.DesktopClient.Properties.Resources.Drafts;
     this.renameToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
     this.renameToolStripMenuItem.Name   = "renameToolStripMenuItem";
     this.renameToolStripMenuItem.Size   = new System.Drawing.Size(139, 22);
     this.renameToolStripMenuItem.Text   = "Rename";
     this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameToolStripMenuItem_Click);
     //
     // deleteToolStripMenuItem
     //
     this.deleteToolStripMenuItem.Image = global::ActiveUp.MailSystem.DesktopClient.Properties.Resources.Delete;
     this.deleteToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
     this.deleteToolStripMenuItem.Name   = "deleteToolStripMenuItem";
     this.deleteToolStripMenuItem.Size   = new System.Drawing.Size(139, 22);
     this.deleteToolStripMenuItem.Text   = "Delete";
     this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
     //
     // FolderView
     //
     this.BackColor = System.Drawing.SystemColors.Window;
     this.Controls.Add(this.folderTreeView);
     this.Name    = "FolderView";
     this.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0);
     this.Size    = new System.Drawing.Size(281, 278);
     this.Load   += new System.EventHandler(this.FolderView_Load);
     this.contextMenuStrip.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     this.dataGridAttributes = new System.Windows.Forms.DataGridView();
     this.colAttribute       = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.colValue           = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.imageList1         = new System.Windows.Forms.ImageList(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.dataGridAttributes)).BeginInit();
     this.SuspendLayout();
     //
     // dataGridAttributes
     //
     this.dataGridAttributes.AllowUserToAddRows          = false;
     this.dataGridAttributes.AllowUserToDeleteRows       = false;
     this.dataGridAttributes.BackgroundColor             = System.Drawing.SystemColors.Control;
     this.dataGridAttributes.BorderStyle                 = System.Windows.Forms.BorderStyle.Fixed3D;
     this.dataGridAttributes.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridAttributes.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.colAttribute,
         this.colValue
     });
     this.dataGridAttributes.Dock                 = System.Windows.Forms.DockStyle.Fill;
     this.dataGridAttributes.Location             = new System.Drawing.Point(0, 0);
     this.dataGridAttributes.Name                 = "dataGridAttributes";
     this.dataGridAttributes.RowHeadersVisible    = false;
     dataGridViewCellStyle2.Alignment             = System.Windows.Forms.DataGridViewContentAlignment.TopLeft;
     dataGridViewCellStyle2.BackColor             = System.Drawing.SystemColors.Control;
     this.dataGridAttributes.RowsDefaultCellStyle = dataGridViewCellStyle2;
     this.dataGridAttributes.Size                 = new System.Drawing.Size(150, 150);
     this.dataGridAttributes.TabIndex             = 10;
     this.dataGridAttributes.CellParsing         += new System.Windows.Forms.DataGridViewCellParsingEventHandler(this.dataGridAttributes_CellParsing);
     //
     // colAttribute
     //
     this.colAttribute.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
     this.colAttribute.Frozen       = true;
     this.colAttribute.HeaderText   = "Attribute";
     this.colAttribute.MinimumWidth = 80;
     this.colAttribute.Name         = "colAttribute";
     this.colAttribute.ReadOnly     = true;
     this.colAttribute.Width        = 80;
     //
     // colValue
     //
     this.colValue.HeaderText   = "Value";
     this.colValue.MinimumWidth = 200;
     this.colValue.Name         = "colValue";
     this.colValue.ReadOnly     = true;
     this.colValue.SortMode     = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.colValue.Width        = 200;
     //
     // imageList1
     //
     this.imageList1.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.imageList1.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // AttributeListControl
     //
     this.Controls.Add(this.dataGridAttributes);
     this.Name = "AttributeListControl";
     ((System.ComponentModel.ISupportInitialize)(this.dataGridAttributes)).EndInit();
     this.ResumeLayout(false);
 }
Example #45
0
 public MenuItemEx(string name, ImageList imageList, int imageIndex, Shortcut shortcut, EventHandler handler) : this(name, handler)
 {
     Initialize(icon, shortcut, handler, imageList, imageIndex);
 }
Example #46
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmStatusLecturas));
     this.vwgLecturaMedidor    = new CustGrd.vwGrd();
     this.lblLecturaMedidor    = new System.Windows.Forms.Label();
     this.btnValidar           = new System.Windows.Forms.Button();
     this.dtpFechaVisita       = new System.Windows.Forms.DateTimePicker();
     this.label4               = new System.Windows.Forms.Label();
     this.statusBarPanel1      = new System.Windows.Forms.StatusBarPanel();
     this.statusBar            = new System.Windows.Forms.StatusBar();
     this.vwgLecturas          = new CustGrd.vwGrd();
     this.lblLecturas          = new System.Windows.Forms.Label();
     this.vwgLecturistaCliente = new CustGrd.vwGrd();
     this.lblLecturistaCliente = new System.Windows.Forms.Label();
     this.imgListGenerar       = new System.Windows.Forms.ImageList(this.components);
     this.tbLecturas           = new System.Windows.Forms.ToolBar();
     this.tbCliente            = new System.Windows.Forms.ToolBarButton();
     this.tbLectura            = new System.Windows.Forms.ToolBarButton();
     this.tbCerrar             = new System.Windows.Forms.ToolBarButton();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
     this.SuspendLayout();
     //
     // vwgLecturaMedidor
     //
     this.vwgLecturaMedidor.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                            | System.Windows.Forms.AnchorStyles.Left)
                                                                           | System.Windows.Forms.AnchorStyles.Right)));
     this.vwgLecturaMedidor.ColumnMargin  = 1;
     this.vwgLecturaMedidor.FullRowSelect = true;
     this.vwgLecturaMedidor.HideSelection = false;
     this.vwgLecturaMedidor.Location      = new System.Drawing.Point(0, 288);
     this.vwgLecturaMedidor.MultiSelect   = false;
     this.vwgLecturaMedidor.Name          = "vwgLecturaMedidor";
     this.vwgLecturaMedidor.Size          = new System.Drawing.Size(912, 352);
     this.vwgLecturaMedidor.TabIndex      = 10;
     this.vwgLecturaMedidor.UseCompatibleStateImageBehavior = false;
     this.vwgLecturaMedidor.View         = System.Windows.Forms.View.Details;
     this.vwgLecturaMedidor.DoubleClick += new System.EventHandler(this.vwgLecturaMedidor_DoubleClick);
     //
     // lblLecturaMedidor
     //
     this.lblLecturaMedidor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                           | System.Windows.Forms.AnchorStyles.Right)));
     this.lblLecturaMedidor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblLecturaMedidor.Location    = new System.Drawing.Point(0, 264);
     this.lblLecturaMedidor.Name        = "lblLecturaMedidor";
     this.lblLecturaMedidor.Size        = new System.Drawing.Size(912, 23);
     this.lblLecturaMedidor.TabIndex    = 9;
     this.lblLecturaMedidor.Text        = "Lectura Medidor";
     this.lblLecturaMedidor.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // btnValidar
     //
     this.btnValidar.FlatStyle  = System.Windows.Forms.FlatStyle.Popup;
     this.btnValidar.ImageIndex = 3;
     this.btnValidar.ImageList  = this.imgListGenerar;
     this.btnValidar.Location   = new System.Drawing.Point(872, 8);
     this.btnValidar.Name       = "btnValidar";
     this.btnValidar.Size       = new System.Drawing.Size(24, 24);
     this.btnValidar.TabIndex   = 17;
     this.btnValidar.Click     += new System.EventHandler(this.btnValidar_Click);
     //
     // dtpFechaVisita
     //
     this.dtpFechaVisita.Format        = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dtpFechaVisita.Location      = new System.Drawing.Point(784, 8);
     this.dtpFechaVisita.Name          = "dtpFechaVisita";
     this.dtpFechaVisita.Size          = new System.Drawing.Size(84, 20);
     this.dtpFechaVisita.TabIndex      = 16;
     this.dtpFechaVisita.ValueChanged += new System.EventHandler(this.dtpFechaVisita_ValueChanged);
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(696, 11);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(82, 13);
     this.label4.TabIndex = 15;
     this.label4.Text     = "Fecha de visita:";
     //
     // statusBarPanel1
     //
     this.statusBarPanel1.Name  = "statusBarPanel1";
     this.statusBarPanel1.Width = 500;
     //
     // statusBar
     //
     this.statusBar.Location = new System.Drawing.Point(0, 644);
     this.statusBar.Name     = "statusBar";
     this.statusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
         this.statusBarPanel1
     });
     this.statusBar.ShowPanels = true;
     this.statusBar.Size       = new System.Drawing.Size(912, 22);
     this.statusBar.TabIndex   = 8;
     //
     // vwgLecturas
     //
     this.vwgLecturas.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.vwgLecturas.ColumnMargin  = 1;
     this.vwgLecturas.FullRowSelect = true;
     this.vwgLecturas.HideSelection = false;
     this.vwgLecturas.Location      = new System.Drawing.Point(448, 64);
     this.vwgLecturas.MultiSelect   = false;
     this.vwgLecturas.Name          = "vwgLecturas";
     this.vwgLecturas.Size          = new System.Drawing.Size(456, 196);
     this.vwgLecturas.TabIndex      = 23;
     this.vwgLecturas.UseCompatibleStateImageBehavior = false;
     this.vwgLecturas.View = System.Windows.Forms.View.Details;
     this.vwgLecturas.SelectedIndexChanged += new System.EventHandler(this.vwgLecturas_SelectedIndexChanged);
     //
     // lblLecturas
     //
     this.lblLecturas.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.lblLecturas.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblLecturas.Location    = new System.Drawing.Point(448, 40);
     this.lblLecturas.Name        = "lblLecturas";
     this.lblLecturas.Size        = new System.Drawing.Size(456, 24);
     this.lblLecturas.TabIndex    = 22;
     this.lblLecturas.Text        = "Lecturas";
     this.lblLecturas.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // vwgLecturistaCliente
     //
     this.vwgLecturistaCliente.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.vwgLecturistaCliente.ColumnMargin  = 1;
     this.vwgLecturistaCliente.FullRowSelect = true;
     this.vwgLecturistaCliente.HideSelection = false;
     this.vwgLecturistaCliente.Location      = new System.Drawing.Point(0, 64);
     this.vwgLecturistaCliente.MultiSelect   = false;
     this.vwgLecturistaCliente.Name          = "vwgLecturistaCliente";
     this.vwgLecturistaCliente.Size          = new System.Drawing.Size(448, 196);
     this.vwgLecturistaCliente.TabIndex      = 21;
     this.vwgLecturistaCliente.UseCompatibleStateImageBehavior = false;
     this.vwgLecturistaCliente.View = System.Windows.Forms.View.Details;
     this.vwgLecturistaCliente.SelectedIndexChanged += new System.EventHandler(this.vwgLecturistaCliente_SelectedIndexChanged);
     //
     // lblLecturistaCliente
     //
     this.lblLecturistaCliente.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.lblLecturistaCliente.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblLecturistaCliente.Location    = new System.Drawing.Point(0, 40);
     this.lblLecturistaCliente.Name        = "lblLecturistaCliente";
     this.lblLecturistaCliente.Size        = new System.Drawing.Size(448, 23);
     this.lblLecturistaCliente.TabIndex    = 20;
     this.lblLecturistaCliente.Text        = "Lecturistas";
     this.lblLecturistaCliente.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // imgListGenerar
     //
     this.imgListGenerar.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imgListGenerar.ImageStream")));
     this.imgListGenerar.TransparentColor = System.Drawing.Color.Transparent;
     this.imgListGenerar.Images.SetKeyName(0, "clientes 2.png");
     this.imgListGenerar.Images.SetKeyName(1, "MedidorL.ico");
     this.imgListGenerar.Images.SetKeyName(2, "Cerrar.ico");
     this.imgListGenerar.Images.SetKeyName(3, "BINOCULR.ICO");
     //
     // tbLecturas
     //
     this.tbLecturas.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.tbLecturas.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.tbCliente,
         this.tbLectura,
         this.tbCerrar
     });
     this.tbLecturas.DropDownArrows = true;
     this.tbLecturas.ImageList      = this.imgListGenerar;
     this.tbLecturas.Location       = new System.Drawing.Point(0, 0);
     this.tbLecturas.Name           = "tbLecturas";
     this.tbLecturas.ShowToolTips   = true;
     this.tbLecturas.Size           = new System.Drawing.Size(912, 42);
     this.tbLecturas.TabIndex       = 25;
     this.tbLecturas.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.tbLecturas_ButtonClick);
     //
     // tbCliente
     //
     this.tbCliente.ImageIndex = 0;
     this.tbCliente.Name       = "tbCliente";
     this.tbCliente.Tag        = "Cliente";
     this.tbCliente.Text       = "&Cliente";
     //
     // tbLectura
     //
     this.tbLectura.ImageIndex = 1;
     this.tbLectura.Name       = "tbLectura";
     this.tbLectura.Tag        = "Lecturas";
     this.tbLectura.Text       = "&Lecturas";
     //
     // tbCerrar
     //
     this.tbCerrar.ImageIndex = 2;
     this.tbCerrar.Name       = "tbCerrar";
     this.tbCerrar.Tag        = "Cerrar";
     this.tbCerrar.Text       = "&Cerrar";
     //
     // frmStatusLecturas
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(912, 666);
     this.Controls.Add(this.vwgLecturas);
     this.Controls.Add(this.vwgLecturistaCliente);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.vwgLecturaMedidor);
     this.Controls.Add(this.lblLecturas);
     this.Controls.Add(this.lblLecturistaCliente);
     this.Controls.Add(this.btnValidar);
     this.Controls.Add(this.dtpFechaVisita);
     this.Controls.Add(this.lblLecturaMedidor);
     this.Controls.Add(this.statusBar);
     this.Controls.Add(this.tbLecturas);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.MaximumSize   = new System.Drawing.Size(920, 700);
     this.MinimizeBox   = false;
     this.MinimumSize   = new System.Drawing.Size(920, 600);
     this.Name          = "frmStatusLecturas";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Seguimiento Lecturas";
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #47
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="imageList">イメージリスト</param>
 public CompletionImageList(ImageList imageList)
 {
     m_imageList = imageList;
 }
Example #48
0
        /// <summary>
        /// ログ表示用にリストビューをセットアップする
        /// </summary>
        /// <param name="lv">リストビュー</param>
        /// <param name="logs">表示対象のログリスト</param>
        public static void SetupListView(ListView lv, List <List <string> > logs)
        {
            if (_ImageList == null)
            {
                _ImageList           = new ImageList();
                _ImageList.ImageSize = new Size(16, 16);
                _ImageList.Images.Add(SystemIcons.Exclamation);
                _ImageList.Images.Add(SystemIcons.Error);
            }

            // ダブルバッファリングを有効にしてちらつきを抑える
            EnableDoubleBuffering(lv);

            // スタイル設定
            lv.View      = View.Details;
            lv.BackColor = System.Drawing.Color.Black;
            lv.ForeColor = System.Drawing.Color.Lime;

            // リストビューにイメージリスト設定
            lv.SmallImageList = _ImageList;
            lv.FullRowSelect  = true;
            lv.HideSelection  = false;

            // リストビューのカラム作成
            int dateTimeWidth;

            using (var g = lv.CreateGraphics()) {
                dateTimeWidth = (int)(g.MeasureString("8888/88/88 88:88:88", lv.Font).Width + 0.5f);
            }
            dateTimeWidth += 32 + 8;

            lv.Columns.Clear();
            lv.Columns.Add("日時", dateTimeWidth);
            lv.Columns.Add("内容", lv.ClientSize.Width - dateTimeWidth);

            // リストビューを仮想モードにして独自に保持しているデータを描画する
            lv.VirtualMode = true;

            // リストビューの仮想モード用データ取得イベント登録
            lv.RetrieveVirtualItem += new RetrieveVirtualItemEventHandler((s, e2) => {
                var log   = logs[e2.ItemIndex];
                var lvi   = new ListViewItem(0 < log.Count ? log[0] : "");
                var level = 1 < log.Count ? log[1] : "";
                lvi.SubItems.Add(2 < log.Count ? log[2] : "");

                switch (level)
                {
                case "1":
                    lvi.ForeColor  = Color.Yellow;
                    lvi.ImageIndex = 0;
                    break;

                case "2":
                    lvi.ForeColor  = Color.Red;
                    lvi.ImageIndex = 1;
                    break;

                case "3":
                    lvi.ForeColor = Color.Gray;
                    break;
                }

                lvi.Font = lv.Font;

                e2.Item = lvi;
            });

            lv.Tag = logs;
        }
Example #49
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(MemoForm));

            this.imageList1     = new ImageList(this.components);
            this.ListBox        = new vCheckedListBox();
            this.ListMenu       = new ContextMenuStrip(this.components);
            this.mnuSelectAll   = new ToolStripMenuItem();
            this.mnuClearSelect = new ToolStripMenuItem();
            this.btnCloseDlg    = new vButton();
            this.HeaderPanel    = new Panel();
            this.chk_PageBreaks = new CheckBox();
            this.btn_View       = new vButton();
            this.ListMenu.SuspendLayout();
            this.HeaderPanel.SuspendLayout();
            base.SuspendLayout();
            this.imageList1.ImageStream      = (ImageListStreamer)Resources.MemoForm.imageList1_ImageStream;
            this.imageList1.TransparentColor = Color.Transparent;
            this.imageList1.Images.SetKeyName(0, "notes.png");
            this.ListBox.CheckOnClick               = true;
            this.ListBox.ContextMenuStrip           = this.ListMenu;
            this.ListBox.Dock                       = DockStyle.Fill;
            this.ListBox.ItemHeight                 = 36;
            this.ListBox.Location                   = new Point(0, 45);
            this.ListBox.Name                       = "ListBox";
            this.ListBox.RoundedCornersMaskListItem = 15;
            this.ListBox.SelectionMode              = SelectionMode.One;
            this.ListBox.Size                       = new Size(550, 555);
            this.ListBox.TabIndex                   = 2;
            this.ListBox.VIBlendScrollBarsTheme     = VIBLEND_THEME.VISTABLUE;
            this.ListBox.VIBlendTheme               = VIBLEND_THEME.VISTABLUE;
            ToolStripItemCollection items = this.ListMenu.Items;

            ToolStripItem[] toolStripItemArray = new ToolStripItem[] { this.mnuSelectAll, this.mnuClearSelect };
            this.ListMenu.Items.AddRange(toolStripItemArray);
            this.ListMenu.Name                       = "ListMenu";
            this.ListMenu.Size                       = new Size(187, 48);
            this.mnuSelectAll.Name                   = "mnuSelectAll";
            this.mnuSelectAll.Size                   = new Size(186, 22);
            this.mnuSelectAll.Text                   = "Select All Documents";
            this.mnuSelectAll.Click                 += new EventHandler(this.mnuSelectAll_Click);
            this.mnuClearSelect.Name                 = "mnuClearSelect";
            this.mnuClearSelect.Size                 = new Size(186, 22);
            this.mnuClearSelect.Text                 = "Clear Selection";
            this.mnuClearSelect.Click               += new EventHandler(this.mnuClearSelect_Click);
            this.btnCloseDlg.AllowAnimations         = true;
            this.btnCloseDlg.BackColor               = Color.Transparent;
            this.btnCloseDlg.DialogResult            = DialogResult.Cancel;
            this.btnCloseDlg.Dock                    = DockStyle.Right;
            this.btnCloseDlg.Image                   = Properties.Resources.close;
            this.btnCloseDlg.Location                = new Point(505, 0);
            this.btnCloseDlg.Name                    = "btnCloseDlg";
            this.btnCloseDlg.PaintBorder             = false;
            this.btnCloseDlg.PaintDefaultBorder      = false;
            this.btnCloseDlg.PaintDefaultFill        = false;
            this.btnCloseDlg.RoundedCornersMask      = 15;
            this.btnCloseDlg.RoundedCornersRadius    = 0;
            this.btnCloseDlg.Size                    = new Size(45, 45);
            this.btnCloseDlg.TabIndex                = 0;
            this.btnCloseDlg.UseVisualStyleBackColor = false;
            this.btnCloseDlg.VIBlendTheme            = VIBLEND_THEME.VISTABLUE;
            this.btnCloseDlg.Click                  += new EventHandler(this.btnCloseDlg_Click);
            this.HeaderPanel.BackColor               = Color.FromArgb(64, 64, 64);
            this.HeaderPanel.Controls.Add(this.chk_PageBreaks);
            this.HeaderPanel.Controls.Add(this.btn_View);
            this.HeaderPanel.Controls.Add(this.btnCloseDlg);
            this.HeaderPanel.Dock         = DockStyle.Top;
            this.HeaderPanel.Location     = new Point(0, 0);
            this.HeaderPanel.Name         = "HeaderPanel";
            this.HeaderPanel.Size         = new Size(550, 45);
            this.HeaderPanel.TabIndex     = 1;
            this.HeaderPanel.MouseDown   += new MouseEventHandler(this.HeaderPanel_MouseDown);
            this.chk_PageBreaks.AutoSize  = true;
            this.chk_PageBreaks.BackColor = Color.Transparent;
            this.chk_PageBreaks.ForeColor = Color.White;
            this.chk_PageBreaks.Location  = new Point(155, 13);
            this.chk_PageBreaks.Name      = "chk_PageBreaks";
            this.chk_PageBreaks.Size      = new Size(116, 17);
            this.chk_PageBreaks.TabIndex  = 3;
            this.chk_PageBreaks.Text      = "Insert Page Breaks";
            this.chk_PageBreaks.UseVisualStyleBackColor = false;
            this.btn_View.AllowAnimations         = true;
            this.btn_View.BackColor               = Color.Transparent;
            this.btn_View.Image                   = Properties.Resources.search;
            this.btn_View.ImageAlign              = ContentAlignment.MiddleLeft;
            this.btn_View.Location                = new Point(13, 6);
            this.btn_View.Name                    = "btn_View";
            this.btn_View.RoundedCornersMask      = 15;
            this.btn_View.RoundedCornersRadius    = 0;
            this.btn_View.Size                    = new Size(136, 30);
            this.btn_View.TabIndex                = 2;
            this.btn_View.Text                    = "Review";
            this.btn_View.UseVisualStyleBackColor = false;
            this.btn_View.VIBlendTheme            = VIBLEND_THEME.VISTABLUE;
            this.btn_View.Click                  += new EventHandler(this.btn_View_Click);
            base.AutoScaleDimensions              = new SizeF(6f, 13f);
            base.AutoScaleMode                    = AutoScaleMode.Font;
            base.CancelButton = this.btnCloseDlg;
            base.ClientSize   = new Size(550, 600);
            base.Controls.Add(this.ListBox);
            base.Controls.Add(this.HeaderPanel);
            base.FormBorderStyle = FormBorderStyle.None;
            base.Icon            = (Icon)Resources.MemoForm.MemoListIcon;
            base.MaximizeBox     = false;
            base.MinimizeBox     = false;
            base.Name            = "MemoForm";
            base.StartPosition   = FormStartPosition.CenterParent;
            this.Text            = "Memos";
            base.Load           += new EventHandler(this.MemoForm_Load);
            this.ListMenu.ResumeLayout(false);
            this.HeaderPanel.ResumeLayout(false);
            this.HeaderPanel.PerformLayout();
            base.ResumeLayout(false);
        }
Example #50
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components    = new System.ComponentModel.Container();
     this.elementList   = new System.Windows.Forms.TreeView();
     this.coreImageList = new System.Windows.Forms.ImageList(this.components);
     this.button1       = new System.Windows.Forms.Button();
     this.comboBox1     = new System.Windows.Forms.ComboBox();
     this.label1        = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // elementList
     //
     this.elementList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                      | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.elementList.BackColor     = System.Drawing.Color.FloralWhite;
     this.elementList.FullRowSelect = true;
     this.elementList.HideSelection = false;
     this.elementList.ImageList     = this.coreImageList;
     this.elementList.Location      = new System.Drawing.Point(8, 64);
     this.elementList.Name          = "elementList";
     this.elementList.ShowPlusMinus = false;
     this.elementList.ShowRootLines = false;
     this.elementList.Size          = new System.Drawing.Size(273, 160);
     this.elementList.Sorted        = true;
     this.elementList.TabIndex      = 1;
     this.elementList.DoubleClick  += new System.EventHandler(this.QuickFixSelected);
     //
     // coreImageList
     //
     this.coreImageList.ColorDepth       = System.Windows.Forms.ColorDepth.Depth32Bit;
     this.coreImageList.ImageSize        = new System.Drawing.Size(14, 14);
     this.coreImageList.TransparentColor = System.Drawing.Color.Transparent;
     //
     // button1
     //
     this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.button1.Location  = new System.Drawing.Point(8, 232);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(272, 23);
     this.button1.TabIndex  = 6;
     this.button1.Text      = "&Automatically Fix";
     //
     // comboBox1
     //
     this.comboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.comboBox1.BackColor             = System.Drawing.Color.FloralWhite;
     this.comboBox1.DrawMode              = System.Windows.Forms.DrawMode.OwnerDrawVariable;
     this.comboBox1.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox1.DropDownWidth         = 400;
     this.comboBox1.IntegralHeight        = false;
     this.comboBox1.ItemHeight            = 30;
     this.comboBox1.Location              = new System.Drawing.Point(8, 26);
     this.comboBox1.MaxDropDownItems      = 100;
     this.comboBox1.Name                  = "comboBox1";
     this.comboBox1.Size                  = new System.Drawing.Size(272, 36);
     this.comboBox1.TabIndex              = 7;
     this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.ErrorSelected);
     this.comboBox1.MeasureItem          += new System.Windows.Forms.MeasureItemEventHandler(this.MeasureItem);
     this.comboBox1.DrawItem             += new System.Windows.Forms.DrawItemEventHandler(this.DrawItem);
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(272, 16);
     this.label1.TabIndex = 8;
     this.label1.Text     = "Validation Errors for Element \'para\'";
     //
     // QuickFixPanel
     //
     this.Controls.Add(this.label1);
     this.Controls.Add(this.comboBox1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.elementList);
     this.Name = "QuickFixPanel";
     this.Size = new System.Drawing.Size(288, 264);
     this.ResumeLayout(false);
 }
Example #51
0
        /// <summary>
        /// In coming call.
        /// </summary>
        /// <param name="voipCall">VoIP call.</param>
        /// <param name="inComingCall">In coming call param.</param>
        /// <param name="contactsView">The contacts list view.</param>
        /// <param name="callsView">The calls list view.</param>
        /// <param name="conferenceView">The conference list view.</param>
        /// <param name="contacts">The contact list.</param>
        /// <param name="imageListSmall">The image list.</param>
        /// <param name="imageListLarge">The image list.</param>
        /// <param name="contactName">The contact name.</param>
        /// <param name="ringFilePath">The filename and path of the ringing audio.</param>
        /// <param name="audioDeviceIndex">The audio device index.</param>
        /// <param name="autoAnswer">Auto answer enabled.</param>
        /// <param name="autoAnswerFilePath">Auto answer file path..</param>
        /// <param name="autoAnswerWait">Auto answer wait time.</param>
        /// <param name="autoAnswerRecordingPath">Auto answer recording file and path.</param>
        /// <param name="messageBankWaitTime">The time to record the message.</param>
        /// <param name="redirectEnabled">The time to record the message.</param>
        /// <param name="redirectCallNumber">The time to record the message.</param>
        /// <param name="redirectCallAfter">The time to record the message.</param>
        public InComingCall(Nequeo.VoIP.Sip.VoIPCall voipCall, Nequeo.VoIP.Sip.Param.OnIncomingCallParam inComingCall,
                            ListView contactsView, ListView callsView, ListView conferenceView, Data.contacts contacts, ImageList imageListSmall,
                            ImageList imageListLarge, string contactName, string ringFilePath,
                            int audioDeviceIndex           = -1, bool autoAnswer = false, string autoAnswerFilePath = null, int autoAnswerWait = 30,
                            string autoAnswerRecordingPath = null, int messageBankWaitTime    = 20,
                            bool redirectEnabled           = false, string redirectCallNumber = "", int redirectCallAfter = -1)
        {
            InitializeComponent();

            _contactName    = contactName;
            _ringFilePath   = ringFilePath;
            _voipCall       = voipCall;
            _inComingCall   = inComingCall;
            _callsView      = callsView;
            _conferenceView = conferenceView;
            _contactsView   = contactsView;
            _contacts       = contacts;
            _imageListSmall = imageListSmall;
            _imageListLarge = imageListLarge;

            // Auto answer.
            _autoAnswer              = autoAnswer;
            _autoAnswerFilePath      = autoAnswerFilePath;
            _autoAnswerWait          = autoAnswerWait;
            _autoAnswerRecordingPath = autoAnswerRecordingPath;
            _messageBankWaitTime     = messageBankWaitTime;

            // Assign redirect call.
            _redirectEnabled    = redirectEnabled;
            _redirectCallNumber = redirectCallNumber;
            _redirectCallAfter  = redirectCallAfter;

            // If auto answer recording path.
            if (!String.IsNullOrEmpty(autoAnswerRecordingPath))
            {
                // Create the recording file name and path.
                DateTime time               = DateTime.Now;
                string   audioRecodingExt   = System.IO.Path.GetExtension(autoAnswerRecordingPath);
                string   audioRecordingDir  = System.IO.Path.GetDirectoryName(autoAnswerRecordingPath).TrimEnd(new char[] { '\\' }) + "\\";
                string   audioRecordingFile = System.IO.Path.GetFileNameWithoutExtension(autoAnswerRecordingPath) + "_" +
                                              contactName.Replace(" ", "").Replace("'", "") + "_" +
                                              time.Day.ToString() + "-" + time.Month.ToString() + "-" + time.Year.ToString() + "_" +
                                              time.Hour.ToString() + "-" + time.Minute.ToString() + "-" + time.Second.ToString();

                // Create the file name.
                _autoAnswerRecordingPath = audioRecordingDir + audioRecordingFile + audioRecodingExt;
            }

            // If a valid audio device has been set.
            if (audioDeviceIndex >= 0)
            {
                // Get the audio device.
                Nequeo.IO.Audio.Device device = Nequeo.IO.Audio.Devices.GetDevice(audioDeviceIndex);
                _player = new WavePlayer(device);
                _player.PlaybackStopped += _player_PlaybackStopped;
            }
        }
Example #52
0
        private static void LoadImages()
        {
            images = new[]
            {
                Resources.DefaultConst,
                Resources.PublicConst,
                Resources.ProtintConst,
                Resources.InternalConst,
                Resources.ProtectedConst,
                Resources.PrivateConst,
                Resources.DefaultField,
                Resources.PublicField,
                Resources.ProtintField,
                Resources.InternalField,
                Resources.ProtectedField,
                Resources.PrivateField,
                Resources.DefaultConstructor,
                Resources.PublicConstructor,
                Resources.ProtintConstructor,
                Resources.InternalConstructor,
                Resources.ProtectedConstructor,
                Resources.PrivateConstructor,
                Resources.DefaultOperator,
                Resources.PublicOperator,
                Resources.ProtintOperator,
                Resources.InternalOperator,
                Resources.ProtectedOperator,
                Resources.PrivateOperator,
                Resources.DefaultMethod,
                Resources.PublicMethod,
                Resources.ProtintMethod,
                Resources.InternalMethod,
                Resources.ProtectedMethod,
                Resources.PrivateMethod,
                Resources.DefaultReadonly,
                Resources.PublicReadonly,
                Resources.ProtintReadonly,
                Resources.InternalReadonly,
                Resources.ProtectedReadonly,
                Resources.PrivateReadonly,
                Resources.DefaultWriteonly,
                Resources.PublicWriteonly,
                Resources.ProtintWriteonly,
                Resources.InternalWriteoly,
                Resources.ProtectedWriteonly,
                Resources.PrivateWriteonly,
                Resources.DefaultProperty,
                Resources.PublicProperty,
                Resources.ProtintProperty,
                Resources.InternalProperty,
                Resources.ProtectedProperty,
                Resources.PrivateProperty,
                Resources.DefaultEvent,
                Resources.PublicEvent,
                Resources.ProtintEvent,
                Resources.InternalEvent,
                Resources.ProtectedEvent,
                Resources.PrivateEvent,
                Resources.DefaultClass,
                Resources.PublicClass,
                Resources.ProtintClass,
                Resources.InternalClass,
                Resources.ProtectedClass,
                Resources.PrivateClass,
                Resources.DefaultStructure,
                Resources.PublicStructure,
                Resources.ProtintStructure,
                Resources.InternalStructure,
                Resources.ProtectedStructure,
                Resources.PrivateStructure,
                Resources.DefaultInterface,
                Resources.PublicInterface,
                Resources.ProtintInterface,
                Resources.InternalInterface,
                Resources.ProtectedInterface,
                Resources.PrivateInterface,
                Resources.DefaultEnum,
                Resources.PublicEnum,
                Resources.ProtintEnum,
                Resources.InternalEnum,
                Resources.ProtectedEnum,
                Resources.PrivateEnum,
                Resources.DefaultDelegate,
                Resources.PublicDelegate,
                Resources.ProtintDelegate,
                Resources.InternalDelegate,
                Resources.ProtectedDelegate,
                Resources.PrivateDelegate,
                Resources.DefaultDestructor, // 84.
                Resources.PrivateDestructor, // 85.
                Resources.Interface24,       // 86.
                Resources.EnumItem,          // 87.
                Resources.Parameter,         // 88.
                Resources.Class              // 89.
            };

            IconList            = new ImageList();
            IconList.ColorDepth = ColorDepth.Depth32Bit;
            IconList.Images.AddRange(images);
        }
Example #53
0
 public KuinProjectNode(IServiceProvider serviceProvider, ImageList imageList) : base(serviceProvider, imageList)
 {
 }
Example #54
0
        // ----------------------------------------------------------------------------------------
        // ВОПРОСЫ --------------------------------------------------------------------------------
        // ----------------------------------------------------------------------------------------
        #region ВОПРОСЫ
        // Заполняем список изображений у вопроса
        public void getQuestionImageList(int question_id)
        {
            ImageList image_box = new ImageList();

            image_box.ImageSize = new Size(120, 100);
            pbImage1.Visible    = false;
            pbImage2.Visible    = false;
            pbImage3.Visible    = false;
            pbImage4.Visible    = false;
            Image1Name.Visible  = false;
            Image2Name.Visible  = false;
            Image3Name.Visible  = false;
            Image4Name.Visible  = false;
            int index = getSelectedQuestionIndex();


            if (test.questions_list[getSelectedQuestionIndex()].images_list.Count >= 1)
            {
                TestDB.Images obj2 = test.questions_list[getSelectedQuestionIndex()].images_list[0];
                if (test.questions_list[getSelectedQuestionIndex()].images_list[0].name.Length > 20)
                {
                    Image1Name.Text = test.questions_list[getSelectedQuestionIndex()].images_list[0].name.Substring(0, 20);
                }
                else
                {
                    Image1Name.Text = test.questions_list[getSelectedQuestionIndex()].images_list[0].name;
                }

                pbImage1.Visible   = true;
                Image1Name.Visible = true;
            }

            if (test.questions_list[getSelectedQuestionIndex()].images_list.Count >= 2)
            {
                if (test.questions_list[getSelectedQuestionIndex()].images_list[1].name.Length > 20)
                {
                    Image2Name.Text = test.questions_list[getSelectedQuestionIndex()].images_list[1].name.Substring(0, 20);
                }
                else
                {
                    Image2Name.Text = test.questions_list[getSelectedQuestionIndex()].images_list[1].name;
                }
                pbImage2.Visible   = true;
                Image2Name.Visible = true;
            }

            if (test.questions_list[getSelectedQuestionIndex()].images_list.Count >= 3)
            {
                if (test.questions_list[getSelectedQuestionIndex()].images_list[2].name.Length > 20)
                {
                    Image3Name.Text = test.questions_list[getSelectedQuestionIndex()].images_list[2].name.Substring(0, 20);
                }
                else
                {
                    Image3Name.Text = test.questions_list[getSelectedQuestionIndex()].images_list[2].name;
                }
                pbImage3.Visible   = true;
                Image3Name.Visible = true;
            }

            if (test.questions_list[getSelectedQuestionIndex()].images_list.Count >= 4)
            {
                if (test.questions_list[getSelectedQuestionIndex()].images_list[3].name.Length > 20)
                {
                    Image1Name.Text = test.questions_list[getSelectedQuestionIndex()].images_list[3].name.Substring(0, 20);
                }
                else
                {
                    Image1Name.Text = test.questions_list[getSelectedQuestionIndex()].images_list[3].name;
                }
                Image4Name.Text    = test.questions_list[question_id].images_list[3].name.Substring(0, 20);
                pbImage4.Visible   = true;
                Image4Name.Visible = true;
            }
        }
Example #55
0
 public MenuCommand(string text, ImageList imageList, int imageIndex, Shortcut shortcut)
 {
     InternalConstruct(text, imageList, imageIndex, shortcut, null, null, null);
 }
Example #56
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FormMain));
     this.menuMain             = new System.Windows.Forms.MainMenu();
     this.mitemFilePopup       = new System.Windows.Forms.MenuItem();
     this.mitemFileOpen        = new System.Windows.Forms.MenuItem();
     this.mitemFileSave        = new System.Windows.Forms.MenuItem();
     this.mitemFileSaveAs      = new System.Windows.Forms.MenuItem();
     this.mitemFileFormat      = new System.Windows.Forms.MenuItem();
     this.mitemFFAscii         = new System.Windows.Forms.MenuItem();
     this.mitemFFUnicode       = new System.Windows.Forms.MenuItem();
     this.mitemFFUtf7          = new System.Windows.Forms.MenuItem();
     this.mitemFFUtf8          = new System.Windows.Forms.MenuItem();
     this.mitemFFDefault       = new System.Windows.Forms.MenuItem();
     this.mitemEditPopup       = new System.Windows.Forms.MenuItem();
     this.mitemEditFont        = new System.Windows.Forms.MenuItem();
     this.mitemToolsPopup      = new System.Windows.Forms.MenuItem();
     this.mitemToolsOptions    = new System.Windows.Forms.MenuItem();
     this.mitemSettingsPopup   = new System.Windows.Forms.MenuItem();
     this.mitemSettingsSave    = new System.Windows.Forms.MenuItem();
     this.mitemSettingsRestore = new System.Windows.Forms.MenuItem();
     this.mitemSettingsInit    = new System.Windows.Forms.MenuItem();
     this.textInput            = new System.Windows.Forms.TextBox();
     this.tbarCommands         = new System.Windows.Forms.ToolBar();
     this.tbbEditFormat        = new System.Windows.Forms.ToolBarButton();
     this.tbbViewOptions       = new System.Windows.Forms.ToolBarButton();
     this.ilistCommands        = new System.Windows.Forms.ImageList();
     this.cmenuMain            = new System.Windows.Forms.ContextMenu();
     this.mitemProgramMenu     = new System.Windows.Forms.MenuItem();
     this.mitemToolbar         = new System.Windows.Forms.MenuItem();
     //
     // menuMain
     //
     this.menuMain.MenuItems.Add(this.mitemFilePopup);
     this.menuMain.MenuItems.Add(this.mitemEditPopup);
     this.menuMain.MenuItems.Add(this.mitemToolsPopup);
     this.menuMain.MenuItems.Add(this.mitemSettingsPopup);
     //
     // mitemFilePopup
     //
     this.mitemFilePopup.MenuItems.Add(this.mitemFileOpen);
     this.mitemFilePopup.MenuItems.Add(this.mitemFileSave);
     this.mitemFilePopup.MenuItems.Add(this.mitemFileSaveAs);
     this.mitemFilePopup.MenuItems.Add(this.mitemFileFormat);
     this.mitemFilePopup.Text = "File";
     //
     // mitemFileOpen
     //
     this.mitemFileOpen.Text   = "Open...";
     this.mitemFileOpen.Click += new System.EventHandler(this.mitemFileOpen_Click);
     //
     // mitemFileSave
     //
     this.mitemFileSave.Text   = "Save";
     this.mitemFileSave.Click += new System.EventHandler(this.mitemFileSave_Click);
     //
     // mitemFileSaveAs
     //
     this.mitemFileSaveAs.Text   = "SaveAs...";
     this.mitemFileSaveAs.Click += new System.EventHandler(this.mitemFileSaveAs_Click);
     //
     // mitemFileFormat
     //
     this.mitemFileFormat.MenuItems.Add(this.mitemFFAscii);
     this.mitemFileFormat.MenuItems.Add(this.mitemFFUnicode);
     this.mitemFileFormat.MenuItems.Add(this.mitemFFUtf7);
     this.mitemFileFormat.MenuItems.Add(this.mitemFFUtf8);
     this.mitemFileFormat.MenuItems.Add(this.mitemFFDefault);
     this.mitemFileFormat.Text = "Format";
     //
     // mitemFFAscii
     //
     this.mitemFFAscii.Text   = "Ascii";
     this.mitemFFAscii.Click += new System.EventHandler(this.mitemFFFormat_Click);
     //
     // mitemFFUnicode
     //
     this.mitemFFUnicode.Text   = "Unicode";
     this.mitemFFUnicode.Click += new System.EventHandler(this.mitemFFFormat_Click);
     //
     // mitemFFUtf7
     //
     this.mitemFFUtf7.Text   = "Utf7";
     this.mitemFFUtf7.Click += new System.EventHandler(this.mitemFFFormat_Click);
     //
     // mitemFFUtf8
     //
     this.mitemFFUtf8.Text   = "Utf8";
     this.mitemFFUtf8.Click += new System.EventHandler(this.mitemFFFormat_Click);
     //
     // mitemFFDefault
     //
     this.mitemFFDefault.Text   = "Default";
     this.mitemFFDefault.Click += new System.EventHandler(this.mitemFFFormat_Click);
     //
     // mitemEditPopup
     //
     this.mitemEditPopup.MenuItems.Add(this.mitemEditFont);
     this.mitemEditPopup.Text = "Edit";
     //
     // mitemEditFont
     //
     this.mitemEditFont.Text   = "Font...";
     this.mitemEditFont.Click += new System.EventHandler(this.mitemEditFont_Click);
     //
     // mitemToolsPopup
     //
     this.mitemToolsPopup.MenuItems.Add(this.mitemToolsOptions);
     this.mitemToolsPopup.Text = "Tools";
     //
     // mitemToolsOptions
     //
     this.mitemToolsOptions.Text   = "Options...";
     this.mitemToolsOptions.Click += new System.EventHandler(this.mitemToolsOptions_Click);
     //
     // mitemSettingsPopup
     //
     this.mitemSettingsPopup.MenuItems.Add(this.mitemSettingsSave);
     this.mitemSettingsPopup.MenuItems.Add(this.mitemSettingsRestore);
     this.mitemSettingsPopup.MenuItems.Add(this.mitemSettingsInit);
     this.mitemSettingsPopup.Text = "Settings";
     //
     // mitemSettingsSave
     //
     this.mitemSettingsSave.Text   = "Save";
     this.mitemSettingsSave.Click += new System.EventHandler(this.mitemSettingsSave_Click);
     //
     // mitemSettingsRestore
     //
     this.mitemSettingsRestore.Text   = "Restore";
     this.mitemSettingsRestore.Click += new System.EventHandler(this.mitemSettingsRestore_Click);
     //
     // mitemSettingsInit
     //
     this.mitemSettingsInit.Text   = "Initialize";
     this.mitemSettingsInit.Click += new System.EventHandler(this.mitemSettingsInit_Click);
     //
     // textInput
     //
     this.textInput.Location   = new System.Drawing.Point(8, 8);
     this.textInput.Multiline  = true;
     this.textInput.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.textInput.Size       = new System.Drawing.Size(224, 248);
     this.textInput.Text       = "Some text inside a textbox.";
     //
     // tbarCommands
     //
     this.tbarCommands.Buttons.Add(this.tbbEditFormat);
     this.tbarCommands.Buttons.Add(this.tbbViewOptions);
     this.tbarCommands.ImageList    = this.ilistCommands;
     this.tbarCommands.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.tbarCommands_ButtonClick);
     //
     // tbbEditFormat
     //
     this.tbbEditFormat.ImageIndex = 0;
     //
     // tbbViewOptions
     //
     this.tbbViewOptions.ImageIndex = 1;
     //
     // ilistCommands
     //
     this.ilistCommands.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
     this.ilistCommands.Images.Add(((System.Drawing.Image)(resources.GetObject("resource1"))));
     this.ilistCommands.ImageSize = new System.Drawing.Size(16, 16);
     //
     // cmenuMain
     //
     this.cmenuMain.MenuItems.Add(this.mitemProgramMenu);
     this.cmenuMain.MenuItems.Add(this.mitemToolbar);
     this.cmenuMain.Popup += new System.EventHandler(this.cmenuMain_Popup);
     //
     // mitemProgramMenu
     //
     this.mitemProgramMenu.Text   = "Program Menu";
     this.mitemProgramMenu.Click += new System.EventHandler(this.mitemProgramMenu_Click);
     //
     // mitemToolbar
     //
     this.mitemToolbar.Text   = "Toolbar";
     this.mitemToolbar.Click += new System.EventHandler(this.mitemToolbar_Click);
     //
     // FormMain
     //
     this.ContextMenu = this.cmenuMain;
     this.Controls.Add(this.textInput);
     this.Controls.Add(this.tbarCommands);
     this.Menu        = this.menuMain;
     this.MinimizeBox = false;
     this.Text        = "TextEdit";
     this.Load       += new System.EventHandler(this.FormMain_Load);
 }
Example #57
0
        private double GetImageHeight(int id)
        {
            double countHeight = ImageList.Where(x => x.Id <= id && x.Height != null).Sum(x => x.Height.Value);

            return(countHeight);
        }
Example #58
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmBase));

            this.imageList1 = new ImageList();
            this.imageList2 = new ImageList();
            base.SuspendLayout();
            this.imageList1.ImageStream      = (ImageListStreamer)componentResourceManager.GetObject("imageList1.ImageStream");
            this.imageList1.TransparentColor = Color.Transparent;
            this.imageList1.Images.SetKeyName(0, "share.png");
            this.imageList1.Images.SetKeyName(1, "sharedir.png");
            this.imageList1.Images.SetKeyName(2, "disk.png");
            this.imageList1.Images.SetKeyName(3, "folder.png");
            this.imageList1.Images.SetKeyName(4, "002.bmp");
            this.imageList1.Images.SetKeyName(5, "003.bmp");
            this.imageList1.Images.SetKeyName(6, "004.bmp");
            this.imageList1.Images.SetKeyName(7, "mdb.png");
            this.imageList1.Images.SetKeyName(8, "dataset.png");
            this.imageList1.Images.SetKeyName(9, "annotation.png");
            this.imageList1.Images.SetKeyName(10, "gdpoint.png");
            this.imageList1.Images.SetKeyName(11, "gdline.png");
            this.imageList1.Images.SetKeyName(12, "gdpolygon.png");
            this.imageList1.Images.SetKeyName(13, "011.bmp");
            this.imageList1.Images.SetKeyName(14, "012.bmp");
            this.imageList1.Images.SetKeyName(15, "013.bmp");
            this.imageList1.Images.SetKeyName(16, "014.bmp");
            this.imageList1.Images.SetKeyName(17, "015.bmp");
            this.imageList1.Images.SetKeyName(18, "016.bmp");
            this.imageList1.Images.SetKeyName(19, "017.bmp");
            this.imageList1.Images.SetKeyName(20, "018.bmp");
            this.imageList1.Images.SetKeyName(21, "019.bmp");
            this.imageList1.Images.SetKeyName(22, "020.bmp");
            this.imageList1.Images.SetKeyName(23, "021.bmp");
            this.imageList1.Images.SetKeyName(24, "022.bmp");
            this.imageList1.Images.SetKeyName(25, "023.bmp");
            this.imageList1.Images.SetKeyName(26, "024.bmp");
            this.imageList1.Images.SetKeyName(27, "025.bmp");
            this.imageList1.Images.SetKeyName(28, "026.bmp");
            this.imageList1.Images.SetKeyName(29, "027.bmp");
            this.imageList1.Images.SetKeyName(30, "033.bmp");
            this.imageList1.Images.SetKeyName(31, "034.bmp");
            this.imageList1.Images.SetKeyName(32, "010.bmp");
            this.imageList1.Images.SetKeyName(33, "SDE.png");
            this.imageList1.Images.SetKeyName(34, "addsde.png");
            this.imageList1.Images.SetKeyName(35, "sdeconn.png");
            this.imageList1.Images.SetKeyName(36, "e00.png");
            this.imageList1.Images.SetKeyName(37, "mdb.png");
            this.imageList1.Images.SetKeyName(38, "gdb-dataset.png");
            this.imageList1.Images.SetKeyName(39, "annotation.png");
            this.imageList1.Images.SetKeyName(40, "gdpoint.png");
            this.imageList1.Images.SetKeyName(41, "gdline.png");
            this.imageList1.Images.SetKeyName(42, "gdpolygon.png");
            this.imageList1.Images.SetKeyName(43, "geodatabase_sde.png");
            this.imageList1.Images.SetKeyName(44, "gdb-dataset.png");
            this.imageList1.Images.SetKeyName(45, "annotation.png");
            this.imageList1.Images.SetKeyName(46, "gdline.png");
            this.imageList1.Images.SetKeyName(47, "gdpoint.png");
            this.imageList1.Images.SetKeyName(48, "gdpolygon.png");
            this.imageList1.Images.SetKeyName(49, "GeodatabaseTable16.png");
            this.imageList1.Images.SetKeyName(50, "Layer_LYR_File16.png");
            this.imageList1.Images.SetKeyName(51, "GeodatabaseMosaicDataset16.png");
            this.imageList2.ImageStream      = (ImageListStreamer)componentResourceManager.GetObject("imageList2.ImageStream");
            this.imageList2.TransparentColor = Color.Transparent;
            this.imageList2.Images.SetKeyName(0, "LayerGroup16.png");
            this.imageList2.Images.SetKeyName(1, "LayerPoint16.png");
            this.imageList2.Images.SetKeyName(2, "LayerLine16.png");
            this.imageList2.Images.SetKeyName(3, "LayerPolygon16.png");
            this.imageList2.Images.SetKeyName(4, "LayerRaster16.png");
            this.imageList2.Images.SetKeyName(5, "LayerAnnotation16.png");
            this.imageList2.Images.SetKeyName(6, "LayerCAD16.png");
            this.imageList2.Images.SetKeyName(7, "LayerGeneric16.png");
            base.AutoScaleMode   = AutoScaleMode.None;
            base.ClientSize      = new Size(448, 262);
            base.FormBorderStyle = FormBorderStyle.FixedDialog;
            base.Name            = "frmBase";
            base.StartPosition   = FormStartPosition.CenterParent;
            this.Text            = "frmBase";
            base.ResumeLayout(false);
        }
Example #59
0
 public ImageListIndexHelper(ImageList imageList)
 {
     this._imageList = imageList;
 }
Example #60
0
 public void InitEx(PwGroup pg, ImageList ilClientIcons, PwDatabase pwDatabase)
 {
     InitEx(pg, false, ilClientIcons, pwDatabase);
 }