示例#1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            FamiliesForm form = new FamiliesForm();

            form.MdiParent = this;
            form.Show();
        }
 private void btnWgtBrowse_Click(object sender, EventArgs e)
 {
     FamiliesForm familiesForm = new FamiliesForm();
     if (familiesForm.ShowDialog() == DialogResult.OK) {
         Weights = familiesForm.SelectedResource;
         txtWgtFile.Text = familiesForm.SelectedResource.QualifiedName;
     }
 }
示例#3
0
        private void btnWgtBrowse_Click(object sender, EventArgs e)
        {
            FamiliesForm familiesForm = new FamiliesForm();

            if (familiesForm.ShowDialog() == DialogResult.OK)
            {
                Weights         = familiesForm.SelectedResource;
                txtWgtFile.Text = familiesForm.SelectedResource.QualifiedName;
            }
        }
        public bool ChooseResource(string type, out SNAP.Resources.Resource resource)
        {
            FamiliesForm familiesForm = new FamiliesForm();

            if (familiesForm.ShowDialog() == DialogResult.OK)
            {
                resource = familiesForm.SelectedResource;
                return(true);
            }
            resource = null;
            return(false);
        }
示例#5
0
        public bool ChooseResource(
            IEnumerable <SNAP.Resources.InternalRefFieldType.Mask> masks,
            out SNAP.Resources.Resource resource)
        {
            FamiliesForm familiesForm;

            if (masks == null)
            {
                familiesForm = new FamiliesForm();
            }
            else
            {
                familiesForm = new FamiliesForm(masks);
            }

            if (familiesForm.ShowDialog() == DialogResult.OK)
            {
                resource = familiesForm.SelectedResource;
                return(true);
            }
            resource = null;
            return(false);
        }
 public bool ChooseResource(string type, out SNAP.Resources.Resource resource)
 {
     FamiliesForm familiesForm = new FamiliesForm();
     if (familiesForm.ShowDialog() == DialogResult.OK)
     {
         resource = familiesForm.SelectedResource;
         return true;
     }
     resource = null;
     return false;
 }
示例#7
0
        private void btnFamilyBrowse_Click(object sender, EventArgs e)
        {
            FamiliesForm familiesForm = new FamiliesForm();

            familiesForm.ShowDialog();
        }
示例#8
0
 private void btnFamilyBrowse_Click(object sender, EventArgs e)
 {
     FamiliesForm familiesForm = new FamiliesForm();
     familiesForm.ShowDialog();
 }
示例#9
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     FamiliesForm form = new FamiliesForm();
     form.MdiParent = this;
     form.Show();
 }