Beispiel #1
0
        private void fileItem_ButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
        {
            FileTypeItem fileTypeItem = o as FileTypeItem;

            if (fileTypeItem != null && !fileTypeItem.Equals(this.selectedItem))
            {
                if (this.selectedItem != null)
                {
                    this.selectedItem.UnSelected();
                }
                fileTypeItem.Selected();
                this.selectedItem = fileTypeItem;
                this.SetSelceted(this.selectedItem.FileTypeInfo);
                this.lab_FileDescribeContent.LabelProp = this.selectedItem.FileTypeInfo.Description;
            }
        }
Beispiel #2
0
 private void SetWigetPropeties(FileTypeInfo item, int cloum, FileTypeItem fileItem = null)
 {
     fileItem = (fileItem ?? new FileTypeItem());
     if (cloum == 0)
     {
         this.selectedItem = fileItem;
         this.SetSelceted(item);
         fileItem.Selected();
     }
     else
     {
         fileItem.UnSelected();
     }
     fileItem.ButtonReleaseEvent += new ButtonReleaseEventHandler(this.fileItem_ButtonReleaseEvent);
     fileItem.InitiaView(item);
     this.hb_FileType.Add(fileItem);
     Gtk.Box.BoxChild boxChild = (Gtk.Box.BoxChild) this.hb_FileType[fileItem];
     boxChild.Position = cloum;
     boxChild.Expand   = false;
     boxChild.Fill     = false;
 }