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(); }
private void buttonSupplyList_Click(object sender, EventArgs e) { SupplyListForm f = new SupplyListForm(); f.ShowDialog(); }