예제 #1
0
 public startup(Form parent_form, startup_step[] xStep, NavigationButtons.Navigation xnav, Icon xFormIconQuestion)
 {
     sbd = new SampleDB();
     m_parent_form = parent_form;
     Step = xStep;
     nav = xnav;
     m_usrc_Startup = new usrc_Startup(this);
     nav.web_Help = m_usrc_Startup.usrc_web_Help1;
     m_FormIconQuestion = xFormIconQuestion;
 }
예제 #2
0
 public static bool Init_Sample_DB(ref bool bCanceled, SampleDB xsbd, NavigationButtons.Navigation xnav, Icon xoIcon, ref string Err)
 {
     oIcon = xoIcon;
     if (xnav.LastStartupDialog_TYPE.Equals("Tangenta.Form_Select_DefaultCurrency"))
     {
         sbd = xsbd;
         if (sbd.MyOrgSampleShowDialog(ref bCanceled, xnav, oIcon))
         {
             if (bCanceled)
             {
                 return true;
             }
             bool bRes = sbd.WriteMyOrg();
             return bRes;
         }
         else
         {
             return true;
         }
     }
     else
     {
         if (fs.Init_Default_DB(ref Err))
         {
             sbd = xsbd;
             if (sbd.MyOrgSampleShowDialog(ref bCanceled, xnav, oIcon))
             {
                 if (bCanceled)
                 {
                     return true;
                 }
                 bool bRes = sbd.WriteMyOrg();
                 return bRes;
             }
             else
             {
                 return true;
             }
         }
         else
         {
             LogFile.Error.Show(Err);
             return false;
         }
     }
 }
        public Form_EditMyOrgSampleData(SampleDB smd, NavigationButtons.Navigation xnav,Icon xoIcon)
        {
            InitializeComponent();
            oIcon = xoIcon;
            nav = xnav;
            usrc_NavigationButtons1.Init(nav);

            if (oIcon != null)
            {
                this.Icon = oIcon;
            }
            toolTip1 = new ToolTip();

            // Set up the delays for the ToolTip.
            toolTip1.AutoPopDelay = 5000;
            toolTip1.InitialDelay = 1000;
            toolTip1.ReshowDelay = 500;
            // Force the ToolTip text to be displayed whether or not the form is active.
            toolTip1.ShowAlways = true;

            // Set up the ToolTip text for the Button and Checkbox.
            smd.Init(this.m_usrc_SampleDataEdit);
        }