Пример #1
0
        private void CurrentDocumentBackButton_Click(object sender, EventArgs e)
        {
            CoverUpdatePanel();

            AllDocumentsPanel.BringToFront();
            EditButtonsPanel.Show();

            if (bNeedSplash)
            {
                bC = true;
            }
        }
Пример #2
0
        private void InfiniumDocumentsMenu_SelectedChanged(object sender, string Name, int index)
        {
            CoverUpdatePanel();

            if (Name == "Лента")
            {
                UpdatesPanel.BringToFront();
                DateTypePanel.BringToFront();
                EditButtonsPanel.Hide();

                if (InfiniumDocumentsMenu.Items[0].Count > 0)
                {
                    NewUpdatesButton.Checked   = true;
                    TodayUpdatesButton.Checked = false;
                    WeekUpdatesButton.Checked  = false;
                    MonthUpdatesButton.Checked = false;
                }
                else
                {
                    NewUpdatesButton.Checked   = false;
                    TodayUpdatesButton.Checked = true;
                    WeekUpdatesButton.Checked  = false;
                    MonthUpdatesButton.Checked = false;
                }

                FillUpdates();
                DocumentsUpdatesList.InitializeItems();

                ActiveNotifySystem.ClearSubscribesRecords(Security.CurrentUserID, this.Name);
                InfiniumDocumentsMenu.Items[0].Count = 0;
            }

            if (Name == "Все документы")
            {
                AllDocumentsPanel.BringToFront();
                FilterPanel.BringToFront();
                EditButtonsPanel.Show();
            }

            if (Name == "Согласование")
            {
                UpdatesPanel.BringToFront();
                StatusPanel.BringToFront();
                EditButtonsPanel.Hide();

                FillUpdates();
                DocumentsUpdatesList.InitializeItems();
            }

            if (Name == "Мои документы")
            {
                UpdatesPanel.BringToFront();
                MyDocumentsPanel.BringToFront();
                EditButtonsPanel.Hide();

                FillUpdates();
                DocumentsUpdatesList.InitializeItems();
            }

            if (bNeedSplash)
            {
                bC = true;
            }
        }