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>(); }
void ITextEditorHelper.FollowReference(CodeReference codeRef, bool newTab) { Debug.Assert(FileTab != null); if (FileTab == null) { return; } FileTab.FollowReference(codeRef, newTab); }
void IDocumentViewerHelper.SetFocus() { Debug.Assert(!isDisposed); if (isDisposed) { return; } FileTab.TrySetFocus(); }
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]; } }
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); }
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; } }
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!"); } }
private void EnableWalletCommands() { FileTab.EnableManageWallet(); }
private void DisableWalletCommands() { FileTab.DisableManageWallet(); }
void ITextEditorHelper.SetFocus() { FileTab.TrySetFocus(); }
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); }
public void ClickFileTab() { FileTab.Click(); }