예제 #1
0
        protected TabContent RegisterTabContent()
        {
            var tc = new TabContent();

            contentList.Add(tc);              // Register
            return(tc);
        }
예제 #2
0
        public void TabView_WhenSettingTheActiveTab_KeepsCoherentState()
        {
            var tabView = new TabView();

            Assert.That(tabView.value, Is.EqualTo(-1));
            var tab1 = new TabContent {
                TabName = "Tab1"
            };
            var tab2 = new TabContent {
                TabName = "Tab2"
            };
            var tab3 = new TabContent {
                TabName = "Tab3"
            };
            var tabs = new List <TabContent> {
                tab1, tab2, tab3
            };

            tabView.Tabs = tabs;
            Assert.That(tabView.value, Is.EqualTo(-1));
            var header  = tabView.Q(className: "tab-view__tab-header");
            var content = tabView.Q(className: "tab-view__tab-content");

            for (var index = -2; index < 5; ++index)
            {
                var expectedIndex = index >= 0 && index < tabs.Count ? index : -1;
                tabView.value = index;
                Assert.That(tabView.value, Is.EqualTo(expectedIndex));

                for (var i = 0; i < tabs.Count; ++i)
                {
                    Assert.That(tabs[i].style.display, Is.EqualTo(new StyleEnum <DisplayStyle>(expectedIndex == i ? DisplayStyle.Flex : DisplayStyle.None)));
                }
            }
        }
예제 #3
0
        private void employees_Click(object sender, EventArgs e)
        {
            // Moving the buttonSelector
            ButtonSelector.Top    = employees.Top;
            ButtonSelector.Height = employees.Height;

            // Show the employees Panel
            Console.WriteLine("employees Showing");
            tabControl.SelectedIndex = 0;

            // Hiding all the other tabs avilable
            tabControl.TabPages[1].Hide();
            tabControl.TabPages[2].Hide();
            tabControl.TabPages[3].Hide();

            // Loading tab's content
            TabContent m = new TabContent(this, 0, TabChooser.Employees);

            m.TopLevel = false;

            // Attching it to the TabPage
            tabControl.TabPages[0].Controls.Add(m);

            // Showing the content
            m.FormBorderStyle = FormBorderStyle.None;
            m.Dock            = DockStyle.Fill;
            m.Show();

            tabControl.TabPages[0].Show();
        }
예제 #4
0
 public SearchResultsTab(Category category)
 {
     this.InitializeComponent();
     CustomTabId = "Search_" + category.id;
     Header      = category.name;
     TabContent.Search(category);
 }
예제 #5
0
        private TabContent QryTabContent(List <string> secLst)
        {
            //List<DateTime> dtLst = new List<DateTime> {new DateTime(2019,6,15), new DateTime(2019, 6, 16) };
            List <DateTime> dtLst = new List <DateTime>();
            {
                var dt = DateTime.Now;
                var wd = dt.DayOfWeek;
                for (int i = 1; i < 8; i++)
                {
                    dtLst.Add(dt.AddDays(i - (int)wd));
                }
            }

            var tc = new TabContent();

            tc.planCols = new List <string> {
                "Kế hoạch", "Ban", "Tình trạng"
            };
            tc.taskCols = new List <string> {
                "Công việc", "Ban", "Tình trạng"
            };
            tc.recs = new List <DayTask>();
            //qry task
            foreach (DateTime dt in dtLst)
            {
                List <TaskRec> tasks = QryTask(dt, secLst);
                var            rec   = new DayTask
                {
                    date  = dt.ToString(lConfigMng.GetDisplayDateFormat()),
                    tasks = tasks
                };
                tc.recs.Add(rec);
            }
            return(tc);
        }
예제 #6
0
        private void ManageATMs_Click(object sender, EventArgs e)
        {
            // Moving the buttonSelector
            ButtonSelector.Top    = ManageATMs.Top;
            ButtonSelector.Height = ManageATMs.Height;

            // Show the ATMsContent Panel
            Console.WriteLine("ATMs Showing");

            // Hiding all the other tabs avilable
            tabControl.TabPages[0].Hide();
            tabControl.TabPages[2].Hide();
            tabControl.TabPages[3].Hide();

            // Loading tab's content
            TabContent m = new TabContent(this, 1, TabChooser.ATM);

            m.TopLevel = false;

            // Attching it to the TabPage
            tabControl.TabPages[1].Controls.Add(m);

            // Showing the content
            m.FormBorderStyle = FormBorderStyle.None;
            m.Dock            = DockStyle.Fill;
            m.Show();

            // Displaying the TabPage
            tabControl.TabPages[1].Show();
        }
예제 #7
0
        private object QryTabContent(string topic)
        {
            var tc = new TabContent();

            var tbl = appConfig.s_config.GetTable(TableIdx.Document);
            var sb  = new SearchBuilder(tbl, m_cp);

            sb.Clear();
            sb.Add(DocumentTblInfo.ColIdx.topic.ToField(), topic);
            sb.Search();
            tc.docCols = new List <string> {
                DocumentTblInfo.ColIdx.title.ToAlias(),
                    DocumentTblInfo.ColIdx.topic.ToAlias(),
                    DocumentTblInfo.ColIdx.link.ToAlias(),
                    DocumentTblInfo.ColIdx.note.ToAlias(),
            };
            tc.recs = new List <DocRec>();
            foreach (DataRow row in sb.dc.m_dataTable.Rows)
            {
                var rec = new DocRec();
                rec.title = row[DocumentTblInfo.ColIdx.title.ToField()].ToString();
                rec.topic = row[DocumentTblInfo.ColIdx.topic.ToField()].ToString();
                rec.link  = row[DocumentTblInfo.ColIdx.link.ToField()].ToString();
                rec.note  = row[DocumentTblInfo.ColIdx.note.ToField()].ToString();
                tc.recs.Add(rec);
            }
            return(tc);
        }
        public async Task <ActionResult <TabContent> > PostTabContent(TabContent tabContent)
        {
            dbContext.TabContents.Add(tabContent);
            await dbContext.SaveChangesAsync();

            return(CreatedAtAction("GetTabContent", new { id = tabContent.Id }, tabContent));
        }
예제 #9
0
        private void DirList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ShowDirPictures();
            TabContent.HideTabContent();
            imageList.Focus();

            scrollViewer.ScrollToVerticalOffset(0);
        }
        private void Button_NewItem(object sender, RoutedEventArgs e)
        {
            InnerStructItem item = _CurInfo.CreateItem();

            _ItemList.HideNoRecord();
            TabContent.HideTabContent();

            SetDataContent(item);
        }
예제 #11
0
 private void TabViewItem_Loaded(object sender, RoutedEventArgs e)
 {
     if (loaded)
     {
         return;
     }
     loaded = true;
     TabContent.Navigate(page, CustomTabId);
 }
예제 #12
0
 private void TabViewItem_Loaded(object sender, RoutedEventArgs e)
 {
     if (loaded)
     {
         return;
     }
     loaded = true;
     TabContent.LoadCategory(category);
 }
        private void AddTab()
        {
            if (_ItemList == null)
            {
                _ItemList = new InnerStructItemList();
                _ItemList.SelectChanged += ConItem_SelectionChanged;
                TabContent.AddTabItem(TAB_CONSTRUCT_ITEM_STR, _ItemList, TabPopType.POP_CLICK);
            }

            _ItemList.SetListDataContent(_CurInfo._InnerStructItemCollection);
            TabContent.ShowTabContent(TAB_CONSTRUCT_ITEM_STR);
        }
        public void ConItem_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ItemAttrPanel.Visibility = System.Windows.Visibility.Visible;

            if (e.AddedItems.Count > 0)
            {
                _CurItem = e.AddedItems[0] as InnerStructItem;
                ItemAttrPanel.DataContext = _CurItem;
            }

            TabContent.HideTabContent();

            //InitItemType1();
        }
예제 #15
0
        private void Items_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var addedItem = e.AddedItems.FirstOrDefault();

            if (addedItem is TabViewItem addedTabItem)
            {
                _tickEvent.Triger(() =>
                {
                    AppData.SetSelectedItem(addedTabItem);
                    ApplicationView.GetForCurrentView().Title = addedTabItem.Header.ToString();
                    ActiveTabContent = AppData.CustomTabViewItems[AppData.SelectedIndex].TabContent;
                }, 1, "Items_SelectionChanged");
            }
        }
예제 #16
0
        private object QryTabContent(string grpId)
        {
            var tc   = new TabContent();
            var bgtb = appConfig.s_config.GetTable(TableIdx.Budgrp);
            var bgsb = new SearchBuilder(bgtb, m_cp);

            bgsb.Clear();
            bgsb.Add(BudgrpTblInfo.ColIdx.grp.ToField(), grpId);
            bgsb.Search();
            var bgrec = new BudgrpRec();

            for (int i = 0; i < bgsb.dc.m_dataTable.Rows.Count; i++)
            {
                var row = bgsb.dc.m_dataTable.Rows[i];
                bgrec.name  = row[BudgrpTblInfo.ColIdx.name.ToField()].ToString();
                bgrec.about = row[BudgrpTblInfo.ColIdx.about.ToField()].ToString();
                break;
            }
            tc.budgrpRec = bgrec;

            var trntb = appConfig.s_config.GetTable(TableIdx.Training);
            var trnsb = new SearchBuilder(trntb, m_cp);

            trnsb.Clear();
            trnsb.Add(TrainingTblInfo.ColIdx.bgrp.ToField(), grpId);
            trnsb.Search();
            tc.trngCols = new List <string> {
                TrainingTblInfo.ColIdx.date.ToAlias(),
                    TrainingTblInfo.ColIdx.topic.ToAlias(),
                    TrainingTblInfo.ColIdx.trnr.ToAlias(),
                    TrainingTblInfo.ColIdx.cmnt.ToAlias(),
                    TrainingTblInfo.ColIdx.star.ToAlias(),
            };
            tc.recs = new List <TrngRec>();
            foreach (DataRow row in trnsb.dc.m_dataTable.Rows)
            {
                var      trnrec   = new TrngRec();
                DateTime dateTime = (DateTime)row[TrainingTblInfo.ColIdx.date.ToField()];
                trnrec.date  = dateTime.ToString(lConfigMng.GetDisplayDateFormat());
                trnrec.topic = row[TrainingTblInfo.ColIdx.topic.ToField()].ToString();
                TrainingTblInfo.Trainer trainer = (TrainingTblInfo.Trainer) int.Parse(row[TrainingTblInfo.ColIdx.trnr.ToField()].ToString());
                trnrec.trainer = trainer.ToDesc();
                trnrec.cmnt    = row[TrainingTblInfo.ColIdx.cmnt.ToField()].ToString();
                TrainingTblInfo.Star star = (TrainingTblInfo.Star) int.Parse(row[TrainingTblInfo.ColIdx.star.ToField()].ToString());
                trnrec.star = star.ToDesc();
                tc.recs.Add(trnrec);
            }
            return(tc);
        }
예제 #17
0
        public Tab AddTab(string id, string cssClass, bool isActive, Func<dynamic, HelperResult> navTemplate, Func<dynamic, HelperResult> contentTemplate)
        {
            var newTab = new TabContent()
            {
                Id = id,
                CssClass = string.IsNullOrWhiteSpace(cssClass) ? TabContent.DEFAULT_CSS_CLASSES : TabContent.DEFAULT_CSS_CLASSES + " " + cssClass,
                Content = contentTemplate(null).ToHtmlString(),
                IsActive = isActive,
                NavContent = navTemplate(null).ToHtmlString(),
            };

            _items.Add(newTab);

            return this;
        }
예제 #18
0
        /// <summary>
        /// Open wizard what will be next step
        /// If you generate self-sign CA root certificate, next step can be to open form form issue certificate base on certificate request file ganerated
        /// using menu option "Create Request"
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void btnContinue_Click(object sender, RoutedEventArgs e)
        {
            string CARootFileNamePath       = tbPathName.Text;
            string CARootPubKeyFileNamePath = tbPathName.Text + "\\" + tbPublicKeyName.Text;

            if (!String.IsNullOrEmpty(CARootFileNamePath) && File.Exists(CARootFileNamePath))
            {
                MetroWindow metroWin   = (MetroWindow)Application.Current.MainWindow;
                var         mySettings = new MetroDialogSettings()
                {
                    AffirmativeButtonText = "Issue certificate base on request",
                    NegativeButtonText    = "Cancel",
                    ColorScheme           = MetroDialogColorScheme.Theme
                };
                MessageDialogResult result = await metroWin.ShowMessageAsync("INFO",
                                                                             "If you wish to generate certificate base on certificate request file (.csr) inside menu option 'Create Request'," + "\n" +
                                                                             "use button 'Issue certificate base on request'." + "\n" +
                                                                             "Generated CA root certificate: " + tbSignedCertName.Text + "\n" +
                                                                             "will be use to sing certificate requst (.csr) file, generated inside menu option 'Create Request'.",
                                                                             MessageDialogStyle.AffirmativeAndNegative, mySettings);

                if (result == MessageDialogResult.Affirmative)
                {
                    // open menu "Issue Certificate"
                    MainWindow mw = new MainWindow();

                    string header0 = "Issue Certificate";
                    IEnumerable <TabablzControl> tctrl;
                    mw.GetTabablzData(out header0, out tctrl);
                    header0 = "Issue Certificate";

                    CertData.cerPFXFilePath = tbPathName.Text + "\\" + tbPrivateKeyName.Text;

                    IssueCert gr = new IssueCert();

                    TabContent tc1 = new TabContent(header0, gr);
                    mw.AddTabablzData(header0, tctrl, tc1);

                    mw.sbiSelectedMenuOption.Content = header0;
                }
                else if (result == MessageDialogResult.Negative)
                {
                }
            }
        }
예제 #19
0
        private void SetObjectControlView()
        {
            var viewTab = new TabButton()
            {
                Text = "View",
            };

            var viewContent = new TabContent()
            {
                WidthSpecification  = LayoutParamPolicies.MatchParent,
                HeightSpecification = LayoutParamPolicies.MatchParent,
            };

            objectControlView = new ObjectControlView();
            viewContent.Add(objectControlView);

            tabView.AddTab(viewTab, viewContent);
        }
예제 #20
0
        protected void AddTab(TabContent tabContent, string text)
        {
            if (!contentList.Contains(tabContent))               // XXX: Keep for testing
            {
                throw new Exception("The TabContent is not registert");
            }

            tabs++;
            var tabHead = new TabHeader(text, tabs);

            tabHead.button.Clicked += delegate
            {
                editFrameAdapter.PassToTabView(tabHead, CurrTreeStore);
            };

            tabList.Add(tabHead);
            tabView.AppendPage(tabContent.scrollWin, tabHead);
        }
예제 #21
0
        public void SelectedPath()
        {
            if (TabContent.GetTabItem(TAB_PATH_STR) == null)
            {
                if (PictureManager.Instance.PictureDirectories.Count != 0)
                {
                    PicturePathList pathList = new PicturePathList();
                    pathList.InitPathEvent();
                    pathList.SelectChanged += DirList_SelectionChanged;

                    TabContent.AddTabItem(TAB_PATH_STR, pathList, TabPopType.POP_CLICK);
                    TabContent.ShowTabContent(TAB_PATH_STR);
                }
            }
            else
            {
                PicturePathList pathList = TabContent.GetTabItem(TAB_PATH_STR).TabControl as PicturePathList;
                pathList.InitPathEvent();
            }
        }
예제 #22
0
        private void SetLayoutControlView()
        {
            var layoutTab = new TabButton()
            {
                Text = "Layout",
            };

            var layoutContent = new TabContent()
            {
                Layout = new LinearLayout()
                {
                    LinearOrientation = LinearLayout.Orientation.Vertical,
                    CellPadding       = new Size2D(0, 40),
                },
                WidthSpecification  = LayoutParamPolicies.MatchParent,
                HeightSpecification = LayoutParamPolicies.MatchParent,
            };

            LayoutType selectedLayoutType = LayoutType.LinearLayout;

            var layoutType = new LayoutTypeView();

            layoutType.LayoutType         = selectedLayoutType;
            layoutType.LayoutTypeChanged += (object sender, LayoutTypeChangedEventArgs args) =>
            {
                if (args.LayoutType == LayoutType.LinearLayout)
                {
                    if (linearLayoutControlView == null)
                    {
                        linearLayoutControlView = new LinearLayoutControlView();
                    }
                }
            };
            layoutContent.Add(layoutType);

            linearLayoutControlView = new LinearLayoutControlView();
            layoutContent.Add(linearLayoutControlView);

            tabView.AddTab(layoutTab, layoutContent);
        }
예제 #23
0
        private object QryTabContent(List <string> lst)
        {
            var tc   = new TabContent();
            var bgtb = appConfig.s_config.GetTable(TableIdx.Lecture);
            var bgsb = new SearchBuilder(bgtb, m_cp);

            bgsb.Clear();
            bgsb.Add(LectureTblInfo.ColIdx.lect.ToField(), lst);
            bgsb.Search();
            tc.recs = new List <LectRec>();
            for (int i = 0; i < bgsb.dc.m_dataTable.Rows.Count; i++)
            {
                var rec = new LectRec();
                var row = bgsb.dc.m_dataTable.Rows[i];
                rec.lect  = row[LectureTblInfo.ColIdx.lect.ToField()].ToString();
                rec.title = row[LectureTblInfo.ColIdx.title.ToField()].ToString();
                var auth = (LectureTblInfo.Author) int.Parse(row[LectureTblInfo.ColIdx.auth.ToField()].ToString());
                rec.auth = auth.ToDesc();
                var target = (LectureTblInfo.Target) int.Parse(row[LectureTblInfo.ColIdx.target.ToField()].ToString());
                rec.target = target.ToDesc();
                rec.topic  = row[LectureTblInfo.ColIdx.topic.ToField()].ToString();
                var date = (DateTime)row[LectureTblInfo.ColIdx.crt.ToField()];
                rec.crt     = date.ToString(lConfigMng.GetDisplayDateFormat());
                rec.content = row[LectureTblInfo.ColIdx.content.ToField()].ToString();
                rec.link    = row[LectureTblInfo.ColIdx.link.ToField()].ToString();
                tc.recs.Add(rec);
            }

            tc.cols = new List <string> {
                LectureTblInfo.ColIdx.title.ToAlias(),
                    LectureTblInfo.ColIdx.auth.ToAlias(),
                    LectureTblInfo.ColIdx.target.ToAlias(),
                    LectureTblInfo.ColIdx.topic.ToAlias(),
                    LectureTblInfo.ColIdx.crt.ToAlias(),
                    LectureTblInfo.ColIdx.content.ToAlias(),
                    LectureTblInfo.ColIdx.link.ToAlias(),
            };
            return(tc);
        }
예제 #24
0
        private void ManageCars_Click(object sender, EventArgs e)
        {
            // Moving the buttonSelector
            ButtonSelector.Top    = ManageCars.Top;
            ButtonSelector.Height = ManageCars.Height;

            // Change Tab
            tabControl.TabPages[0].Hide();
            tabControl.TabPages[1].Hide();
            tabControl.TabPages[2].Hide();

            TabContent m = new TabContent(this, 3, TabChooser.Cars);

            m.TopLevel        = false;
            m.FormBorderStyle = FormBorderStyle.None;
            m.Dock            = DockStyle.Fill;
            m.Show();

            // Attching it to the TabPage and showing
            tabControl.TabPages[3].Controls.Add(m);
            tabControl.TabPages[3].Show();
        }
        public async Task <IActionResult> PutTabContent(int id, TabContent tabContent)
        {
            if (id != tabContent.Id)
            {
                return(BadRequest());
            }

            dbContext.Entry(tabContent).State = EntityState.Modified;

            try
            {
                await dbContext.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!TabContentExists(id))
                {
                    return(NotFound());
                }
                throw;
            }

            return(NoContent());
        }
예제 #26
0
 private async void RefreshButton_Click(object sender, RoutedEventArgs e)
 {
     await TabContent.Refresh();
 }
예제 #27
0
        /// <summary>
        /// Open wizard what will be next step
        /// You need to send generated .csr file to internal or external certificate authority to generate certificate base on data inside
        /// certificate request file (.csr)
        /// To test generated .csr file you can generate selfsign certificate file that can act as CA root and use it to signe certificate
        /// request and ganerate new certificate base on data inside certificate request (.csr) file.
        /// If you wish to use generate certificate file inside internal network, tehnicaly speaking you can use selfsign CA generate certificate
        /// file for that purpose. You need to import generate CA root certificate file to Trusted Root Certification Authorities inside
        /// certification store and everithing will be work fine for certificate generated base on certificate request and signed with generated
        /// CA root certificate from inside menu option "Create SelfSign Cert."
        /// Show dialog with following options:
        /// 1.Send to CA   - this option will close dialog and show message: "You need to send generated certificate request file to internal or external CA authority for sign request"
        /// 2.Sign localy  - this option will open new dialog: "Do you already have generated root CA certificate or not?" (Yes / No)
        /// 3.Cancel       - this option clos current dialog and return to current form
        /// ----------------------------------------------------------------------------------
        /// For option 2.:
        /// If answer is Yes -> open new form from menu option "Issue Certificate"
        /// If naswer is No -> open new form from menu option "Create SelfSign Cert." (with value "Is this CA certificate:"=Yes)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void btnContinue_Click(object sender, RoutedEventArgs e)
        {
            if (!String.IsNullOrEmpty(requestFileNamePath) && File.Exists(requestFileNamePath))
            {
                MetroWindow metroWin   = (MetroWindow)Application.Current.MainWindow;
                var         mySettings = new MetroDialogSettings()
                {
                    AffirmativeButtonText     = "Send to CA authority",
                    NegativeButtonText        = "Cancel",
                    FirstAuxiliaryButtonText  = "Sign locally-Don't have CA cert",
                    SecondAuxiliaryButtonText = "Sign locally-Have CA cert",
                    ColorScheme = MetroDialogColorScheme.Theme
                };
                MessageDialogResult result = await metroWin.ShowMessageAsync("INFO",
                                                                             "You need to send generated .csr file to internal or external certificate authority to" + "\n" +
                                                                             "generate certificate based on data inside certificate request file (.csr) => 'Send to CA authority'" + "\n\n" +
                                                                             "To test generated .csr file you can generate self sign certificate file that can act as CA root and use it to sign certificate" + "\n" +
                                                                             "request and generate new certificate based on data inside certificate request (.csr) file  => 'Sign locally - Don't have CA cert'" + "\n\n" +
                                                                             "If you wish to use generate certificate file inside internal network, technically speaking you can use self-sign CA generate certificate" + "\n" +
                                                                             "file for that purpose. You need to import generate CA root certificate file (inside menu option 'Create SelfSign Cert.')" + "\n" +
                                                                             "to Trusted Root Certification Authorities inside certification store and everything will be work fine" + "\n" +
                                                                             "for certificate generated base on certificate request and signed with generated CA root certificate." + "\n\n" +
                                                                             "If you already have generated certificate for CA root authority you can sign request with that certificate => 'Sign locally - Have CA cert'",
                                                                             MessageDialogStyle.AffirmativeAndNegativeAndDoubleAuxiliary, mySettings);

                if (result == MessageDialogResult.Affirmative)
                {
                    mySettings = new MetroDialogSettings()
                    {
                        AffirmativeButtonText = "OK",
                        ColorScheme           = MetroDialogColorScheme.Theme
                    };
                    result = await metroWin.ShowMessageAsync("Info",
                                                             "You need to send generated .csr file " + tbRequestName.Text + "\n" +
                                                             " to internal or external certificate authority to" + "\n" +
                                                             "generate certificate based on data inside certificate request file (.csr)" + "\n\n" +
                                                             "After that you need to start menu option 'Create Certificate' to generate certificate file" + "\n" +
                                                             "that conatin public key file (.cer), that generated by CA root authority base on request file (.csr)" + "\n" +
                                                             "and private key file (.key): " + tbPrivateKeyName.Text + "\n\n" +
                                                             "New generate file fith private+public key (.pfx) optinal can contain public key from CA root authority ",
                                                             MessageDialogStyle.Affirmative, mySettings);
                }
                else if (result == MessageDialogResult.Negative)
                {
                    int a = 1;
                }
                else if (result == MessageDialogResult.FirstAuxiliary)
                {
                    // open menu "Create SelfSign Cert."
                    MainWindow mw = new MainWindow();

                    string header0 = "Create SelfSign Cert.";
                    IEnumerable <TabablzControl> tctrl;
                    mw.GetTabablzData(out header0, out tctrl);
                    header0 = "Create SelfSign Cert.";

                    GenerateSelfSign gr = new GenerateSelfSign(mw.certFriendlyName, true, requestFileNamePath, requestFileNamePrivateKeyPath);

                    TabContent tc1 = new TabContent(header0, gr);
                    mw.AddTabablzData(header0, tctrl, tc1);
                    mw.sbiSelectedMenuOption.Content = header0;
                }
                else if (result == MessageDialogResult.SecondAuxiliary)
                {
                    // open menu "Issue Certificate"
                    MainWindow mw = new MainWindow();

                    string header0 = "Issue Certificate";
                    IEnumerable <TabablzControl> tctrl;
                    mw.GetTabablzData(out header0, out tctrl);
                    header0 = "Issue Certificate";

                    GenerateSignRequest gr = new GenerateSignRequest(mw.certFriendlyName, requestFileNamePath, requestFileNamePrivateKeyPath);

                    TabContent tc1 = new TabContent(header0, gr);
                    mw.AddTabablzData(header0, tctrl, tc1);

                    mw.sbiSelectedMenuOption.Content = header0;
                }
            }
        }
예제 #28
0
 public ArchiveEditTab(Archive archive)
 {
     this.InitializeComponent();
     TabContent.LoadArchive(archive);
     this.CustomTabId = "Edit_" + archive.arcid;
 }
예제 #29
0
 public override void Unload()
 {
     base.Unload();
     TabContent.Close();
 }
예제 #30
0
 public SearchResultsTab(string query = "")
 {
     this.InitializeComponent();
     CustomTabId = "Search_" + new Random().Next();
     TabContent.Search(query);
 }
예제 #31
0
 private void ImportButton_Click(object sender, RoutedEventArgs e)
 {
     TabContent.ImportBookmarks();
 }