public void CreatePreviewImages(Document docTemp)
 {
     //IL_0008: Unknown result type (might be due to invalid IL or missing references)
     if (!this.PreviewImageRead)
     {
         FamilyDetail.CreatePreviewImages(docTemp, this.PreviewImagePath);
         this.m_bIsPreviewImageRead = true;
     }
 }
 public void GetImagesFromDocument(Document docFamily)
 {
     //IL_0000: Unknown result type (might be due to invalid IL or missing references)
     FamilyDetail.GetImagesFromDocument(docFamily, this.ViewImagesPath);
     this.CheckedViewImages = new Dictionary <string, bool>();
     if (Directory.Exists(this.ViewImagesPath))
     {
         string[] files = Directory.GetFiles(this.ViewImagesPath, "*.jpg");
         foreach (string path in files)
         {
             this.CheckedViewImages.Add(Path.GetFileNameWithoutExtension(path), true);
         }
     }
     this.m_bIsImageRead = true;
 }
        public int Compare(object a, object b)
        {
            try
            {
                int          num           = 0;
                ListViewItem listViewItem  = a as ListViewItem;
                ListViewItem listViewItem2 = b as ListViewItem;
                if (listViewItem == null && listViewItem2 == null)
                {
                    num = 0;
                }
                else if (listViewItem == null)
                {
                    num = -1;
                }
                else if (listViewItem2 == null)
                {
                    num = 1;
                }
                switch (this.sortedBy)
                {
                case SortedByDataType.STRING:
                    if (listViewItem.ListView.Columns[this.ColumnNo].Name == "lvwitmSize")
                    {
                        FamilyDetail familyDetail  = listViewItem.Tag as FamilyDetail;
                        FamilyDetail familyDetail2 = listViewItem2.Tag as FamilyDetail;
                        return(familyDetail.FileSize.CompareTo(familyDetail2.FileSize));
                    }
                    num = string.Compare(listViewItem.SubItems[this.ColumnNo].Text, listViewItem2.SubItems[this.ColumnNo].Text, true);
                    break;

                case SortedByDataType.INTEGER:
                    num = int.Parse(listViewItem.SubItems[this.ColumnName].Text).CompareTo(int.Parse(listViewItem2.SubItems[this.ColumnName].Text));
                    break;
                }
                if (this.ListViewSortOrder == SortOrder.Descending)
                {
                    num *= -1;
                }
                return(num);
            }
            catch
            {
                return(0);
            }
        }
        public frmParameters(FamilyDetail famDetial, bool IsIDAndCheckedColumnShown)
        {
            this.InitializeComponent();
            this.m_famDetail = famDetial;
            this.Text        = UtilEnvMsg.Parameters + " - " + Path.GetFileName(this.m_famDetail.FamilyPath);
            Dictionary <string, DataTable> paramDict = this.m_famDetail.ParamDict;

            foreach (string key in paramDict.Keys)
            {
                this.cboType.Items.Add(key);
            }
            if (this.cboType.Items.Count > 0)
            {
                this.cboType.SelectedIndex = 0;
            }
            this.m_IsIDAndCheckedColumnShown   = IsIDAndCheckedColumnShown;
            this.dgvParams.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
        }