Esempio n. 1
0
        private void bttSetForecast_Click(object sender, EventArgs e)
        {
            FPreviewEdit pve = new FPreviewEdit();


            bttSetForecast.Enabled = false;

            //int index = this.lvwItems.SelectedIndices[0];
            if (this.IsForPipeline == true) // ******************************This if block is added 12/8
            {
                // MessageBox.Show("For pipe lines................");
                try
                {
                    index = this.lvwItems.SelectedIndices[0];
                }
                catch { }
                // pve.LoadCurrentProject(lvwItems.Items[index].SubItems[1].Text, GetRprtCase(lvwItems.Items[index].SubItems[1].Text));
                pve.LoadCurrentProject_Pipelines(lvwItems.Items[index].SubItems[1].Text, GetRprtCase(lvwItems.Items[index].SubItems[1].Text));
            }
            else
            {
                try
                {
                    index = this.lvwItems.SelectedIndices[0];
                }
                catch { }
                //pve.LoadCurrentProject(lstProjects.Text, GetRprtCase(lstProjects.Text));
                pve.LoadCurrentProject(lvwItems.Items[index].SubItems[1].Text, GetRprtCase(lvwItems.Items[index].SubItems[1].Text));   //*********************************************************
            }
            pve.ShowDialog();
            bttSetForecast.Enabled = true;
        }
Esempio n. 2
0
        private void bttSetForecast_Click(object sender, EventArgs e)
        {
            FPreviewEdit pve = new FPreviewEdit();

            bttSetForecast.Enabled = false;
            pve.LoadCurrentProject(lstProjects.Text, GetRprtCase(lstProjects.Text));
            pve.ShowDialog();
            bttSetForecast.Enabled = true;
        }