Prompts the user to specify a new access rule for a file.
상속: System.Windows.Forms.Form
예제 #1
0
        private void EditApplicationBTN_Click(object sender, EventArgs e)
        {
            try
            {
                // get application.
                ManagedApplication application = ApplicationToManageCB.SelectedItem as ManagedApplication;

                if (application == null)
                {
                    return;
                }

                // edit application.
                application = new ManagedApplicationDlg().ShowDialog(application);

                if (application == null)
                {
                    return;
                }

                // update list.
                ApplicationToManageCB.Items.RemoveAt(ApplicationToManageCB.SelectedIndex);
                ApplicationToManageCB.SelectedIndex = ApplicationToManageCB.Items.Add(application);
            }
            catch (Exception exception)
            {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }
예제 #2
0
        private void NewApplicationBTN_Click(object sender, EventArgs e)
        {
            try
            {
                ManagedApplication application = new ManagedApplicationDlg().ShowDialog(null);

                if (application == null)
                {
                    return;
                }

                ApplicationToManageCB.SelectedIndex = ApplicationToManageCB.Items.Add(application);
            }
            catch (Exception exception)
            {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }
        private void EditApplicationBTN_Click(object sender, EventArgs e)
        {
            try
            {
                // get application.
                ManagedApplication application = ApplicationToManageCB.SelectedItem as ManagedApplication;

                if (application == null)
                {
                    return;
                }

                // edit application.
                application = new ManagedApplicationDlg().ShowDialog(application);

                if (application == null)
                {
                    return;
                }

                // update list.
                ApplicationToManageCB.Items.RemoveAt(ApplicationToManageCB.SelectedIndex);
                ApplicationToManageCB.SelectedIndex = ApplicationToManageCB.Items.Add(application);
            }
            catch (Exception exception)
            {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }
        private void NewApplicationBTN_Click(object sender, EventArgs e)
        {
            try
            {
                ManagedApplication application = new ManagedApplicationDlg().ShowDialog(null);

                if (application == null)
                {
                    return;
                }

                ApplicationToManageCB.SelectedIndex = ApplicationToManageCB.Items.Add(application);
            }
            catch (Exception exception)
            {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }