Ejemplo n.º 1
0
        private void button5_Click( object sender, EventArgs e )
        {
            IConnector connector = new Connector( );
            string newname = this.textBox2.Text;
            IArtifact a = connector.CreateArtifact( this.Handle.ToInt64( ), "Word (*.doc)|*.doc|Wordx(*.docx)|*.docx|RTF(*.rtf)|*.rtf||", ref newname );

            if( a != null && a.Id != null )
            {
                a.Lock( );
                string tempFile = textBox2.Text + ".tmp";
                System.IO.File.Copy( textBox2.Text, tempFile, true );
                a.Upload( tempFile );
                a.UnLock( );
            }

        }
Ejemplo n.º 2
0
        private void buttonSelect_Click( object sender, EventArgs e )
        {
            IConnector connector = new Connector( );
            IArtifact a = connector.SelectArtifact( this.Handle.ToInt64( ), "All Files (*.*)|*.*" );

            if( a != null && a.Id != null )
            {
                this.textBox1.Text = "http://" + a.Id;// +":" + a.VersionLabel;
                this.textBox1.Tag = a;
            }
        }
Ejemplo n.º 3
0
 private void buttonOptions_Click( object sender, EventArgs e )
 {
     Workshare.Connect.SharePoint.Connector c = new Workshare.Connect.SharePoint.Connector( );
     c.Configure( this.Handle.ToInt64() );
 }
Ejemplo n.º 4
0
        private void button9_Click( object sender, EventArgs e )
        {
            IConnector connector = new Connector( );
            string filename = "Suggested Filename";
            IArtifact a = connector.CreateArtifact( this.Handle.ToInt64( ), "Doc (*.doc)|*.doc|DocX (*.docx)|*.docx|Text (*.txt)|*.txt||", ref filename );

            if( a != null )
            {
                this.textBox1.Text = "http://" + a.Id;// +":" + a.VersionLabel;
                this.textBox1.Tag = a;
            }
        }