Пример #1
0
 public void PrintPreview()
 {
     //Print preview this schedule
     try {
         reportStatus(new StatusEventArgs("Print previewing..."));
         UltraGridPrinter.PrintPreview(this.grdShippers, "LTL Shippers");
     }
     catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); }
 }
Пример #2
0
 public void PrintPreview()
 {
     //Print preview this schedule
     try {
         reportStatus(new StatusEventArgs("Print previewing Trailer Log..."));
         string caption = "Trailer Log " + this.cboSchedule.SelectedItem.ToString();
         UltraGridPrinter.PrintPreview(this.grdSchedule, caption);
     }
     catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); }
 }
Пример #3
0
 public void Print(bool showDialog)
 {
     //Print this schedule
     this.Cursor = Cursors.WaitCursor;
     try {
         reportStatus(new StatusEventArgs("Printing..."));
         UltraGridPrinter.Print(this.grdShippers, "LTL Shippers", showDialog);
     }
     catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); }
     finally { this.Cursor = Cursors.Default; }
 }
Пример #4
0
 public void Print(bool showDialog)
 {
     //Print this schedule
     this.Cursor = Cursors.WaitCursor;
     try {
         reportStatus(new StatusEventArgs("Printing Trailer Log..."));
         string caption = "Trailer Log " + this.cboSchedule.SelectedItem.ToString();
         UltraGridPrinter.Print(this.grdSchedule, caption, showDialog);
     }
     catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); }
     finally { this.Cursor = Cursors.Default; }
 }
Пример #5
0
        public void PrintPreview()
        {
            //Print preview this schedule
            try {
                reportStatus(new StatusEventArgs("Print..."));
                switch (this.tabShipments.SelectedTab.Name)
                {
                case "tabActive": UltraGridPrinter.PrintPreview(this.grdShipments, "LTL Shipments"); break;

                case "tabSearch": UltraGridPrinter.PrintPreview(this.grdSearch, "LTL Shipments"); break;
                }
            }
            catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); }
        }
Пример #6
0
        public void Print(bool showDialog)
        {
            //Print this schedule
            this.Cursor = Cursors.WaitCursor;
            try {
                reportStatus(new StatusEventArgs("Printing..."));
                switch (this.tabShipments.SelectedTab.Name)
                {
                case "tabActive": UltraGridPrinter.Print(this.grdShipments, "LTL Shipments", showDialog); break;

                case "tabSearch": UltraGridPrinter.Print(this.grdSearch, "LTL Shipments", showDialog); break;
                }
            }
            catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); }
            finally { this.Cursor = Cursors.Default; }
        }
Пример #7
0
        private void OnCmdClick(object sender, System.EventArgs e)
        {
            //Command button handler
            try {
                Button btn = (Button)sender;
                switch (btn.Name)
                {
                case "cmdClose":
                    this.DialogResult = DialogResult.Cancel;
                    this.Close();
                    break;

                case "cmdPrint":
                    UltraGridPrinter.Print(this.grdAgentSummary, "Agent Summary View for " + this.mTerminalName + ", " + DateTime.Now.ToString("MM/dd/yyyy hh:mm tt"), true);
                    break;
                }
            }
            catch (Exception) { }
        }
Пример #8
0
        public void PrintPreview()
        {
            //Print preview this schedule
            try {
                reportStatus(new StatusEventArgs("Print previewing this log..."));
                string caption = "Load Tenders ";
                switch (this.cboSchedule.SelectedItem.ToString())
                {
                case "Advanced": caption = "Load Tenders Advanced"; break;

                case "Today": caption = "Load Tenders " + DateTime.Today.ToString("MM/dd/yyyy"); break;

                case "Yesterday": caption = "Load Tenders " + DateTime.Today.AddDays(-1).ToString("MM/dd/yyyy");; break;

                case "Archive": caption = "Load Tenders Archive"; break;
                }
                UltraGridPrinter.PrintPreview(this.grdSchedule, caption);
            }
            catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); }
        }
Пример #9
0
        private void OnItemClick(object sender, System.EventArgs e)
        {
            //Menu services
            try {
                ToolStripItem menu = (ToolStripItem)sender;
                switch (menu.Name)
                {
                case "csSaveAs":
                    SaveFileDialog dlgSave = new SaveFileDialog();
                    dlgSave.AddExtension     = true;
                    dlgSave.Filter           = "Excel files (*.xls)|*.xls|All files (*.*)|*.*";
                    dlgSave.FilterIndex      = 0;
                    dlgSave.Title            = "Save TL View As...";
                    dlgSave.FileName         = "TL# " + this.mTLNumber;
                    dlgSave.CheckFileExists  = false;
                    dlgSave.OverwritePrompt  = true;
                    dlgSave.InitialDirectory = System.IO.Directory.GetCurrentDirectory();
                    if (dlgSave.ShowDialog(this) == DialogResult.OK)
                    {
                        this.Cursor = Cursors.WaitCursor;
                        Application.DoEvents();
                        new Argix.ExcelFormat().Transform(this.mTLDetail, "TLTable", dlgSave.FileName);
                    }
                    break;

                case "csPrint": UltraGridPrinter.Print(this.grdTLDetail, "TL Detail for TL# " + this.mTLNumber + ", " + DateTime.Now.ToString("MM/dd/yyyy hh:mm tt"), true); break;

                case "csPreview": UltraGridPrinter.PrintPreview(this.grdTLDetail, "TL Detail for TL# " + this.mTLNumber + ", " + DateTime.Now.ToString("MM/dd/yyyy hh:mm tt")); break;

                case "csRefresh":
                    this.Cursor = Cursors.WaitCursor;
                    this.mTLDetail.Clear();
                    this.mTLDetail.Merge(Freight.FreightGateway.GetTLDetail(this.mTerminalID, this.mTLNumber));
                    break;
                }
            }
            catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); }
            finally { this.Cursor = Cursors.Default; }
        }
Пример #10
0
        public void Print(bool showDialog)
        {
            //Print this schedule
            this.Cursor = Cursors.WaitCursor;
            try {
                reportStatus(new StatusEventArgs("Printing this log..."));
                string caption = "Load Tenders ";
                switch (this.cboSchedule.SelectedItem.ToString())
                {
                case "Advanced": caption = "Load Tenders Advanced"; break;

                case "Today": caption = "Load Tenders " + DateTime.Today.ToString("MM/dd/yyyy"); break;

                case "Yesterday": caption = "Load Tenders " + DateTime.Today.AddDays(-1).ToString("MM/dd/yyyy");; break;

                case "Archive": caption = "Load Tenders Archive"; break;
                }
                UltraGridPrinter.Print(this.grdSchedule, caption, showDialog);
            }
            catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); }
            finally { this.Cursor = Cursors.Default; }
        }
Пример #11
0
        private void OnItemClick(object sender, System.EventArgs e)
        {
            //Menu services
            IToolbar      window      = null;
            IPSPToolbar   pspwindow   = null;
            IQuoteToolbar quotewindow = null;

            try {
                ToolStripItem menu = (ToolStripItem)sender;
                switch (menu.Name)
                {
                case "msFileNew":
                case "tsbNew":
                    window = (IToolbar)this.mActiveForm;
                    window.New();
                    break;

                case "msFileOpen":
                case "tsbOpen":
                    window = (IToolbar)this.mActiveForm;
                    window.Open();
                    break;

                case "msFileCancel":
                case "tsbCancel":
                    window = (IToolbar)this.mActiveForm;
                    window.Cancel();
                    break;

                case "msFileSave":
                case "tsbSave":
                    break;

                case "msFileSaveAs":
                    SaveFileDialog dlgSave = new SaveFileDialog();
                    dlgSave.AddExtension     = true;
                    dlgSave.Filter           = "Excel files (*.xls)|*.xls|All files (*.*)|*.*";
                    dlgSave.FilterIndex      = 0;
                    dlgSave.Title            = "Export...";
                    dlgSave.FileName         = "";
                    dlgSave.CheckFileExists  = false;
                    dlgSave.OverwritePrompt  = true;
                    dlgSave.InitialDirectory = System.IO.Directory.GetCurrentDirectory();
                    if (dlgSave.ShowDialog(this) == DialogResult.OK)
                    {
                        window = (IToolbar)this.mActiveForm;
                        window.Save(dlgSave.FileName);
                    }
                    break;

                case "msFilePageSetup":
                    UltraGridPrinter.PageSettings();
                    break;

                case "msFilePrint":
                    window = (IToolbar)this.mActiveForm;
                    window.Print(true);
                    break;

                case "tsbPrint":
                    window = (IToolbar)this.mActiveForm;
                    window.Print(false);
                    break;

                case "msFilePreview":
                    window = (IToolbar)this.mActiveForm;
                    window.PrintPreview();
                    break;

                case "msFileExit":
                    this.Close();
                    break;

                case "msViewRefresh":
                case "tsbRefresh":
                    this.Cursor = Cursors.WaitCursor;
                    this.mMessageMgr.AddMessage("Refreshing...");
                    this.mActiveForm.Refresh();
                    break;

                case "msViewFont":
                    FontDialog fd = new FontDialog();
                    fd.FontMustExist = true;
                    fd.Font          = this.Font;
                    if (fd.ShowDialog() == DialogResult.OK)
                    {
                        this.Font = this.msMain.Font = this.tsMain.Font = this.tsNav.Font = this.ssMain.Font = fd.Font;
                    }
                    break;

                case "msViewToolbar":
                    this.msViewToolbar.Checked = (!this.msViewToolbar.Checked);
                    this.tsMain.Visible        = this.msViewToolbar.Checked;
                    break;

                case "msViewStatusBar":
                    this.msViewStatusBar.Checked = (!this.msViewStatusBar.Checked);
                    this.ssMain.Visible          = this.msViewStatusBar.Checked;
                    break;

                case "msApprove":
                case "tsbApprove":
                    pspwindow = (IPSPToolbar)this.mActiveForm;
                    pspwindow.ApproveClient();
                    break;

                case "msDeny":
                case "tsbDeny":
                    pspwindow = (IPSPToolbar)this.mActiveForm;
                    pspwindow.DenyClient();
                    break;

                case "msPrintLabels":
                case "tsbPrintLabels":
                    pspwindow = (IPSPToolbar)this.mActiveForm;
                    pspwindow.PrintLabels();
                    break;

                case "msPrintPaperwork":
                case "tsbPrintPaperwork":
                    pspwindow = (IPSPToolbar)this.mActiveForm;
                    pspwindow.PrintPaperwork();
                    break;

                case "tsbApproveQuote":
                    quotewindow = (IQuoteToolbar)this.mActiveForm;
                    quotewindow.ApproveQuote();
                    break;

                case "tsbTenderQuote":
                    quotewindow = (IQuoteToolbar)this.mActiveForm;
                    quotewindow.TenderQuote();
                    break;

                case "tsbViewTender":
                    quotewindow = (IQuoteToolbar)this.mActiveForm;
                    quotewindow.ViewTender();
                    break;

                case "tsbBookQuote":
                    quotewindow = (IQuoteToolbar)this.mActiveForm;
                    quotewindow.BookQuote();
                    break;

                case "msToolsConfig":
                    App.ShowConfig();
                    break;

                case "msWinCascade": this.LayoutMdi(MdiLayout.Cascade); break;

                case "msWinTileH": this.LayoutMdi(MdiLayout.TileHorizontal); break;

                case "msWinTileV": this.LayoutMdi(MdiLayout.TileVertical); break;

                case "msHelpAbout": new dlgAbout(App.Description, App.Version, App.Copyright, App.Configuration).ShowDialog(this); break;
                }
            }
            catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); }
            finally { setUserServices(); this.Cursor = Cursors.Default; }
        }
Пример #12
0
        private void OnItemClick(object sender, EventArgs e)
        {
            //Event handler for menu/toolbar item clicked
            ISchedule schedule = null;

            try {
                ToolStripItem item = (ToolStripItem)sender;
                switch (item.Name)
                {
                case "msFileNew":
                case "tsNew":
                case "csNew":
                    schedule = (ISchedule)this.mActiveForm;
                    schedule.New();
                    break;

                case "msFileOpen":
                case "tsOpen":
                case "csOpen":
                    schedule = (ISchedule)this.mActiveForm;
                    schedule.Open();
                    break;

                case "msFileClone":
                case "tsClone":
                case "csClone":
                    schedule = (ISchedule)this.mActiveForm;
                    schedule.Clone();
                    break;

                case "msFileCancel":
                case "tsCancel":
                case "csCancel":
                    schedule = (ISchedule)this.mActiveForm;
                    schedule.Cancel();
                    break;

                case "msFileSaveAs":
                    SaveFileDialog dlgSave = new SaveFileDialog();
                    dlgSave.AddExtension     = true;
                    dlgSave.Filter           = "Excel files (*.xls)|*.xls|All files (*.*)|*.*";
                    dlgSave.FilterIndex      = 0;
                    dlgSave.Title            = "Export Schedule...";
                    dlgSave.FileName         = this.mActiveForm.Text;
                    dlgSave.CheckFileExists  = false;
                    dlgSave.OverwritePrompt  = true;
                    dlgSave.InitialDirectory = System.IO.Directory.GetCurrentDirectory();
                    if (dlgSave.ShowDialog(this) == DialogResult.OK)
                    {
                        schedule = (ISchedule)this.mActiveForm;
                        schedule.Save(dlgSave.FileName);
                    }
                    break;

                case "msFileExport":
                case "csExport":
                    SaveFileDialog dlgExport = new SaveFileDialog();
                    dlgExport.AddExtension     = true;
                    dlgExport.Filter           = "Text files (*.txt)|*.txt|All files (*.*)|*.*";
                    dlgExport.FilterIndex      = 0;
                    dlgExport.Title            = "Export Pickup Orders...";
                    dlgExport.FileName         = "DailyPickups";
                    dlgExport.CheckFileExists  = false;
                    dlgExport.OverwritePrompt  = false;
                    dlgExport.InitialDirectory = ConfigurationManager.AppSettings["ExportPath" + Program.TerminalCode];
                    if (dlgExport.ShowDialog(this) == DialogResult.OK)
                    {
                        schedule = (ISchedule)this.mActiveForm;
                        schedule.Export(dlgExport.FileName);
                    }
                    break;

                case "tsExport":
                    schedule = (ISchedule)this.mActiveForm;
                    schedule.Export();
                    break;

                case "msFilePageSetup":
                    UltraGridPrinter.PageSettings();
                    break;

                case "msFilePrint":
                    schedule = (ISchedule)this.mActiveForm;
                    schedule.Print(true);
                    break;

                case "msFilePrintPreview":
                    schedule = (ISchedule)this.mActiveForm;
                    schedule.PrintPreview();
                    break;

                case "msFileExit":
                    this.Close();
                    break;

                case "msViewRefresh":
                case "tsRefresh":
                    this.mActiveForm.Refresh();
                    break;

                case "msViewFont":
                    FontDialog fd = new FontDialog();
                    fd.FontMustExist = true;
                    fd.Font          = this.Font;
                    if (fd.ShowDialog() == DialogResult.OK)
                    {
                        this.Font = this.msMain.Font = this.tsMain.Font = this.tsNav.Font = this.ssMain.Font = fd.Font;
                    }
                    break;

                case "msViewFullScreen":
                case "tsFullScreen":
                    this.tsNav.Visible = !(this.msViewFullScreen.Checked = (!this.msViewFullScreen.Checked));
                    break;

                case "msViewTemplates":
                    schedule = (ISchedule)this.mActiveForm;
                    schedule.TemplatesVisible = (this.msViewTemplates.Checked = (!this.msViewTemplates.Checked));
                    break;

                case "msViewToolbar":   this.tsMain.Visible = (this.msViewToolbar.Checked = (!this.msViewToolbar.Checked)); break;

                case "msViewStatusBar": this.ssMain.Visible = (this.msViewStatusBar.Checked = (!this.msViewStatusBar.Checked)); break;

                case "msToolsConfig":   App.ShowConfig(); break;

                case "msWinCascade": this.LayoutMdi(MdiLayout.Cascade); break;

                case "msWinTileH":      this.LayoutMdi(MdiLayout.TileHorizontal); break;

                case "msWinTileV":      this.LayoutMdi(MdiLayout.TileVertical); break;

                case "msHelpAbout":     new dlgAbout(App.Product + " Application", App.Version, App.Copyright, App.Configuration).ShowDialog(this); break;

                case "tsTempNew":
                    schedule = (ISchedule)this.mActiveForm;
                    schedule.NewTemplate();
                    break;

                case "tsTempOpen":
                    schedule = (ISchedule)this.mActiveForm;
                    schedule.OpenTemplate();
                    break;

                case "tsTempCancel":
                    schedule = (ISchedule)this.mActiveForm;
                    schedule.CancelTemplate();
                    break;

                case "tsTempLoad":
                    schedule = (ISchedule)this.mActiveForm;
                    schedule.LoadTemplates();
                    break;
                }
            }
            catch (Exception ex) { App.ReportError(ex); }
            finally { setUserServices(); this.Cursor = Cursors.Default; }
        }
Пример #13
0
 public void PageSettings()
 {
     UltraGridPrinter.PageSettings();
 }
Пример #14
0
        private void OnItemClick(object sender, System.EventArgs e)
        {
            //Menu services
            try {
                ToolStripItem item = (ToolStripItem)sender;
                switch (item.Name)
                {
                case "msFileNew":
                case "tsNew":
                    break;

                case "msFileOpen":
                case "tsOpen":
                    if (this.grdMain.Selected.Rows.Count > 0)
                    {
                        string loadNumber = this.grdMain.Selected.Rows[0].Cells["Load"].Value.ToString();
                        LoadTenderDS.LoadTenderTableRow loadTender = (LoadTenderDS.LoadTenderTableRow) this.mLoadTenderDS.LoadTenderTable.Select("Load='" + loadNumber + "'")[0];
                        new frmLoadTender(loadTender).Show();
                    }
                    break;

                case "msFileSave":
                case "tsSave":
                    break;

                case "msFileSaveAs":
                    SaveFileDialog dlgSave = new SaveFileDialog();
                    dlgSave.AddExtension    = true;
                    dlgSave.Filter          = "Export Files (*.xml) | *.xml";
                    dlgSave.FilterIndex     = 0;
                    dlgSave.Title           = "Save Freight As...";
                    dlgSave.FileName        = this.cboClient.Text + ", " + DateTime.Today.ToLongDateString();
                    dlgSave.OverwritePrompt = true;
                    if (dlgSave.ShowDialog(this) == DialogResult.OK)
                    {
                        this.Cursor = Cursors.WaitCursor;
                        this.mMessageMgr.AddMessage("Saving to " + dlgSave.FileName + "...");
                        Application.DoEvents();
                        this.mLoadTenderDS.WriteXml(dlgSave.FileName, XmlWriteMode.WriteSchema);
                    }
                    break;

                case "msFilePageSetup": UltraGridPrinter.PageSettings(); break;

                case "msFilePrint":
                    UltraGridPrinter.Print(this.grdMain, this.cboClient.Text.Trim().ToUpper() + " LOAD TENDERS , " + DateTime.Today.ToLongDateString(), true);
                    break;

                case "tsPrint":
                    UltraGridPrinter.Print(this.grdMain, this.cboClient.Text.Trim().ToUpper() + " LOAD TENDERS , " + DateTime.Today.ToLongDateString(), false);
                    break;

                case "msFilePrintPreview":
                case "tsPrintPreview":
                    UltraGridPrinter.PrintPreview(this.grdMain, this.cboClient.Text.Trim().ToUpper() + " LOAD TENDERS , " + DateTime.Today.ToLongDateString());
                    break;

                case "msFileExit": this.Close(); Application.Exit(); break;

                case "msEditCut":
                case "tsCut":
                    break;

                case "msEditCopy":
                case "tsCopy":
                    break;

                case "msEditPaste":
                case "tsPaste":
                    break;

                case "msViewRefresh":
                case "tsRefresh":
                    this.Cursor = Cursors.WaitCursor;
                    this.mLoadTenderDS.Clear();
                    this.mLoadTenderDS.Merge(TsortGateway.GetLoadTenders(this.cboClient.SelectedValue.ToString(), this.dtpFrom.Value, this.dtpTo.Value));
                    break;

                case "msViewToolbar": this.tsMain.Visible = (this.msViewToolbar.Checked = (!this.msViewToolbar.Checked)); break;

                case "msViewStatusbar": this.ssMain.Visible = (this.msViewStatusbar.Checked = (!this.msViewStatusbar.Checked)); break;

                case "msToolsConfig": App.ShowConfig(); break;

                case "msHelpAbout": new dlgAbout(App.Product + " Application", App.Version, App.Copyright, App.Configuration).ShowDialog(this); break;
                }
            }
            catch (Exception ex) { App.ReportError(ex, true, LogLevel.Warning); }
            finally { setUserServices(); this.Cursor = Cursors.Default; }
        }
Пример #15
0
        private void OnMenuClick(object sender, System.EventArgs e)
        {
            //Event handler for menu selection
            Issue issue = null;

            try {
                ToolStripDropDownItem menu = (ToolStripDropDownItem)sender;
                switch (menu.Text)
                {
                case MNU_NEW:
                    issue = CRGFactory.GetIssue(0);
                    dlgIssue dlg = new dlgIssue(issue);
                    dlg.Font = this.Font;
                    if (dlg.ShowDialog() == DialogResult.OK)
                    {
                        this.Cursor = Cursors.WaitCursor;
                        if (issue.Save())
                        {
                            for (int i = 0; i < this.grdIssues.Rows.Count; i++)
                            {
                                int id = Convert.ToInt32(this.grdIssues.Rows[i].Cells["ID"].Value);
                                if (id == issue.ID)
                                {
                                    this.grdIssues.Rows[i].Selected = true;
                                    this.grdIssues.DisplayLayout.Bands[0].Columns["LastActionCreated"].SortIndicator = SortIndicator.Descending;
                                    OnGridSelectionChanged(this.grdIssues, null);
                                    break;
                                }
                            }
                        }
                    }
                    break;

                case MNU_OPEN:      break;

                case MNU_SAVE:      break;

                case MNU_SAVEAS:

                    SaveFileDialog dlgSave = new SaveFileDialog();
                    dlgSave.AddExtension    = true;
                    dlgSave.Filter          = "Export Files (*.xml) | *.xml | Excel Files (*.xls) | *.xls";
                    dlgSave.FilterIndex     = 0;
                    dlgSave.Title           = "Save Issues As...";
                    dlgSave.FileName        = "";
                    dlgSave.OverwritePrompt = true;
                    if (dlgSave.ShowDialog(this) == DialogResult.OK)
                    {
                        this.Cursor = Cursors.WaitCursor;
                        Application.DoEvents();
                        if (dlgSave.FileName.EndsWith("xls"))
                        {
                            new Argix.ExcelFormat().Transform(this.mIssues, dlgSave.FileName);
                        }
                        else
                        {
                            this.mIssues.WriteXml(dlgSave.FileName, XmlWriteMode.WriteSchema);
                        }
                    }
                    break;

                case MNU_SETUP: UltraGridPrinter.PageSettings(); break;

                case MNU_PRINT: UltraGridPrinter.Print(this.grdIssues, this.grdIssues.Text, true); break;

                case MNU_PREVIEW: UltraGridPrinter.PrintPreview(this.grdIssues, this.grdIssues.Text); break;

                case MNU_REFRESH:
                    this.Cursor = Cursors.WaitCursor;
                    this.mGridSvcIssues.CaptureState("ID");
                    switch (this.cboView.Text)
                    {
                    case "Search Results": break;

                    case "Issue History":
                        this.mIssueHistory.Clear();
                        this.mIssueHistory.Merge(CRGFactory.IssueHistory(this.mIssueH));
                        break;

                    case "Draft Issues":    break;

                    default:
                        DataSet ds = CRGFactory.GetIssues();
                        lock (this.mIssues) {
                            this.mIssues.Clear();
                            this.mIssues.Merge(ds);
                        }
                        postIssueUpdates();
                        break;
                    }
                    this.mGridSvcIssues.RestoreState();
                    break;

                case MNU_REFRESHCACHE: EnterpriseFactory.RefreshCache(); CRGFactory.RefreshCache(); break;

                case MNU_AUTOREFRESHON:
                    this.mnuCtxAutoRefreshOn.Checked = !this.mnuCtxAutoRefreshOn.Checked;
                    if (this.mnuCtxAutoRefreshOn.Checked)
                    {
                        StartAuto();
                    }
                    else
                    {
                        StopAuto();
                    }
                    break;

                case MNU_CONTACTS:
                    winContacts winC = new winContacts();
                    winC.Font = this.Font;
                    winC.ShowDialog();
                    break;

                case MNU_PROPERTIES: break;
                }
            }
            catch (Exception ex) { reportError(ex); }
            finally { setUserServices(); this.Cursor = Cursors.Default; }
        }
Пример #16
0
 public void PrintPreview()
 {
     UltraGridPrinter.PrintPreview(this.grdComponents, "Component Types");
 }
Пример #17
0
 public void Print(bool showDialog)
 {
     UltraGridPrinter.Print(this.grdComponents, "Component Types", showDialog);
 }