Ejemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();
            buttonEmployeesList.Text   = Properties.Resources.Employees;
            buttonStoragesList.Text    = Properties.Resources.Storages;
            buttonCellsList.Text       = Properties.Resources.Cells;
            buttonGoodsList.Text       = Properties.Resources.Goods;
            buttonContractorsList.Text = Properties.Resources.Contractors;
            buttonCardsList.Text       = Properties.Resources.Cards;
            // buttonSupplyContracts.Text = Properties.Resources.SupplyContracts;
            buttonSupplyList.Text     = Properties.Resources.Supplies;
            buttonMovementsList.Text  = Properties.Resources.Movements;
            buttonShipmentsList.Text  = Properties.Resources.Shipments;
            buttonOperationsList.Text = Properties.Resources.Operations;
            buttonBalance.Text        = Properties.Resources.Balance;
            buttonPrediction.Text     = Properties.Resources.Predict;

            this.Text = Properties.Resources.PapaCarlo;
            if (LoginInfo.Position == 1)//Начальник
            {
                SupplyListForm f = new SupplyListForm();
                f.ShowDialog();
            }
            else if (LoginInfo.Position == 2)//Бухгалтер
            {
                BalanceForm f = new BalanceForm();
                f.ShowDialog();
            }
            else if (LoginInfo.Position == 3)//Кладовщик
            {
                MovementsListForm f = new MovementsListForm();
                f.ShowDialog();
            }
            showButtonsForPosition();
        }
Ejemplo n.º 2
0
        private void buttonBalance_Click(object sender, EventArgs e)
        {
            BalanceForm f = new BalanceForm();

            f.ShowDialog();
        }