Example #1
0
        private void ChangeSelected(object sender, EventArgs e, bool nullPath)
        {
            MiniTCPanel miniTCPanel = sender as MiniTCPanel;

            if (nullPath)
            {
                SelectedItem = null;
            }
            else
            {
                if (miniTCPanel.Name == "miniTCPanel1")
                {
                    miniTCPanel2.ClearSelected();
                    Panel1Active = true;
                    Panel2Active = false;
                    //MessageBox.Show(Sel
                }
                else if (miniTCPanel.Name == "miniTCPanel2")
                {
                    miniTCPanel1.ClearSelected();
                    Panel2Active = true;
                    Panel1Active = false;
                    //MessageBox.Show(SelectedItem + " source: " + SourcePath + " target: " + TargetPath);
                }
            }
        }
Example #2
0
        private void ChangeSelected(object sender, EventArgs e, bool nullPath)
        {
            MiniTCPanel miniTCPanel = sender as MiniTCPanel;

            if (nullPath)
            {
                SelectedItem = null;
            }
            else
            {
                if (miniTCPanel.Name == "miniTCPanel1")
                {
                    miniTCPanel2.ClearSelected();
                    Panel1Active = true;
                    Panel2Active = false;
                    //MessageBox.Show(SelectedItem + " source: " + SourcePath + " target: " + TargetPath);
                }
                else if (miniTCPanel.Name == "miniTCPanel2")
                {
                    miniTCPanel1.ClearSelected();
                    Panel2Active = true;
                    Panel1Active = false;
                    //MessageBox.Show(SelectedItem + " source: " + SourcePath + " target: " + TargetPath);
                }
            }



            //if(nullPath)
            //{
            //    SourcePath = "";
            //    TargetPath = "";
            //    SelectedItem = "";
            //    //MessageBox.Show("null");
            //}
            //else
            //{
            //    if (miniTCPanel.Name == "miniTCPanel1")
            //    {
            //        miniTCPanel2.ClearSelected();
            //        SourcePath = miniTCPanel1.CurrentPath;
            //        TargetPath = miniTCPanel2.CurrentPath;
            //        SelectedItem = miniTCPanel1.SelectedDir;
            //        //MessageBox.Show(SelectedItem + " source: " + SourcePath + " target: " + TargetPath);

            //    }
            //    else if (miniTCPanel.Name == "miniTCPanel2")
            //    {
            //        miniTCPanel1.ClearSelected();
            //        SourcePath = miniTCPanel2.CurrentPath;
            //        TargetPath = miniTCPanel1.CurrentPath;
            //        SelectedItem = miniTCPanel2.SelectedDir;
            //        //MessageBox.Show(SelectedItem + " source: " + SourcePath + " target: " + TargetPath);

            //    }
        }