示例#1
0
 public Sheet(FileTab fileTab, bool isMandatory = false)
 {
     this.FileTab          = fileTab;
     this.Name             = fileTab.ToLowerString();
     this.IsMandatory      = isMandatory;
     this.AvailableColumns = new List <Column>();
     this.ExpectedColumns  = new List <Column>();
     this.Indicators       = new List <Indicator>();
 }
示例#2
0
 void ITextEditorHelper.FollowReference(CodeReference codeRef, bool newTab)
 {
     Debug.Assert(FileTab != null);
     if (FileTab == null)
     {
         return;
     }
     FileTab.FollowReference(codeRef, newTab);
 }
示例#3
0
 void IDocumentViewerHelper.SetFocus()
 {
     Debug.Assert(!isDisposed);
     if (isDisposed)
     {
         return;
     }
     FileTab.TrySetFocus();
 }
示例#4
0
        private void FileTab_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            FileTab.Focus();
            TabControl control = sender as TabControl;

            if (control.SelectedIndex >= ((ObservableCollection <FileTabItem>)control.ItemsSource).Count)
            {
                control.SelectedItem = e.RemovedItems[0];
            }
        }
示例#5
0
 void IDocumentViewerHelper.FollowReference(TextReference textRef, bool newTab)
 {
     Debug.Assert(!isDisposed);
     if (isDisposed)
     {
         return;
     }
     Debug.Assert(FileTab != null);
     if (FileTab == null)
     {
         return;
     }
     FileTab.FollowReference(textRef, newTab);
 }
示例#6
0
        public override void OnInitialization()
        {
            double x = 0;

            foreach (Selectable selectable in this.Selectable)
            {
                FileTab t = new FileTab(selectable)
                {
                    Position = new Vector(x, 0)
                };
                this.Children.Add(t);
                x += t.Label.Width;
            }
        }
示例#7
0
        public IColumnProvider Create(FileTab fileTab)
        {
            switch (fileTab)
            {
            case FileTab.Effectifs:
                return(new EffectifColumnProvider());

            case FileTab.Maladies:
                return(new DiseaseColumnProvider());

            case FileTab.Absences:
                return(new AbsenceColumnProvider());

            default:
                throw new Exception("Unknown tab name!");
            }
        }
示例#8
0
 private void EnableWalletCommands()
 {
     FileTab.EnableManageWallet();
 }
示例#9
0
 private void DisableWalletCommands()
 {
     FileTab.DisableManageWallet();
 }
示例#10
0
 void ITextEditorHelper.SetFocus()
 {
     FileTab.TrySetFocus();
 }
示例#11
0
        public FileImportForm(bool startOnList, int mode, int type)
        {
            m_pictureManager = PictureManager.This;
            m_mode = mode;
            m_type = type;

            m_statusTab	= new StatusTab(this);
            m_formatTab	= new FormatTab(this);
            m_fileTab	= new FileTab(this);
            m_importTab = new ImportTab(this);
            m_finishTab = new FinishTab(this);

            // Required for Windows Form Designer support
            InitializeComponent();

            //tabControl1.FlatStyle = FlatStyle.Flat;

            setLockedFeatures();

            detailComboBox.Items.Clear();
            detailComboBox.Text = "";

            previousButton.Enabled = false;
            nextButton.Enabled = true;
            doPersist = false;

            m_statusTab.tabActivated();		// make sure the list of current imports appears there, in case the Back button is clicked
            m_tab = startOnList ? 0 : 1;
            this.tabControl1.SelectedIndex = m_tab;
            m_formatTab.tabActivated();

            /*
             * how do we make tabs not clickable?
            tabControl1.
            fileTabPage.CanSelect = false;
            importTabPage.CanSelect = false;
            resultsTabPage.CanSelect = false;
            */

            Project.setDlgIcon(this);
        }
示例#12
0
 public void ClickFileTab()
 {
     FileTab.Click();
 }