Exemplo n.º 1
0
        private void button6_Click(object sender, EventArgs e)
        {
          
           ProfileForm profDef;

            profDef = new ProfileForm(profileName, "",filterOPT.SIMILARITY);

            DialogResult res = profDef.ShowDialog();
            if (res == DialogResult.OK)
            {
                try
                {

                    profileName = profDef.fileName;
                    if (profileNameChanged != null)
                        profileNameChanged(profileName);

                    profDef.SaveProfiles(profileName);
                   
                    fileName = profDef.alignFileName;
                    if (fileName != null && fileName.Length > 0)
                        alignGenerate = true;
                }
                catch
                {
                    MessageBox.Show("Profiles could not be saved!");
                }

                UpdateLabels();
            }

        }
Exemplo n.º 2
0
        private void button6_Click(object sender, EventArgs e)
        {
            ProfileForm profDef;

            profDef = new ProfileForm(profileName, "", filterOPT.SIMILARITY);

            DialogResult res = profDef.ShowDialog();

            if (res == DialogResult.OK)
            {
                try
                {
                    profileName = profDef.fileName;
                    if (profileNameChanged != null)
                    {
                        profileNameChanged(profileName);
                    }

                    profDef.SaveProfiles(profileName);

                    fileName = profDef.alignFileName;
                    if (fileName != null && fileName.Length > 0)
                    {
                        alignGenerate = true;
                    }
                }
                catch
                {
                    MessageBox.Show("Profiles could not be saved!");
                }

                UpdateLabels();
            }
        }
Exemplo n.º 3
0
        private void button5_Click(object sender, EventArgs e)
        {
            ProfileForm profDef;

            profDef = new ProfileForm(profileFileName, "", filterOPT.DISTANCE);


            DialogResult res = profDef.ShowDialog();

            if (res == DialogResult.OK)
            {
                try
                {
                    profileName = profDef.fileName;
                }
                catch
                {
                    MessageBox.Show("Profiles could not be saved!");
                }
            }
        }
Exemplo n.º 4
0
        private void button5_Click(object sender, EventArgs e)
        {
            ProfileForm profDef;

            profDef = new ProfileForm(profileFileName, "",filterOPT.DISTANCE);


            DialogResult res = profDef.ShowDialog();
            if (res == DialogResult.OK)
            {
                try
                {
                    profileName = profDef.fileName;
                    label16.Text = LabelActiveProfiles(profileFileName);
                }
                catch
                {
                    MessageBox.Show("Profiles could not be saved!");
                }
            }
        }