Ejemplo n.º 1
0
        public Form6(MyItems CurentItem)
        {
            InitializeComponent();
            this.textBox1.Text = CurentItem.IPath;
            this.textBox2.Text = CurentItem.IName;
            if (CurentItem.IIsPhoto == "true")
            {
                this.textBox3.Text = "Foto";
            }
            else
            {
                this.textBox3.Text = " Video";
            }
            this.textBox4.Text = CurentItem.IDate;
            this.textBox6.Text = CurentItem.IType;
            ItemsServiceClient service = new ItemsServiceClient();
            var PlaceItem = service.getPlaceByItem(CurentItem.IPath);
            var EventItem = service.getEventByItem(CurentItem.IPath);

            if (EventItem != null)
            {
                this.textBox7.Text = EventItem.EName;
            }
            if (PlaceItem != null)
            {
                this.textBox5.Text = PlaceItem.PName;
            }
            this.richTextBox1.Text = CurentItem.IDescription;
        }
Ejemplo n.º 2
0
        public Form3()
        {
            InitializeComponent();

            context = new ItemsServiceClient();

            var codecs      = ImageCodecInfo.GetImageEncoders();
            var codecFilter = "Image Files|";

            foreach (var codec in codecs)
            {
                codecFilter += codec.FilenameExtension + ";";
            }

            // and video
            openFileDialog1.Filter = codecFilter + "| All Media Files|*.wav;*.aac;*.wma;*.wmv;*.avi;*.mpg;*.mpeg;*.m1v;*.mp2;*.mp3;*.mpa;*.mpe;*.m3u;*.mp4;*.mov;*.3g2;*.3gp2;*.3gp;*.3gpp;*.m4a;*.cda;*.aif;*.aifc;*.aiff;*.mid;*.midi;*.rmi;*.mkv;*.WAV;*.AAC;*.WMA;*.WMV;*.AVI;*.MPG;*.MPEG;*.M1V;*.MP2;*.MP3;*.MPA;*.MPE;*.M3U;*.MP4;*.MOV;*.3G2;*.3GP2;*.3GP;*.3GPP;*.M4A;*.CDA;*.AIF;*.AIFC;*.AIFF;*.MID;*.MIDI;*.RMI;*.MKV";


            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                path = openFileDialog1.FileName;
            }
            if (path == null)
            {
                return;
            }



            textBox2.Text = path;
        }
Ejemplo n.º 3
0
 public Form3(string path)
 {
     InitializeComponent();
     context       = new ItemsServiceClient();
     this.path     = path;
     textBox2.Text = path;
     context.RemoveWithPath(path);
 }
Ejemplo n.º 4
0
        public Form1()
        {
            InitializeComponent();
            Service = new ItemsServiceClient();
            var items = Service.GetItems();

            Console.WriteLine(items);
            this.dataGridView1.DataSource = items;
        }
Ejemplo n.º 5
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (this.richTextBox2.Text != null)
     {
         ItemsServiceClient service = new ItemsServiceClient();
         service.Move(richTextBox1.Text, richTextBox2.Text);
     }
     this.Close();
 }
Ejemplo n.º 6
0
        private void button2_Click(object sender, EventArgs e)
        {
            ItemsServiceClient item = new ItemsServiceClient();

            string flag = "";

            if (checkBox1.Checked == true)
            {
                flag = "1";
            }
            else
            if (checkBox2.Checked == true)
            {
                flag = "2";
            }
            else
            {
                flag = "3";
            }

            this.items = item.SearchByProperty(flag, this.richTextBox1.Text).ToList();
            this.Close();
        }