コード例 #1
0
ファイル: MainForm.cs プロジェクト: ricardotx/StockManager
        /// <summary>
        /// User button click
        /// </summary>
        private void btnUsers_Click(object sender, EventArgs e)
        {
            SetSubMenusVisibility();
            SetMarkerPosition(btnUsers);

            // Show the UsersUser view
            pnlViews.Controls.Clear();
            lbViewTitle.Text = Phrases.GlobalUsers;
            UserControl ucUsers = new UsersUc
            {
                Dock = DockStyle.Fill
            };

            pnlViews.Controls.Add(ucUsers);
        }
コード例 #2
0
 public UserForm(UsersUc usersUserControl)
 {
     InitializeComponent();
     _usersUserControl = usersUserControl;
     SetTranslatedPhrases();
 }