Exemplo n.º 1
0
        // Refresh button double click
        private void Refresh1Button_Click(object sender, RoutedEventArgs e)
        {
            FileList2.UnselectAll();
            CsMessage msg1 = new CsMessage();

            msg1.add("to", CsEndPoint.toString(serverEndPoint));
            msg1.add("from", CsEndPoint.toString(endPoint_));
            msg1.add("command", "getDirs");
            msg1.add("path", pathClient_.Peek());
            msg1.add("type", "CheckIn");
            translater.postMessage(msg1);
            msg1.remove("command");
            msg1.add("command", "getFiles");
            translater.postMessage(msg1);
        }
Exemplo n.º 2
0
 //----< checkIn file click function>---------------------------------
 private void chkInButton_Click(object sender, RoutedEventArgs e)
 {
     if (FileList2.SelectedItem == null || FileList2.SelectedItems.Count == 0)
     {
         statusBarText.Text = "Status: Select file to CheckIn";
     }
     else if (Author.Text == "" || description.Text == "")
     {
         statusBarText.Text = "Status: Enter all the file details ";
     }
     else
     {
         string filePath = pathClient_.Peek();
         CheckIn(filePath, (string)FileList2.SelectedItem);
         statusBarText.Text = "Status: Files are sent for CheckIn";
         FileList2.UnselectAll();
         Author.Clear();
         description.Clear();
         catList.Clear();
         depList.Clear();
     }
 }