コード例 #1
0
ファイル: FrmSetupUOM.cs プロジェクト: cadillacshine/GIM
        public FrmSetupUOM()
        {
            InitializeComponent();

            repository = new UOMRepository();

            BtnAdd     = controlNavigator1.Buttons.CustomButtons[0];
            BtnEdit    = controlNavigator1.Buttons.CustomButtons[1];
            BtnSave    = controlNavigator1.Buttons.CustomButtons[2];
            BtnCancel  = controlNavigator1.Buttons.CustomButtons[3];
            BtnSwitch  = controlNavigator1.Buttons.CustomButtons[4];
            BtnRefresh = controlNavigator1.Buttons.CustomButtons[5];
        }
コード例 #2
0
        public FrmItem()
        {
            InitializeComponent();

            itemRepository   = new ItemRepository();
            uomRepository    = new UOMRepository();
            statusRepository = new StatusRepository();

            BtnAdd     = controlNavigator1.Buttons.CustomButtons[0];
            BtnEdit    = controlNavigator1.Buttons.CustomButtons[1];
            BtnSave    = controlNavigator1.Buttons.CustomButtons[2];
            BtnCancel  = controlNavigator1.Buttons.CustomButtons[3];
            BtnSwitch  = controlNavigator1.Buttons.CustomButtons[4];
            BtnRefresh = controlNavigator1.Buttons.CustomButtons[5];

            controlNavigator1.Buttons.ImageList = sharedImageCollection1;
            controlNavigator1.Buttons.CustomButtons[0].ImageIndex = 0;
            controlNavigator1.Buttons.CustomButtons[1].ImageIndex = 1;
            controlNavigator1.Buttons.CustomButtons[2].ImageIndex = 2;
            controlNavigator1.Buttons.CustomButtons[3].ImageIndex = 3;
            controlNavigator1.Buttons.CustomButtons[4].ImageIndex = 4;
            controlNavigator1.Buttons.CustomButtons[5].ImageIndex = 5;
        }