Example #1
0
        public EditCSFPForm()
        {
            InitializeComponent();
            dtpSvcDate.Value = DateTime.Today;
            dadAdpt          = new SqlDataAdapter();
            dset             = new DataSet();
            conn             = new SqlConnection(CCFBGlobal.connectionString);
            SqlCommand selectComm = new SqlCommand(sqlCommandText, conn);

            dadAdpt.SelectCommand = selectComm;
            getDistinctYears();
            fillYearsCombo();
            cboOrderBy.SelectedIndex = 0;
            getDefaultCSFPLbs();
            clsCSFPLog.openWhere("");
            tbsMarkNewCSFP.Text = "New CSFP " + Environment.NewLine + "Client";

            bool connected = CCFBGlobal.IsConnectedToInternet();

            menuFNSWebSite.Enabled  = connected;
            menuCSFPFederal.Enabled = connected;
            menuCSFPState.Enabled   = connected;

            if (cboYear.Items.Count < 1)
            {
                btnRefreshList.Enabled = false;
            }
        }
Example #2
0
        private void LoginForm_Load(object sender, EventArgs e)
        {
            this.Text   = Application.ProductName.ToString();
            label4.Text = Application.ProductName.ToString() + ": " + ProductDescription() + "\r\n"
                          + "Version " + Application.ProductVersion.ToString() + "\r\n"
                          + CopyRightsDetail() + "\r\n\r\n"
                          + Application.ExecutablePath + "\r\n\r\n";

            if (CCFBGlobal.IsConnectedToInternet() == true || CCFBGlobal.isConnectedToNetwork() == true)
            {
                label4.Text += "Connected To Network";
            }
            else
            {
                label4.Text += "No Network Found";
            }
        }
Example #3
0
        private void LoginForm_Load(object sender, EventArgs e)
        {
            this.Text = Application.ProductName.ToString();
            string[] splitData = CopyRightsDetail().Split((";").ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
            label4.Text = Application.ProductName.ToString() + " version " + Application.ProductVersion.ToString() + Environment.NewLine
                          + ProductDescription() + Environment.NewLine
                          + splitData[0];
            label6.Text = "";
            for (int i = 1; i < splitData.Length; i++)
            {
                label6.Text += splitData[i].TrimStart() + Environment.NewLine;
            }
            label5.Text = Application.ExecutablePath + Environment.NewLine + Environment.NewLine;

            if (CCFBGlobal.IsConnectedToInternet() == true || CCFBGlobal.isConnectedToNetwork() == true)
            {
                label5.Text += "CONNECTED TO NETWORK";
            }
            else
            {
                label5.Text += "No Network Found";
            }
            Application.DoEvents();
        }
Example #4
0
        public EditBackpackForm()
        {
            InitializeComponent();
            cboSort.Add(cboOrderBy0);
            cboSort.Add(cboOrderBy1);
            cboSort.Add(cboOrderBy2);
            loading = true;
            setcboSortOrder(0);
            cboSort[0].SelectedIndex = 3;
            setcboSortOrder(1);
            setcboSortOrder(2);

            dtpSvcDate.Value = DateTime.Today;
            dadAdpt          = new SqlDataAdapter();
            dtbl             = new DataTable();
            conn             = new SqlConnection(CCFBGlobal.connectionString);
            SqlCommand selectComm = new SqlCommand(sqlCommandText, conn);

            dadAdpt.SelectCommand = selectComm;
            getDistinctYears();
            fillYearsCombo();
            loading = true;
            //getDefaultBackpackLbs();
            clsBackpackLog.openWhere("");
            tbsMarkNewBackpack.Text = "New Backpack " + Environment.NewLine + "Client";

            bool connected = CCFBGlobal.IsConnectedToInternet();

            if (cboYear.Items.Count < 1)
            {
                btnRefreshList.Enabled = false;
            }

            cboMonth.SelectedIndex = DateTime.Today.Month - 1;
            loading = false;
        }
Example #5
0
        public EditCSFPForm()
        {
            InitializeComponent();
            cboSort.Add(cboOrderBy0);
            cboSort.Add(cboOrderBy1);
            cboSort.Add(cboOrderBy2);
            cboAscDesc.Add(cboAscDesc0);
            cboAscDesc.Add(cboAscDesc1);
            cboAscDesc.Add(cboAscDesc2);
            foreach (ComboBox cbo in cboAscDesc)
            {
                cbo.SelectedIndex = 0;
            }
            setcboSortOrder(0);
            if (CCFBPrefs.EnableCSFPShowRoutes == true)
            {
                setcboSortSelectedIndex(0, 3);
                setcboSortOrder(1);
                setcboSortSelectedIndex(1, 1);
            }
            else
            {
                setcboSortSelectedIndex(0, 1);
                setcboSortOrder(1);
                cboSort[1].SelectedIndex = 0;
            }
            setcboSortOrder(2);
            cboSort[2].SelectedIndex = 0;

            chkBoxList.Add(chkStatus0);
            chkBoxList.Add(chkStatus1);
            chkBoxList.Add(chkStatus2);
            chkBoxList.Add(chkStatus3);
            chkBoxList.Add(chkStatus4);
            chkBoxList.Add(chkStatus5);

            dtpSvcDate.Value = DateTime.Today;
            dadAdpt          = new SqlDataAdapter();
            dtbl             = new DataTable();
            conn             = new SqlConnection(CCFBGlobal.connectionString);
            getDistinctYears();


            //cboOrderBy0.SelectedIndex = 0;
            //getDefaultCSFPLbs();
            clsCSFPLog.openWhere("");
            tsbMarkNewCSFP.Text = "New CSFP " + Environment.NewLine + "Client";

            bool connected = CCFBGlobal.IsConnectedToInternet();

            menuFNSWebSite.Enabled  = connected;
            menuCSFPFederal.Enabled = connected;
            menuCSFPState.Enabled   = connected;

            if (cboYear.Items.Count < 1)
            {
                btnRefreshList.Enabled = false;
            }

            cboMonth.SelectedIndex = DateTime.Today.Month - 1;
            loading = false;
        }