Example #1
0
        public FrmCompany()
        {
            InitializeComponent();
            FormUtility.FormatForm(this);
            lblNotify1.Text = "";
            m_Company       = null;
            m_Deputy        = null;
            m_User          = null;
            IGridviewContextMenu ctx       = new CompanyContextMenu();
            IGridviewContextMenu ctxDeputy = new DeputyContextMenu();

            gridUtility1 = new GridUtility(gridControl1, ctxDeputy);
            gridUtility2 = new GridUtility(gridControl2, ctx);
        }
Example #2
0
        public FrmSupplier()
        {
            InitializeComponent();
            FormUtility.FormatForm(this);
            lblNotify1.Text = "";
            m_Suplier       = null;
            m_Subsupplier   = null;
            m_User          = null;
            IGridviewContextMenu ctx       = new CompanyContextMenu();
            IGridviewContextMenu ctxDeputy = new DeputyContextMenu();

            gridUtility1 = new GridUtility(gridControl1, ctxDeputy);
            ImageList myImageList = new ImageList();

            myImageList = new ImageList();
            myImageList.Images.Add(TmTech_v1.Properties.Resources.iconSelect);
            myImageList.Images.Add(TmTech_v1.Properties.Resources.folder);
            myImageList.Images.Add(TmTech_v1.Properties.Resources.warming);
            treeviewsupplier.ImageList          = myImageList;
            treeviewsupplier.SelectedImageIndex = 0;
            treeviewsupplier.DrawNode          += Treeviewsupplier_DrawNode;
        }