Esempio n. 1
0
        private void MergeSearchButton_Click(object sender, EventArgs e)
        {
            SelectAPicesClass sac = new SelectAPicesClass(classes, "", null);

            sac.SelectedClass = PicesClassList.GetUniqueClass(MergeClass.Text, "");
            sac.ShowDialog();
            if (sac.SelectedClass != null)
            {
                MergeClass.Text = sac.SelectedClass.Name;
                ValidateMergeClass();
            }
        }
Esempio n. 2
0
        private void SelectClassButton_Click(object sender, EventArgs e)
        {
            SelectAPicesClass sapc = new SelectAPicesClass(classes, rootDir, activeClasses);

            if (!String.IsNullOrEmpty(ClassToPlot.Text))
            {
                sapc.SelectedClass = PicesClassList.GetUniqueClass(ClassToPlot.Text, "");
            }
            sapc.ShowDialog(this);
            if (sapc.SelectionMade)
            {
                PicesClass pc = sapc.SelectedClass;
                if (pc != null)
                {
                    ClassToPlot.Text = pc.Name;
                }
            }
        }