Exemplo n.º 1
0
        private void ToolBarService_OnToolbarRegistered(object sender, ToolbarEventArgs e)
        {
            ToolStripMenuItem item = new ToolStripMenuItem(e.ToolBarName)
            {
                CheckOnClick = true
            };

            item.Click += (o, args) =>
            {
                ToolStripMenuItem menuItem = (ToolStripMenuItem)o;

                if (menuItem.Checked)
                {
                    _toolBarService.ShowToolBar(menuItem.Text);
                }
                else
                {
                    _toolBarService.HideToolBar(menuItem.Text);
                }
            };
            ToolBarMenuItem.DropDownItems.Add(item);
        }
        private void DojoTestListStatusGrid1_ToolbarClicked(object sender, ToolbarEventArgs e)
        {
            switch (e.SelectedToolbarItem.Command)
            {
            case "new":
                resetControls();
                DojoTestListStatusEditor1.DojoTestListStatusID = 0;
                DojoTestListStatusEditor1.Visible = true;
                break;

            case "view":
                resetControls();
                DojoTestListStatusView1.DojoTestListStatusID = DojoTestListStatusGrid1.SelectedID;
                DojoTestListStatusView1.Visible = true;
                break;

            case "edit":
                resetControls();
                DojoTestListStatusEditor1.DojoTestListStatusID = DojoTestListStatusGrid1.SelectedID;
                DojoTestListStatusEditor1.Visible = true;
                break;
            }
        }
Exemplo n.º 3
0
        private void YariMediaRecordGrid1_ToolbarClicked(object sender, ToolbarEventArgs e)
        {
            switch (e.SelectedToolbarItem.Command)
            {
            case "new":
                resetControls();
                YariMediaRecordEditor1.YariMediaRecordID = 0;
                YariMediaRecordEditor1.Visible           = true;
                break;

            case "view":
                resetControls();
                YariMediaRecordView1.YariMediaRecordID = YariMediaRecordGrid1.SelectedID;
                YariMediaRecordView1.Visible           = true;
                break;

            case "edit":
                resetControls();
                YariMediaRecordEditor1.YariMediaRecordID = YariMediaRecordGrid1.SelectedID;
                YariMediaRecordEditor1.Visible           = true;
                break;
            }
        }
        private void DojoSeminarReservationGrid1_ToolbarClicked(object sender, ToolbarEventArgs e)
        {
            switch (e.SelectedToolbarItem.Command)
            {
            case "new":
                resetControls();
                DojoSeminarReservationEditor1.DojoSeminarReservationID = 0;
                DojoSeminarReservationEditor1.Visible = true;
                break;

            case "view":
                resetControls();
                DojoSeminarReservationView1.DojoSeminarReservationID = DojoSeminarReservationGrid1.SelectedID;
                DojoSeminarReservationView1.Visible = true;
                break;

            case "edit":
                resetControls();
                DojoSeminarReservationEditor1.DojoSeminarReservationID = DojoSeminarReservationGrid1.SelectedID;
                DojoSeminarReservationEditor1.Visible = true;
                break;
            }
        }
Exemplo n.º 5
0
        private void DbContentRatingGrid1_ToolbarClicked(object sender, ToolbarEventArgs e)
        {
            switch (e.SelectedToolbarItem.Command)
            {
            case "new":
                resetControls();
                DbContentRatingEditor1.DbContentRatingID = 0;
                DbContentRatingEditor1.Visible           = true;
                break;

            case "view":
                resetControls();
                DbContentRatingView1.DbContentRatingID = DbContentRatingGrid1.SelectedID;
                DbContentRatingView1.Visible           = true;
                break;

            case "edit":
                resetControls();
                DbContentRatingEditor1.DbContentRatingID = DbContentRatingGrid1.SelectedID;
                DbContentRatingEditor1.Visible           = true;
                break;
            }
        }
Exemplo n.º 6
0
        private void GreyFoxUserGrid1_ToolbarClicked(object sender, ToolbarEventArgs e)
        {
            switch (e.SelectedToolbarItem.Command)
            {
            case "new":
                resetControls();
                GreyFoxUserEditor1.GreyFoxUserID = 0;
                GreyFoxUserEditor1.Visible       = true;
                break;

            case "view":
                resetControls();
                GreyFoxUserView1.GreyFoxUserID = GreyFoxUserGrid1.SelectedID;
                GreyFoxUserView1.Visible       = true;
                break;

            case "edit":
                resetControls();
                GreyFoxUserEditor1.GreyFoxUserID = GreyFoxUserGrid1.SelectedID;
                GreyFoxUserEditor1.Visible       = true;
                break;
            }
        }
Exemplo n.º 7
0
        private void DojoBulkAttendanceEntryGrid1_ToolbarClicked(object sender, ToolbarEventArgs e)
        {
            switch (e.SelectedToolbarItem.Command)
            {
            case "new":
                resetControls();
                DojoBulkAttendanceEntryEditor1.DojoBulkAttendanceEntryID = 0;
                DojoBulkAttendanceEntryEditor1.Visible = true;
                break;

            case "view":
                resetControls();
                DojoBulkAttendanceEntryView1.DojoBulkAttendanceEntryID = DojoBulkAttendanceEntryGrid1.SelectedID;
                DojoBulkAttendanceEntryView1.Visible = true;
                break;

            case "edit":
                resetControls();
                DojoBulkAttendanceEntryEditor1.DojoBulkAttendanceEntryID = DojoBulkAttendanceEntryGrid1.SelectedID;
                DojoBulkAttendanceEntryEditor1.Visible = true;
                break;
            }
        }
        private void DojoMembershipTemplateGrid1_ToolbarClicked(object sender, ToolbarEventArgs e)
        {
            switch (e.SelectedToolbarItem.Command)
            {
            case "new":
                resetControls();
                DojoMembershipTemplateEditor1.DojoMembershipTemplateID = 0;
                DojoMembershipTemplateEditor1.Visible = true;
                break;

            case "view":
                resetControls();
                DojoMembershipTemplateView1.DojoMembershipTemplateID = DojoMembershipTemplateGrid1.SelectedID;
                DojoMembershipTemplateView1.Visible = true;
                break;

            case "edit":
                resetControls();
                DojoMembershipTemplateEditor1.DojoMembershipTemplateID = DojoMembershipTemplateGrid1.SelectedID;
                DojoMembershipTemplateEditor1.Visible = true;
                break;
            }
        }