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

            form.MdiParent = this;
            form.Show();
        }
コード例 #2
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;
     }
 }
コード例 #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;
            }
        }
コード例 #4
0
        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);
        }
コード例 #6
0
 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
ファイル: MainForm.cs プロジェクト: BackupTheBerlios/snap-svn
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     FamiliesForm form = new FamiliesForm();
     form.MdiParent = this;
     form.Show();
 }